I am very new to solarwinds and I am just trying to run a few simple powershell templates.
$TimeZone = (Get-WmiObject -class Win32_TimeZone).StandardName
Write-Host "Statistic:" $TimeZone
Write-Host "Message:" $TimeZone
or
$kb=get-hotfix -id KB5004238,KB5004244,KB5004289,KB5004294,KB5004298,KB5004305 -ErrorAction SilentlyContinue
$KBInstall = $KB.HotFixID
Write-Host "Statistic: $KBInstall"
Write-Host "Message: $KBInstall"
I does give me the data I want but I get an error