Since some of my test machines are a touch low on resources, having to wait for the server manager process to finish loading can be a little bit painful.
There are group policy and local policy options to suppress this in addition to editing the registry.
There is always the option to disable it directly from Server Manager, but I’d rather automate this. For completeness sake, the below shows how to manually disable Server Manager on a Windows Server 2012 R2 server.
Select “Manage” in the top right hand corner, then Server Manager properties
In the Server Manager Properties Window, you can choose to disable it from starting up automatically at logon.
The option to control via a GPO is contained here:
Computer Configuration\Administrative Templates\System\Server Manager
Using the Group Policy Management Console on Windows 2012 R2, we can set the policy as follows:
When the GPO is refreshed on the machines that fall under the scope of the policy, the settings will be applied. This then greys out the “Do not start Server Manager automatically” at logon option.
In addition we can also set a registry key automatically via a script to set the required registry key.
HKCU\Software\Microsoft\ServerManager\DoNotOpenServerManagerAtLogon REG_DWORD 0x1
HKCU\Software\Microsoft\ServerManager\DoNotOpenServerManagerAtLogon
REG_DWORD 0x1
To query this via cmd prompt:
REG.exe Query HKCU\Software\Microsoft\ServerManager /V DoNotOpenServerManagerAtLogon
To set this via cmd prompt:
REG.exe Add HKCU\Software\Microsoft\ServerManager /V DoNotOpenServerManagerAtLogon /t REG_DWORD /D 0x1 /F
(Note that the above is one line that may wrap)
We can retrieve the current configuration using the first two commands, whilst the third one sets the value:
Get-Item HKCU:\Software\Microsoft\ServerManager Get-ItemProperty -Path HKCU:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon | select DoNot OpenServerManagerAtLogon | Ft –AutoSize New-ItemProperty -Path HKCU:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon -PropertyType DWORD -Value "0x1" –Force
Get-Item HKCU:\Software\Microsoft\ServerManager
Get-ItemProperty -Path HKCU:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon | select DoNot OpenServerManagerAtLogon | Ft –AutoSize
New-ItemProperty -Path HKCU:\Software\Microsoft\ServerManager -Name DoNotOpenServerManagerAtLogon -PropertyType DWORD -Value "0x1" –Force
(Note that the above are all one line that may wrap)
Cheers,
Rhoderick
If you would like to have Microsoft Premier Field Engineering (PFE) visit your company and assist with the topic(s) presented in this blog post, then please contact your Microsoft Premier Technical Account Manager (TAM) for more information on scheduling and our varied offerings!
If you are not currently benefiting from Microsoft Premier support and you’d like more information about Premier, please email the appropriate contact below, and tell them you how you got introduced!
US
Canada
For all other areas please use the US contact point.
I just disable it in says prep all together:)
That'd do it too :)