We are currently in the process of moving from Windows 10 22H2/Windows 11 23H2 to Windows 11 24H2.
One of my scripts relies on get-appxpackage for tracking version numbers.
On any client with a different OS than Windows 11 24H2 the PackageUserInformation field of that cmdlet's output showed entries in the form of {SID [domain\user]: Installed}.
In Windows 11 24H2 the user is not resolved and I get only {SID [SID]: Installed}
The script could obviously work around that by using get-aduser but I'd rather fix what led to that result than modify the script. Or is that an intended change of behaviour in get-appxpackage? If so I haven't found anything about it… Can anybody shed some light on this?
[Security.Principal.SecurityIdentifier]::new($SID).Translate([Security.Principal.NTAccount]).Valueto translate them yourself instead of the much slowerGet-ADUser