|
Hi I've been trawling the internet trying to find an easy way through kix to query a remote users screen resolution
The purpose , so the appropriate sized screen saver msi can be installed to the remote users machine
I was thinking an if statement e.g. if 800 X 600 then run a 800 X 600 msi
I have found this script but not sure how to use it ?
Any help would be appreciated
? "Video" ?
; Query video adapter properties $colItems = $objWMIService.ExecQuery( "Select * from Win32_VideoController", , 48 ) ; Display error number if applicable If @ERROR GoTo ShowError EndIf ; Display results For Each $objItem in $colItems ? " Name: " + $objItem.Name ? " Video Processor: " + $objItem.VideoProcessor ? " Adapter RAM: " + ( ( $objItem.AdapterRAM + 524288 ) / 1048576 ) + " MB" ? " Video Mode Description: " + $objItem.VideoModeDescription ? Next
; Done Quit 0
|