Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Mass user account audit > database

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,38625
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Mass user account audit > database
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Mass user account audit > database - 10/12/2006 12:10:47 AM   
  Meg


Posts: 126
Score: 2
Joined: 7/13/2006
From: Australia
Status: offline
After writing http://www.visualbasicscript.com/m_38622/mpage_1/key_/tm.htm#38622 I found many user accounts did not have correct settings because they had been edited manually or missed.

1. Script does a check to see it is not being run from a place where it will fail.
2. Checks if an output database exists and if not creates one
3. Enumerates all users in AD
4. If user name is our standard 3 character format continue
5. Read specific properties from that user account
6. Save output to an Access Database

Powerful thing about this script is that the massive amount of data it can output is in a format which can be queried and sorted and user accounts of interest can be saved as a txt file to be processed by another script.
I should have done it in the main script to filter out accounts in the trash/resource OUs but Access can easily do that in using a query in the database. Once the database queries have been setup you can run the script (takes about 5 minutes for ~1500 users) and at a glance check for obvious configuration problems.


      
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Mass user account audit > database Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts