Finding Out Video Resolution

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

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!


Posted Feb 25 2011, 08:00 AM by ps1
Copyright 2012 PowerShell.com. All rights reserved.