Skip to content

set display resolution from powershell on windows using win32 api

License

Notifications You must be signed in to change notification settings

lust4life/display-resolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change Display Settings

Changes display settings in Windows from Powershell or .Net tool.

Usage

Powershell

Install

Import-Module set-display-resolution.psm1

Usage:

Set-DisplayResolution(1024,768,CDSFlags.SetPrimary);

write-host Get-DisplayResolution()

.Net Tool

Install:

dotnet tool install --global ChangeDisplaySettings

Usage:

ChangeDisplaySettings -w 1024 -h 768

...

ChangeDisplaySettings --help

...

  -w, --width     Required. Width of the screen

  -h, --height    Required. Height of the screen

  -t, --test      (Default: false) Test resolution change or actually perform the change.

  --help          Display this help screen.

  --version       Display version information.

Resources

About

set display resolution from powershell on windows using win32 api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published