vote up 1 vote down star
1

How can I script a screen resolution change, for example to 1024*768?

flag

3 Answers

vote up 2 vote down check

There isn't a native powershell way to set the resolution. You could write in-line C# code in a powershell script to do it. Otherwise you would need to find a third party commandline application that does it and just call that from your script.

link|flag
How do I change the resolution from C#? Is there a class? – Andrew J. Brehm Aug 26 at 8:52
Did you follow the links that Splash provided? – EBGreen Aug 26 at 11:50
vote up 0 vote down

As EBGreen has said, Powershell cannot do it in its vanilla state. However being a .NET-based shell, you could either use .NET within a powershell script, use a traditional CLI application or write a Cmdlet to do it.

These links may help you out if you decide to explore those paths further:

link|flag
vote up 0 vote down

You can't do this using a native Windows command, but you can use an application invoked from the command line like http://www.pcdownloadworld.com/prgdb/reschange.htm .

I've used it before - it is a little cumbersome but does what it says on the tin.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.