How to use Powershell for a custom check in Servers Alive In Servers Alive you can use an external program as a check. This external program could be your own Powershell script. This howto explains how to do this.
$RemoteServer=$args[0]
$RefValue=1
$Value=Invoke-Command -computername $RemoteServer -ScriptBlock {(get-itemproperty "HKLM:\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Agent\2.0").Forcefixup}
if ($Waarde -eq $RefValue)
{
write-host "OK. Value ForceFixup is $Value. "
exit 0
}
else
{
write-host "Error. Value ForceFixup is $Value, must be $RefValue."
exit 1
}
Program Features What's new in v10.x? Download Document Collection Template examples |
Free add-ons License Agreement Prices from 199 EURO Different editions |
Anonymous