Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to get serial numbers of monitors from remote computers

$
0
0
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

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>