Wednesday, January 23, 2008

Powershell - Disaster Recovery toolkit

Right. I've just blogged enough Powershell commands to keep you occupied (or bored). But Powershell is NOT just for Exchange hardcore admins to do fancy things to Exchange server that you would never do in real life.

Let's say you've just installed Windows, hardened it off and your powershell is working.

New-item F:\Stores –type directory
New-item G:\Logs -type directory

The above two lines means that outside the hardcore Exchange world you can use Powershell to automate your installation of Exchange - kept properly, a single powershell script can be used to do EVERYTHING for your DR on your Exchange server. It can set up all folders, directories, set the locations of everything.

The sky is the limit here - all you need to do is read your system documentation and build the script. Now you DO have system documentation, don't you?

No comments: