How to get a computer SID using a doss command


i have around 20 machines has ghost images, assume have same sid. want know dos command check computer sid, know command current user , domain user sid , don't want ant tool.

please refer dos command or batch file use in network or directly.

two ways sid @ command prompt command line utilities:

dsquery * -filter "(name=mycomputer)" -attr objectsid

or

dsquery computer -name "mycomputer" | dsget computer -sid
these require rsat (remote server administration tools) installed on client, if can retrieve user , domain sid values, have this.

richard mueller - mvp enterprise mobility (identity , access)




Windows Server  >  Directory Services



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group