This script, GetEmailInfo.vbs, will quickly give you the email address, server, storage group and database for an Exchange user. Tags: Exchange+User+Information
Author: Alan
A better way to search Active Directory
Create a shortcut with this as the target: %systemroot%\system32\rundll32.exe dsQuery,OpenQueryWindow Name it “Search Active Directory” In the Advanced tab you can search by select AD fields. So if you want to find Joe in Accounting in Birmingham, it looks like this: Tags: AD, Active+Directory
Another Hard drive cleanup trick
“Msizap.exe is a command line utility that removes either all Windows Installer information for a product or all products installed on a computer. Products installed by the installer may fail to function after using Msizap.” http://msdn.microsoft.com/en-us/library/aa370523(VS.85).aspx msizap G! deletes orphaned (unused) installer files. It saved me over 1 GB.
XP NT Command help file
I have a little batch file which directly launches the XP help file for NT commands: @echo offstart hh.exe ms-its:%WINDIR%\Help\windows.chm::/ntcmds.htmexit Even if you have been using XP for a long time, it is always informative to look a the topic new “command-line tools”. There are some useful tools which I never seem to remember, such…
Convert CSV files to Excel
Many of the log files I get are in CSV format. For me to view them in Excel, I have had to use the “Text to Columns” feature. One of my security applications is now sending me such a file daily. CSV2Excel.vbs converts CSV files to XLS. You can drag a CSV file onto the script…
Create a list of your OU structure
Much of IT security involves making lists of your existing structure. The Information Security Officers like to have a list of the current Organizational Units in my organization. To enumerate a list of OUs you can use OUEnum.vbs. It will create an Excel spreadsheet with all your OUs, and a basic map to see sub-OU…
NoMoreDupes Outlook Duplicate Remover
Have you ever had an Outlook synch go bad resulting in hundreds of duplicate messages? I have. The product I used to fix it was Wisco’s NoMoreDupes, http://www.nomoredupes.com/. The $30 was worth the time it would have taken me to fix the issue (or even write a script). Wisco is currently running a 20% off promotion. Use…
Membership in Builtin and Admin Groups
Nested groups can cause some unpleasant surprises when you are auditing membership in Active Directory Builtin Groups. BuiltInGroupsEnum.vbs will enumerate those groups recursively so you can determine exactly who is an administrator in your domain. BuiltInGroupsEnum.vbs v 1.2 (updated 10/1/2009) fixes an issue with enumeration of other domains, and adds Enterprise and Schema Admins to list of…
Who Joined Computer Account to AD Domain
Who joined a particular computer to your domain can be an annoying question which may go back beyond your logs. Even if you have captured the event, then you need to find the entry. WhoJoinedPC.cmd looks at the security descriptor for “SPECIAL ACCESS for Validated write to DNS host name”, which is granted when the account is…
Using DSQuery to get list of Domain controllers
The fastest way to get a list of DCs for Windows 2003 and later is: dsquery server -o rdn dsquery server gives you a CN output Tags: Active+Directory, DSQuery