Change Screen Resolution - Policy Action

(imported topic written by anthonymap)

I have been working with a few people to try and change the screen resolution via policy action.

I know I can pull the screen resolution by the following: (This is a retreived property that is pulled evey hour)

if

(
exists

wmi

AND

exists

select

“VideoModeDescription from Win32_VideoController”

whose

(type

of

it

=

8
)

of

wmi)

then

(preceding text

of

last

" x"

of

(string values

of

selects

“VideoModeDescription from Win32_VideoController”

whose

(type

of

it

=

8
)

of

wmi))

else

(
“N/A”)

I have the action to change the resolution, but i need the relevance to check if someone changes the resloution and change it back via policy action.

Thanks

(imported comment written by jgstew)

You should be able to use similar relevance that you created in your analysis to detect if changes need to be made on the target computer.

I have used the program QRes to do this through the command line outside of BigFix / IEM, but it should work there too.

I feel like there might be a more efficient option for detecting screen resolution settings in windows without using WMI, but I would need to look it up.

(imported comment written by jgstew)

This is what I was talking about for an easier method to get the screen resolution of the primary monitor:

q: (metric 0 /* SM_CXSCREEN */ of operating system)

A: 1920

T: 0.049 ms

I: singular integer

q: (metric 1 /* SM_CYSCREEN */ of operating system)

A: 1200

T: 0.054 ms

I: singular integer

See this analysis for similar options:
http://bigfix.me/analysis/details/2994628

See this website for the full list of options for the metric inspector:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx

Relevance inspector reference:
http://support.bigfix.com/inspectors/System%20Objects_Win.html#operating%20system

1 Like