Alan's Blog

"Yeah. I wrote a script that will do that."

Menu
  • About My Blog
Menu

Author: Alan

See https://www.akaplan.com/about/

Get Exchange Email Information for a User

Posted on October 15, 2009March 9, 2015 by Alan

This script, GetEmailInfo.vbs, will quickly give you the email address, server, storage group and database for an Exchange user.   Tags: Exchange+User+Information

Read more

A better way to search Active Directory

Posted on October 15, 2009March 9, 2015 by Alan

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

Read more

Another Hard drive cleanup trick

Posted on October 8, 2009March 9, 2015 by Alan

“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.  

Read more

XP NT Command help file

Posted on October 6, 2009October 6, 2009 by Alan

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…

Read more

Convert CSV files to Excel

Posted on October 5, 2009March 9, 2015 by Alan

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…

Read more

Create a list of your OU structure

Posted on October 5, 2009October 5, 2009 by Alan

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…

Read more

NoMoreDupes Outlook Duplicate Remover

Posted on September 24, 2009March 9, 2015 by Alan

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…

Read more

Membership in Builtin and Admin Groups

Posted on September 23, 2009March 9, 2015 by Alan

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…

Read more

Who Joined Computer Account to AD Domain

Posted on September 16, 2009March 9, 2015 by Alan

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…

Read more

Using DSQuery to get list of Domain controllers

Posted on September 16, 2009March 9, 2015 by Alan

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

Read more
  • Previous
  • 1
  • …
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • …
  • 42
  • Next

Search

Please Note

All the scripts are saved as .txt files. Newer files have a “View Script” button which will let you save or open a script in notepad. For earlier posts, the easiest way to download with IE is to right click on the link and use “Save Target As”. Rename file from Name_ext.txt to Name.ext.

To see a full post after searching, please click on the title.

PowerShell Scripts were written with version 3 or later.

https connections are supported.

All new users accounts must be approved, as are comments. Please be patient.  If you find a post error or a script which doesn’t work as expected, I appreciate being notified.  My email is my first name at the domain name, and you are welcome to contact me that way.

Tags

1E ACLS Active Directory ActiveDirectory ADSI Advanced Functions Audit Change Administrator Password COMObject Computer Groups DateTime Desktop DNS Excel FileScriptingObject Forms General GPO GPS Group Policy Hacks ISE Lockout logons NAV740 Nessus OU OU permissions Outlook Pick Folder Power PowerShell Powershell Scriptlets RDP SCCM schedule reboot Scripting Security Shell.Application user information VBA Windows Update WMI WordPress WPF

Categories

akaplan.com

  • Back to Home Page

Archives

Scripting Sites

  • A Big Pile of Small Things
  • Adam, the Automator
  • Art of the DBA
  • Ashley McGlone
  • Boe Prox
  • Carlo Mancini
  • DexterPOSH
  • Doug Finke
  • Jaap Brasser's Blog
  • JeffOps The Scripting Dutchman
  • Jonathan Medd's Blog
  • Keith Hill's Blog
  • LazyWinAdmin
  • Nana Lakshmanan
  • PowerShell Magazine
  • PowerShell Team Blog
  • PowerShell.org
  • PwrShell.net
  • Richard Siddaway's Blog
  • Ryan Yates' Blog
  • Skatterbrainz
  • The Lonely Administrator

SQL Site

  • Art of the DBA

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2025 Alan's Blog | Theme by SuperbThemes

Terms and Conditions - Privacy Policy