Finding Out Video Resolution

by Feb 25, 2011

You can use this function if you would like to check the current video resolution on a local or remote system:

function Get-Resolution {
param(
[Parameter(ValueFromPipeline=$true)]
[Alias("cn")]
$ComputerName = '.'
)

process {
Get-WmiObject -Class Win32_VideoController -ComputerName $Computername |
Select-Object *resolution*, __SERVER
}
}

When you run Get-Resolution, you will retrieve your own video resolution. By adding a computer name, you will find the same information is returned from a remote system (provided you have sufficient privileges to access the remote system).

Twitter This Tip!
ReTweet this Tip!