cbb.exe
invoke-command
-like
$ComputerName = "MYSQL01" $ScriptBlock = { cd "C:\Program Files\CloudBerryLab\CloudBerry Backup\" .\cbb.exe getPlanDetails -n DailyBackupPlan 2>&1 } $Output = invoke-command -ComputerName $ComputerName -ScriptBlock $ScriptBlock If($Output -like "*Z:\MyBackupFolder\FULL*"){write-host "Good"}else{write-host "Bad"}
Thank you for visiting! Please take a moment to register so that you can participate in discussions!