To configure the ESE Backup Client to shut down the Windows Server operating system (from 2008 R2) after a backup has taken place, follow the steps below.
1. Create a Batch File
Create a batch file called "RunBackupAndShutdown.bat" containing the following:
start powershell.exe -ExecutionPolicy Bypass -file backupandshutdown.ps1
2. Create the PowerShell Script
Create a PowerShell file called "BackupAndShutdown.ps1" in the same location as the batch file, containing the following:
# wait three minutes for any Storage Platform Responses
start-sleep -s 180
# shut the computer down
3. Create a Batch File
Add the batch file, "RunBackupAndShutdown.bat", to the Backup Client's Backup Scripts configuration, set to run before each backup.