Ask Your Question

how to set windows screen resolution using puppet

asked 2016-06-01 03:24:05 -0600

adubey gravatar image

We have a requirement where we need to change windows screen resolution through puppet. I could not find a way to do it in online forums.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-01 13:52:33 -0600

maynero gravatar image

updated 2016-06-01 14:32:19 -0600

You can call Set-DisplayResolution (Windows 8.1, Windows Server 2012 R2) powershell command in puppet. See Exec on Windows on how you can achieve that

First you need to install powershell module here then use it.

exec { 'DisplayResolution':
    command   => 'Set-DisplayResolution -Width 1920 -Height 1200',
    provider  => powershell,

For other windows version, try using this script here and call the script in puppet

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-06-01 03:24:05 -0600

Seen: 127 times

Last updated: Jun 01 '16