Script Samples

There are times when I spent an inordinate amount of time looking for just the right syntax for a command or even the correct command to get the job done. Here are four I put to use in the last few months…
Change Printer Spooler Service Recovery options to Restart
sc failure spooler reset= 60 actions= restart/600/restart/600/restart/600
Backing up [...]

How Big are those Mailboxes

One thing I truly miss about Exchange 2003 is the list of mailbox sizes that were easily accessible in the GUI. But things must move on and the display in the Exchange Management Console for both 2007 and 2010 lack the ability to populate and view this information.
Exchange Management Shell to the rescue! If you [...]

Free PowerShell Editor

Yesterday I began to really dive into a new user script (which uses Exchange Management Shell) to bring it up to date and include more fields and features. As the script complexity grew, Notepad was no longer cutting the mustard.
I thought I’d be using Notepad++ or TextPad, both fine in their own right, but instead [...]

Command Switches for MSI Packages

Microsoft has been using the Windows Installer Tool for quite some time now to make installing, patching and repairing programs a snap (installers using this will typically have an MSI extension).
One of the many benefits of this tool is the ability to script a program or patch installation using the available command-line switches, e.g.: adobe_reader.msi /qn which will [...]

Two More Free MS Press eBooks

MS Press is celebrating it’s 25th anniversary by giving away free stuff.
The books are Windows SBS 2008 Admin’s Companion and Visual Basic 2008 Express.
Follow the links at the MS Press blog site. (You have until April 22nd.)
As noted on the blog… the first MS Press book was in 1984, for Mac :)

Availability Error

This error kept creeping up on our front-end Exchange 2007 server:
Event ID: 4011
Process 6168[w3wp.exe:/LM/W3SVC/1/ROOT/EWS-1-128806932311406509]: Configuration for forest corp1.contoso.com was not found in Active Directory. Run the Add-AvailabilityAddressSpace command in the Exchange Management Shell for an Exchange Server 2003 Active Directory forest.Luckily the answer was on theTechNet site, I just ran this using the EMS…
Add-AvailabilityAddressSpace -ForestName Contoso.com -AccessMethod PublicFolder
Soon [...]

Script Headers

Okay, so you wrote a really cool batch script. Now what information do you put at the top?
After writing many, many batch scripts with really nothing but the filename and modified date as “information” I looked around a bit and put together this from what I saw.
rem **********************************
rem * Desktop System setup script
rem * Author: [...]