Windows Server 2019: Stop Server Manager loading at startup using a PowerShell command
Part of any Operating System that you install, whether it is Server 2012 or Server 2019, Server Manager launches on startup.
A quick command below will create a registry key and disable it so it doesn't start on windows boot. Here is the command:
Invoke-Command -ComputerName Exchange-2019 -ScriptBlock { New-ItemProperty -Path HKCU:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon -PropertyType DWORD -Value "0x1" –Force}
I have tested this on Server 2012, R2 and Server 2016 and now Server 2019.
Here is a screenshot below of the output once run:
http://everything-powershell.com/wp-content/uploads/2018/12/Powershell.png
You can disable the `Server Manager` task by using the following command:
Get-ScheduledTask -TaskName ServerManager | Disable-ScheduledTask -Verbose