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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBS to query AD and NTFS for users! PLzHelp 1

Status
Not open for further replies.

gauravdubey80

Programmer
Jul 20, 2007
5
US
Hi I want to write a script in VB that can query the AD and the NTFS for each users in my organization and give a text report for each showing the groups the user is added intoand the drives he can access.I am a novice toprogramming.
Please helpme with resources!
 
Well, you really can't do what you are asking directly.

Getting group memberships is easy. Refer to the script I published here; thread96-1192415

You can use XCACLS to list all NTFS permissions. Note however that that will not give you share permissions.

You can download RMTSHARE from Microsoft.com and use that to list the share permissions easily enough and it could be scripted. You would need to capture the output of the command to be able to manipulate the data.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top