Skip to content

rstolpe/MonitorInformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub
GitHub release (latest SemVer) Last release GitHub last commit
PSGallery downloads

MonitorInformation

This function will return information about monitors from local or remote computer.
I have added the result from PSScriptAnalyzer in test folder

This script will return the following information

  • 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.

Links

Help

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

Install for current user

Install-Module -Name MonitorInformation -Scope CurrentUser -Force

Install for all users

Install-Module -Name MonitorInformation -Scope AllUsers -Force

Example

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.
Screenshot 2023-01-20 at 15 44 00