Log inRegister
You are here: Boossy » Software » SwMicrosoft » MsWindows10 » Win10SetDisplay

Problem - Office pc

In april 2019, I have a similar problem with my Office pc. Whenever the pc restarts, the display is wrong (too high). For this problem, the SetScreenResolution.ps1 script works as desired.

I made an OsSetDisplay.ps1 script that calls the SetScreenResolution.ps1 twice, once setting the resolution to 1440x900, then back to 1680x1050, and added a shortcut to this script to the Startup folder:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "& { . C:\Tools\OS\SetScreenResolution.ps1; Set-ScreenResolution -Width 1440 -Height 900 }"
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "& { . C:\Tools\OS\SetScreenResolution.ps1; Set-ScreenResolution -Width 1680 -Height 1050 }"

Problem - Home computer

See: http://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/windows-10-version-1607-detect-display-to-correct/f313ad72-94d0-4142-be70-90bca60e0a51

Win10 1709

No longer needed, since I bought a new monitor - no longer a tv, used as a monitor (SilverCrest HOME TECH LCD-TV 60cm schermdiagonaal, serienr. F47012000248), but a plain vanilla pc monitor: LG 27MP38VQ!

Solution [solved] - win10 1703


rem Use %SendKeys% to send keys to the keyboard buffer
set SendKeys=CScript //nologo //E:JScript "%~F0"
%windir%\System32\DisplaySwitch.exe /clone
REM ping -n 5 -w 1 > NUL
ping -n 2 -w 1 > NUL
%SendKeys% "echo off{ENTER}"
%windir%\System32\DisplaySwitch.exe /external
REM ping -n 5 -w 1 > NUL
ping -n 2 -w 1 > NUL
%SendKeys% "echo off{ENTER}"

Solution [solved] - win10 1607

Create the following shortcut in Windows 10:
%windir%\System32\DisplaySwitch.exe /external

This results in the "Second screen only" projection, but as side effect, the right display settings are detected!

Solution [not ok]

See: https://gallery.technet.microsoft.com/scriptcenter/2a631d72-206d-4036-a3f2-2e150f297515:

Copy the following PowerShell -script to a folder of your choice (e.g. C:\Windows\System32):

Create a shortcut to that PowerShell -script:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command "& { . C:\Windows\System32\SetScreenResolution.ps1; Set-ScreenResolution -Width 1920 -Height 1080 }"
  • display
  • detect
  • advanced display settings
  • resolution
  • 1920
  • 1080
  • FullHD
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This page was cached on 08 May 2023 - 04:31.