Ask Your Question
0

how to set windows screen resolution using puppet

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

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
0

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

maynero gravatar image

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

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

Stats

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

Seen: 53 times

Last updated: Jun 01 '16