[Solved] Having trouble getting a list of users profiles [closed]

You’ll want to query WMI for Win32_UserProfile instances – each profile will be linked to the security identifier of the user owning the profile, which can in turn be translated to an account object with the user name: Get-CimInstance win32_userprofile |ForEach-Object { # Convert SID string to SecurityIdentifier object $SID = $_.SID -as [System.Security.Principal.SecurityIdentifier] try … Read more