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

Troubleshooting Netlogon Error Codes

Troubleshooting AD Active Directory Replication Error 8456 or 8457: "The source | destination server is currently rejecting replication requests"

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