I recently put together a PowerShell Script on a server running Windows Server 2008 R2 that created a dated directory then started Windows Server Backup to make a system state backup. The script is run on a nightly basis and works great.

Wanting to use this on another server, I copied the script over and, after adding the WSB snapin from the powershell command line, only to find that it would not run.

The difference between the two servers is that this new server runs Server 2008 (not R2). Has anyone gotten powershell scripting to work for running backups on Windows Server 2008 with Windows Server Backup? I wonder if the commandlets are different. So far all the docs I find are based around R2.

Here is the script I am using on the R2 server:

```
$date = Get-Date -format MMddyyyyHHmm
$policy = New-WBPolicy
$volume = Get-WBVolume -AllVolumes
$backupLocation = New-WBBackupTarget -NetworkPath "\\NAS01\backup\RDP01\$date"

New-Item "\\NAS01\backup\RDP01\$date" -type directory

Add-WBVolume -Policy $policy -Volume $volume 
Add-WBSystemState $policy 
Add-WBBareMetalRecovery $policy 
Add-WBBackupTarget -Policy $policy -Target $backupLocation 
Set-WBVssBackupOptions -Policy $policy -VssCopyBackup 
Start-WBBackup -Policy $policy

```

Anyone know if there is something different I should be doing on Server 2008 to make this work or is running backups from powershell simply not supported except on R2?