Home » Questions » Computers [ Ask a new question ]

How to do a Powershell (or other) script to change screen resolution?

How to do a Powershell (or other) script to change screen resolution?

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

Asked by: Guest | Views: 85
Total answers/comments: 2
Guest [Entry]

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.
Guest [Entry]

"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:

http://www.c-sharpcorner.com/UploadFile/Joshy_geo/changescreenresolution10102006112110AM/changescreenresolution.aspx
http://ajdotnet.wordpress.com/2008/01/19/command-line-tool-vs-powershell-cmdlet/"