Search code examples
windowspowershellchef-infra

disable server manager on Windows Server 2016 with chef recipe


Is there any way to disable launching/killing Server Manager on Windows Server 2016 at the user log-on using some PowerShell command or chef recipe?

Server Manager on Windows Server 2016 launches on every user log-on and it is really annoying as we hardly use it for any reason

IT Infra cannot disable it at organization level so we want to disable it on some specific servers only.


Solution

  • I do have a Chef recipe that sets the appropriate registry key to disable Server Manager from launching on login. The resource definition should be:

    registry_key 'Disable Server Manager on Login' do
      values [{
          name: 'DoNotOpenServerManagerAtLogon',
          type: :dword,
          data: 0x1,
      }]
      key 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\ServerManager'
      action :create
      recursive true
    end