This is a PowerShell Script that show the Screen Resolution of the remote computer screens.
if there is no second screen the output will indicate that there is no secondery screen.
###
$primaryScreen = [System.Windows.Forms.Screen]::PrimaryScreen
$prineryr = "{0}x{1}" -f [System.Windows.Forms.SystemInformation]::PrimaryMonitorSize.Width, [System.Windows.Forms.SystemInformation]::PrimaryMonitorSize.Height
$secondaryScreens = [System.Windows.Forms.Screen]::AllScreens
if ($secondaryScreens.Length -gt 1) {
$secondaryWidth = $secondaryScreens[1].Bounds.Width
$secondaryHeight = $secondaryScreens[1].Bounds.Height
} else {
$secondaryWidth = $null
$secondaryHeight = $null
}
# Display the resolutions
"Primary Monitor: $prineryr"
if ($secondaryWidth -ne $null -and $secondaryHeight -ne $null) {
"Secondary Monitor: ${secondaryWidth}x${secondaryHeight}"
} else {
"No Secondary Monitor detected."
}
###
Once download complete, import it throw the import option in the Custom command section.
For any additional information, please contact support@eprocsolutions.com