In AD how to get groups the workstation is a member of from the workstation itself?

Posted by David on Server Fault See other posts from Server Fault or by David
Published on 2012-11-11T19:58:07Z Indexed on 2012/11/11 23:02 UTC
Read the original article Hit count: 240

If I'm at the domain controller (in the Active Directory) to find out what groups the "XPSP3-A" workstation is a member of, I do:

dsquery computer "CN=XPSP3-A,CN=Computers,DC=pvk,DC=local" -name XPSP3-A | dsget computer -memberof

and receive the following:

"CN=Sec Group 001,OU=OU1,DC=pvk,DC=local" 
"CN=Domain Computers,CN=Users,DC=pvk,DC=local"

But how to do the same from the "XPSP3-A" workstation?

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about windows-server-2003