Danny Moran

How to fix borderless windows on Windows Server

Published July 01, 2023 by Danny Moran

Table of Contents


Learn how to fix hidden borderless windows in Windows Server. In this example, I show you how to enable title and window borders using the personalisation options, as well as deploying a registry key to automate this process across all servers.


Manual Method (Script)

You can run the following command in command prompt to change the ColorPrevelance registry key from 0 to 1

reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /f /v ColorPrevalence /t REG_DWORD /d 1

To undo the change and remove the borders, you can run the following script:

reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM" /f /v ColorPrevalence /t REG_DWORD /d 0

Manual Method (GUI)

  1. Right-click the desktop and press personalise

  2. On the left hand side, press Colour

  3. Scroll to the bottom and tick the box for Title bars and window borders