Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-DisplayResolution

Set-DisplayResolution

servercore.psm1

Synopsis

Changes the display resolution for a Server Core server.

Syntax

Set-DisplayResolution [-Width] [-Height] [-Force] [<CommonParameters>]

Detailed Description

The Set-DisplayResolution cmdlet changes the display resolution for Windows ServerĀ® 2012 in Server Core mode. Specify both the width and the height in pixels. Unless you use the Force parameter, the cmdlet prompts you before it changes the settings. You can use the Get-DisplayResolution cmdlet to view the current resolution.

For more information about Server Core mode, see Configure and Manage Server Core Installations (http://technet.microsoft.com/en-us/library/jj574091).

Parameters

-Force <SwitchParameter>

Performs the action without a confirmation message.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Height <Object>

Specifies a height, in pixels, for the display.

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-Width <Object>

Specifies a width, in pixels, for the display.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

None

Examples

Example 1: Set resolution

This command sets the display resolution to a width of 1920 pixels and a height of 1200 pixels. The system prompts you for confirmation.

PS C:\> Set-DisplayResolution -Width 1920 -Height 1200
setres will now attempt to apply the following display settings: 
  Width:          1920
  Height:         1200
Your screen may go blank for a moment. If your screen remains blank, press N
or restart your computer to revert the display settings. 
Do you want to save the display settings? 
[Y,N]?_

Example 2: Set resolution without confirmation

This command sets the display resolution to a width of 1024 pixels and a height of 768 pixels. The command includes the Force parameter. It attempts to make the change without prompting you.

PS C:\>Set-DisplayResolution -Width 1024 -Height 768 -Force
setres will now attempt to apply the following display settings: 
  Width:          1024
  Height:         768
The new display settings have been saved.

Online Version
Get-DisplayResolution