Hi Frank,
In the log there's the line that tell that the plugin has been executed succesfully: "Plugin <lastupdate.ps1> executed successfully"
But there is no trace of it in the "Inventory informations for computer" nor on the server.
Running it manually it "prints" the output. I was wandering if there are some specific command to use in order to make it "OCS compatible"
This is the script:
function Get-LastUpdate {
$secfix = (Get-HotFix -Description "Security*" | measure-object -Property Installedon -maximum).maximum
$LastUpdate = ($secfix).tostring("yyyy-MM-dd HH:mm:ss")
Write-Output $LastUpdate
}
Write-Output "<LASTUPDATE>"
Get-LastUpdate
Write-Output "</LASTUPDATE>"
Kind regards,
Gabriele