Last week I blogged about generating sidHistory report using a PowerShell script - http://portal.sivarajan.com/2010/12/powershell-script-search-active.html. If you prefer to use dsquery command, you can use the following syntax to generate similar report.
dsquery * -Filter "(samaccountname=santhosh)" -Attr samAccountName ObjectSID sidHistory
You can also create a batch file with the following command generate a report from an input file (Users.txt):
For /f %%i in (C:\Users.txt) Do (
dsquery * -Filter "(samaccountname=%%i)" -Attr samAccountName ObjectSID sidHistory >> C:\User_Info.txt
)
As you can see in the following screenshot, the output file (User_Info.txt) contains the SamAccontName, ObjectSID and its sidHistory value:
Dsquery - http://technet.microsoft.com/es-es/library/cc754232(WS.10).aspx
2 comments:
I bought a watch for my boyfriend at this online store. The watch runs on time, the quality is very good, the style of the watch is very like, it is worth buying.
buy uk fake watches
I know that advices from https://writemyessay4me.org/blog/how-to-make-a-class-entertaining will be useful for teachers. You can use this information in order to keep children's attention.
Post a Comment