This function will return information about monitors from local or remote computer.
I have added the result from PSScriptAnalyzer in test folder
- Is the monitor active? (connected)
- Status
- Availability
- Manufacturer Name
- Model
- Serial Number
- Year Of Manufacture
- Week Of Manufacture
- You run this on multiple computers at the same time to display the information.
If you use this function on a remote computer you need to make sure that you have WinRM activated.
Below I have specified things that I think will help people with this module.
You can also see the API for each function in the help folder
Install for current user
Install-Module -Name MonitorInformation -Scope CurrentUser -Force
Install for all users
Install-Module -Name MonitorInformation -Scope AllUsers -Force
Get-RSMonitorInformation
Returns information about monitors that are connected to the local computer.
Get-RSMonitorInformation -ComputerName "Win11"
Returns information about monitors that are connected to the remote computer named "Win11".
Get-RSMonitorInformation -ComputerName "Win10", "Win11"
Returns information about monitors that are connected to the remote computers named "Win10" and "Win11"
It will return similar to this, but if you have more monitor then one you will see information listed from all of them.