Quantcast
Viewing all articles
Browse latest Browse all 92

Missing sidHistory attributes on migrated accounts

Log onto a server and open a command prompt as Administrator.

Issue the following dsquery to create a four column, comma separated text file of all users names, logon names, primary object SID and if applicable, sidHistory SID.  Then open this .csv file in Excel and Auto Filter the sidHistory column to show all blanks.  This is the list of accounts that have NOT been subject to an inter-domain user account migration.

dsquery * “OU=Groups,OU=MigratedGroups,OU=Cromford,OU=UK,OU=DEV,OU=VMFARM,DC=cyberfella,DC=co,DC=uk” -filter “(&(objectClass=User))” -attr samAccountName cn ObjectSID sidHistory -limit 20000 > missing-sidhistories.txt

 

Image may be NSFW.
Clik here to view.
Facebook
Image may be NSFW.
Clik here to view.
twitter
Image may be NSFW.
Clik here to view.
google_plus
Image may be NSFW.
Clik here to view.
reddit
Image may be NSFW.
Clik here to view.
pinterest
Image may be NSFW.
Clik here to view.
linkedin
Image may be NSFW.
Clik here to view.
mail

Viewing all articles
Browse latest Browse all 92

Trending Articles