Login | |
|
 |
RE: Active Directory Query Template - 2/19/2007 8:46:48 PM
|
|
 |
|
| |
ginolard
Posts: 1021
Score: 21
Joined: 8/10/2005
Status: offline
|
I've updated the above script to make a little more user-friendly. I've also added a few more query choices. If you can think of any other queries that you might need, let me know and I can add them easily. A couple of notes - There is a small Function that can be used to test if a user's password has expired
- You can have the output as comma-separated by commenting in the first Wscript.Echo line in the Do Loop of the main code
I really SHOULD convert this into an HTA....
_____________________________
Author of ManagePC - http://managepc.net AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
|
|
| |
|
|
|
 |
RE: Active Directory Query Template - 6/11/2007 10:26:07 PM
|
|
 |
|
| |
ginolard
Posts: 1021
Score: 21
Joined: 8/10/2005
Status: offline
|
Well, I *could* but we're not here to write scripts for you ;) Writing to a CSV file is easy. You will need to read up the FileSystemObject and OpenTextFile/CreateTextFile AD querying is a more complex subject admittedly but this template script should give you a fair understanding of how the query syntax is formed. You will just need to find the field for lastlogontime (ADSIEDIT could do that for you)
_____________________________
Author of ManagePC - http://managepc.net AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
|
|
| |
|
|
|
 |
RE: Active Directory Query Template - 6/29/2007 11:17:12 AM
|
|
 |
|
| |
jrcochranusa
Posts: 25
Score: 0
Joined: 1/30/2007
Status: offline
|
Dude...this script is awesome...I use it for tons of stuff!! Thanks,
_____________________________
Thanks, jrc
|
|
| |
|
|
|
|
|