Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any utility out there to query all shares associated with a user

Status
Not open for further replies.

Teknoratti

Technical User
Aug 11, 2005
183
US
I am looking for a utility that will tell me all folder shares associated with a certain AD user.

Also if a user has access to certain printers, I would be able to query and find out what printers are associated with them not neccesarily the level of access, but if so that would be great.
 
Here is a basic VBScript you can use to query a user object in AD and have it return the users group membership(s). Just cut and paste into a text file and save with a .vbs extension.
You will have to modify the code with each user's dn.

Set objUSer = _
GetObject("LDAP://cn=DoeJohn,ou=sales,dc=domain,dc=com")
Wscript.Echo objUser.Get("memberOf")


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top