Configuring post power on scripts for Site Recovery Manager
- 8 -
Appendix A
Configuring post power on scripts for Site Recovery
Manager
NOTE:If your disaster recovery site is on the sameVLANas your protected site, and IPaddresses will
remain the same after a failover, you do not need to configure post power on scripts.
If you use Site Recovery Manager (SRM)and your disaster recovery site is not on the same VLANas your
protected site, and IPaddresses will not be the same after failover, you must configure post power on scripts.
In order to configure post power on scripts, you must:
1. Install Windows PowerShell. See "Installing Windows PowerShell" on page 8
2. Set the Execution Policy on all guest virtual machines.See "Setting the Execution Policy" on page 9.
3. Modify PowerShell scripts for your specific use. See "Modifying PowerShell scripts" on page 9.
4. Create a .bat file to execute PowerShell scripts.See "Creating a .bat file" on page 10.
5. Set up yourSRM Server. See "Setting up the SRM server" on page 10
6. Create a .cmd file on the SRMserver to execute the .bat file on guest virtual machines. See "Creating a
cmd_file" on page 1.
7. Add the post power on script to your recovery plan. See "Adding the post power on scripts to the
recovery plan" on page 1.
8. Configure post power on scripts. See "Configuring post power on scripts" on page 1.
9. Run a SRMtest. See "Running a SRM test" on page 1.
Installing Windows PowerShell
For Windows Server 2003, you must download and install Windows PowerShell. Windows PowerShell is
included on Windows Server 2008 by default, but it must be enabled before you can use it.
To install Windows PowerShell on Windows Server 2003
1. Browse to http://www.microsoft.com/downloads/details.aspx?FamilyId=10EE29AF-7C3A-4057-
8367-C9C1DAB6E2BF&displaylang=en.
2. Click Download.
3. Click Run.
4. Follow the instructions in the installation wizard to complete the installation.
To enable Windows PowerShell on Windows Server 2008
1. Click Start=>Administrative Tools=>Server Manger.
2. In the left pane, click Features.
3. Click Add Features.
4. Under Features, select Windows PowerShell and Next.
5. Click Install.
6. When the installation is complete, click Close.