当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] Windows Server Core:默认使用 PowerShell 启动

作者:精品下载站 日期:2024-12-14 07:30:09 浏览:13 分类:玩电脑

Windows Server Core:默认使用 PowerShell 启动


Windows Server Core 默认以 cmd 启动。为什么?我不知道。这很烦人,因为 Windows Powershell 无疑是 Windows 系统管理的未来。

好吧,如果您正在运行服务器核心(我希望如此,对于域控制器、DNS、文件服务等,没有充分的理由不这样做),那么更改它很容易。必须在注册表中配置相应的设置。 Regedit 可以在 Server Core 上打开(核心附带有更多图形用户界面,例如 notepad.exe 和 timedate.cpl)。我说的是这个关键:

[玩转系统] Windows Server Core:默认使用 PowerShell 启动

让我们更改此设置,使 Core 在登录后启动 PowerShell。

打开 Windows PowerShell(在 cmd 类型 powershell 中)。输入以下命令并按 Enter 键:


Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\' -Name Shell -Value 'powershell.exe'

[玩转系统] Windows Server Core:默认使用 PowerShell 启动

接下来,重新启动服务器核心。

Restart-Computer -Force

登录后,您应该会看到 PowerShell 提示。

[玩转系统] Windows Server Core:默认使用 PowerShell 启动

下一步是什么?

有关进一步的 Core 配置,请参阅我有关 Core 的其他文章。

这不是您父亲的 Windows Server:使用 PowerShell 设置服务器核心

PowerShell:如何使用服务器核心安装域控制器

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯