Hi @TBingeman ,
sorry that I noticed posts here not earlier ...
You are asking for activity "Determine steps" in Runbook "Update Automation Help Work"?
A part of you code:
$UpdatesNotInstalled = Invoke-Command -ComputerName \`d.T.~Ed/{2DA5304F-1DEA-47E4-B02B-A7728201DD34}.{AB2CA990-9B21-4423-A249-02973DFE81C1}\`d.T.~Ed/ -ErrorAction silentlycontinue -SessionOption (New-PSSessionOption -IncludePortInSPN) -ScriptBlock{
$UpdatesNotInstalled = @(get-wmiobject -query "SELECT * FROM CCM_SoftwareUpdate" -namespace "ROOT\ccm\ClientSDK").count
return $UpdatesNotInstalled
}
$UpdatesNotInstalled = Invoke-Command -ComputerName \`d.T.~Ed/{2DA5304F-1DEA-47E4-B02B-A7728201DD34}.{AB2CA990-9B21-4423-A249-02973DFE81C1}\`d.T.~Ed/ -ScriptBlock{
$UpdatesNotInstalled = @(get-wmiobject -query "SELECT * FROM CCM_SoftwareUpdate" -namespace "ROOT\ccm\ClientSDK").count
return $UpdatesNotInstalled
}
Perhaps it is better to add or compare $UpdatesNotInstalled because the second will overwrite the first (?).
In the first you use "-ErrorAction silentlycontinue", so you get no error if it fails.
Does the code above work in Powershell ISE if you ty a fix ComputerName from the list in the code instead of the published data?
Regards,
Stefan