I am using a script that is set to run every morning read if teh last backup failed or completed and then puts it into a html page. This works fine on all of our 2012/2012R2 servers using the
Get-WBJob
and
Get-WBSummary
commands but this doesn't work on server 2008 Is there any alternative for those commands on this server version or is syntax slightly different? Please see below for relevant parts of the script. The 2008 server is also running version 2.0 of powershell
$WBJob = Get-WBJob
$WBSummary = Get-WBSummary
$WBErrorMsg = $WBJob.ErrorDescription + "'n" + $WBSummary.DetailedMessage
$WBResult = $WBSummary.LastBackupResultHR
Best Answer
On Server 2008 you need to install it first, see https://technet.microsoft.com/en-us/library/cc732081.aspx