Tuesday, 14 March 2017

Get a List of all SIDs


via PowerShell command from AD get a list of all SID in a domain residing in a specific OU:
Get-ADUser -Filter * -SearchBase "ou=users,dc=domain,dc=com" | Select sAMAccountName, SID

on local machine logged in profile SIDs are listed
@HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileList\

SID is listed here

0 comments: