windows - Powershell script throwing error: You cannot call a method on a null-valued expression -
just trying troubleshoot issue. think may powershell script wrong. please forgive me if answer obvious. here have:
$pluginpath = 'd:\program files\nsclient++\plugins' $results = cmd /c "$pluginpath\ipmiutil.exe" sensor -s # status of memory $memstatus = ($results | select-string "snum 60").line.split('|')[-1] -replace '\s+' error: invalidoperation: (split:string) [], runtimeexception
and
notification type: problem service: hardware host: x state: critical date/time: x additional info: **you cannot call method on null-valued expression.**
any massively appreciated
Comments
Post a Comment