Windows Server 2012 – changing the Screen Resolution

  • windows

In previous versions of Windows Server, it was a bit tricky to change the screen resolution. Most of the time, Server Core admins resorted to third-party tools.

In Windows Server 2012, sconfig.cmd also doesn’t offer this functionality, but Microsoft introduces two new PowerShell cmdlets:

GET-DISPLAYRESOLUTION
SET-DISPLAYRESOLUTION

The Set-DisplayResolution cmdlet is really useful. Start PowerShell (by typing it at the command line). Then, the following command will change the display resolution to 1280 x 768:

SET-DISPLAYRESOLUTION -WIDTH 1280 -HEIGHT 768 -FORCE

You can also interactively use Set-DisplayResolution by simply typing the command. It will ask for a value for Width and Height. It will then change the resolution. You can either accept it with Y or revert to the previous screen resolution by typing N.