如何在 Windows Server 2019 Powershell 和 UI 上禁用服务器管理器

Avilas

When you are logging in to the server on your Windows Server 2019, you will be usually be welcomed by Server Manager at startup.无论您使用的是 Windows Server 2019 还是 Windows Server 的任何早期版本,服务器管理器都是您最常遇到的外观之一。 However, there are several reasons you would not want to witness it popping up. So, how would you be able to disable the Server Manager on Windows Server? The tutorial should be helpful in your quest to look for the best options to do it.

什么是服务器管理器?

来源:https://cloudblogs.microsoft.com/windowsserver/2018/03/20/introducing-windows-server-2019-now-available-in-preview/

服务器管理器是 Windows Server 环境的基本元素。它一直是包括 Windows Server 2012、2016 甚至 2019 在内的任何 Windows Server 版本的活动组件之一。

另请阅读:新推荐的 Windows Server 2019 系统要求是什么

服务器管理器是一个管理控制台,旨在帮助 IT 专业人员。这对于让 IT 管理员管理基于 Windows 服务器的本地和远程服务器非常有帮助。管理员现在不需要对服务器进行物理访问。

您可以使用多种方法在 Windows Server 2019 上禁用服务器管理器。请注意,服务器管理器会在每个版本的 Windows Server 上自动弹出,其中包括 2012 至 2019 的版本。虽然本教程基于 Windows Server 2019 并计划面向 Windows Server 2019 用户,但此处的提示应适用于所有版本。

Disabling the Server Manager on a single device would be quite simple and more straightforward.但是,如果您要管理具有更大设置的多台服务器,则组策略编辑器可能是帮助您解决此问题的完美解决方案。

在本文中,我们尝试列出了禁用服务器管理器的各种方法。在这里一一查看不同的方法。

方法 1 – 使用服务器管理器 UI

The simplest and easiest method would be to opt for the settings within the Server Manager itself.这应该是您可以选择的最佳方法。

以下是解决该问题所涉及的步骤 –

  • 启动服务器管理器
  • 点击管理
  • 接下来,单击服务器管理器属性。
  • 在打开的服务器管理器属性窗口下,找到以下选项:登录时不自动启动服务器管理器
  • 选中它旁边的框。
  • 单击“确定”

就可以了。 You have successfully disabled the Server Manager pop up. Next time you log in to your Windows Server 2019, the Server Manager will not pop up automatically.

方法 2 – 使用组策略编辑器

组策略编辑器是最强大的工具之一,如果处理不当,可能会产生毁灭性的影响。确保您知道自己在做什么。此外,组策略编辑器仅在 Windows 10 专业版和企业版上可用。如果您使用的是 Windows 10 家庭版,您将无法访问组策略编辑器选项。

请按照以下步骤操作 –

  • 启动 Windows 搜索并输入组策略编辑器。您还可以通过以下方式启动“运行”对话框Windows + RMSC 中的组合键和键入
  • 按照下面的路径进行操作 –

计算机配置 -> 管理模板 -> 系统 -> 服务器管理器

  • 找到该选项不显示服务器管理器自动登录。
  • 双击一个项目。
  • 点击选项

这应该可以完成任务。 You will not be disturbed with the Server manager pop up ever again.

  • 启动任务管理器
  • 在左侧,侧窗格遵循此处的路径

任务计划程序库 -> Microsoft -> Windows -> 服务器管理器

  • 右键单击服务器管理器
  • 从上下文菜单中选择选项

方法 4 – 使用 Windows PowerShell

Windows PowerShell 是另一个出色的选项,它对于解决您可能面临的有关 Windows Server 2019 的大多数问题非常有用。

  • 启动 Windows PowerShell。您可以使用 Windows 键和 X 键来执行此操作。您还可以通过 Windows 搜索搜索 Windows PowerShell。
  • 输入下面的命令
Get-ScheduledTask -TaskName ServerManager | Disable-ScheduledTask -Verbose

这就是窍门。您的 Windows Server 管理器将被禁用。 Next time you launch your Windows Server 2019, the server manager will not pop up unless you explicitly start it.

Another excellent option that should be helpful enough would include the following steps.这使用了一组不同的命令 -

  • 启动 Windows PowerShell。请遵循上面讨论的提示
  • 输入以下命令
Invoke-Command -ComputerName Exchange-2019 -ScriptBlock { New-ItemProperty -Path HKCU:SoftwareMicrosoftServerManager -Name DoNotOpenServerManagerAtLogon -PropertyType DWORD -Value "0x1" –Force}

应该可以做到这一点。此命令将创建一个注册表项并禁用服务器管理器的弹出窗口。该方法已在Windows Server 2012、2016、2019上进行了测试,运行良好。

结论性想法

这些是一些简单且更直接的选项,您可以使用它们来禁用 Windows Server 2019 上的服务器管理器。组策略编辑器方法应该是您想要使用的最佳选择之一。这确实是一个完美的选择,足以帮助充分解决该问题。

我们建议使用组策略编辑器,它可能是您可以使用的最佳选项之一。当您在 Windows Server 2019 下管理多台服务器并希望同时禁用所有服务器上的服务器管理器时尤其如此。在单个服务器上禁用它可能是一个非常令人不安且低效的选择。

上述步骤和教程应该有助于解决服务器管理器自动弹出的问题。查看级别并与我们分享您的想法。

有关 Windows 服务器的更多信息

  • 如何在 Windows Server 2019 上安装 System Insights – 服务器管理器
  • 修复并解决错误代码 100013 – DPC Watch DOG 违规 Windows Server 2016 和 2019
  • Windows Server 系统见解简介