User - Get user name from SID value

 Get user name from SID value

$sid = ‘SID-VALUE’

Get-ADObject –IncludeDeletedObjects -Filter "objectSid -eq '$sid'" | Select-Object name, objectClass


Refer: Thanks to http://woshub.com/hot-to-convert-sid-to-username-and-vice-versa/

Comments

Popular posts from this blog

altiris software key

Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe)

Troubleshooting Netlogon Error Codes