Hi everyone,
I am new to scripting and just started to use PowerShell. I tried to get get serial numbers of monitors from remote computers and tried the following line on my own PC but get a message said, "Get-Wmiobject : Invalid Class".
The code that I used is
$trComputer = "."
$collection = get-wmiobject -class "WinMonitorID" -namespace "root\WMI -computername $trComputer
I found this class from the WMI Reference but I cannot not see it in the WMI Object Browser.
Kind Regards
Han
I am new to scripting and just started to use PowerShell. I tried to get get serial numbers of monitors from remote computers and tried the following line on my own PC but get a message said, "Get-Wmiobject : Invalid Class".
The code that I used is
$trComputer = "."
$collection = get-wmiobject -class "WinMonitorID" -namespace "root\WMI -computername $trComputer
I found this class from the WMI Reference but I cannot not see it in the WMI Object Browser.
Kind Regards
Han