News

Wednesday, January 11, 2012

How to list all groups a member is part of from the command line

dsquery user -samid %username% | dsget user -memberof -expand

Taken from here:

http://www.robvanderwoude.com/ntadmincommands.php

No comments:

 
Free Hit Counter