Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

unable to convert SID into user name for remote machine

$
0
0

Hi,

 

Using below script i can convert the SID into user name locally.

Can you please help me how to translate SID to user name from remote machine?

$objSID = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-80-2270495948-1300630093-1036987258-3556750000-2372456041")

$objUser = $objSID.Translate( [System.Security.Principal.NTAccount])

$objUser.Value


Viewing all articles
Browse latest Browse all 6937

Trending Articles