Archive for the ‘Scripting / Batch File / Automation’ Category

Using Mailbox Merge Wizard (ExMerge.exe) In Batch Mode With PsExec

Tuesday, March 30th, 2010

2010-04-05 Updated
2010-03-30 Initial Post

The other week I was searching for information on how to run ExMerge with PsExec and couldn't find anything. I'm sure other admins have done that before but never posted info online about how they did it. I tested this out and using ExMerge with PsExec does work. I ended up not going through with this in production for non-technical reasons, but I know it works. Read the ExMerge and PsExec documentation for more info if you have any questions. (more…)

Virtual PC 2004 / 2007 –> Start a Virtual PC 2004 / 2007 VM Via Batch File in Scheduled Tasks

Monday, February 8th, 2010

2010-02-08 Initial Post

If you're using Hyper-V, you don't need to do this because Hyper-V has settings in the GUI for VM startup and shutdown. This post is only for Virtual PC 2004 / 2007 (I haven't used Virtual Server 2005 so I can't comment on that). I still use Virtual PC 2007 because I have to keep my home host computer on Windows XP, otherwise I would switch to Hyper-V. (more…)

Batch Command To Delete Old Files Using Forfiles.exe

Tuesday, May 5th, 2009

2009-05-05 Initial Post

You can use the Forfiles command to search for files with certain parameters and then execute commands against the results. This is useful for automated cleanup of backup and log files. (more…)

Batch Commands To Name Output File With Current Date

Saturday, September 20th, 2008

2008-09-20 Initial Post

Here is a sample batch file that names the output file based on the current date. If the file was run on 09-20-2008, the output file name would be LDIFDE_Export_All_2008-09-20.ldf. (more…)