Powershell - 设置时区
Powershell - Set-TimeZone
我想通过 Powershell 将时区设置为“自动”!
这可能吗?
这是文档:Microsoft Docs - Set-TimeZone
我不熟悉将时区设置为自动的 powershell cmdlet,但我知道您可以通过注册表编辑或 GPO 进行设置。
您可以通过以下注册表设置,请参考以下内容link以获取更多信息:https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/cannot-set-timezone-automatically
注意:标准小心使用注册表免责声明。如果你弄错了东西,你可能会严重破坏你的 OS。 小心!
$TZAutoSettingRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\tzautoupdate"
Set-ItemProperty -Path $TZAutoSettingRegPath -Name "Start" -Value 3
我想通过 Powershell 将时区设置为“自动”!
这可能吗?
这是文档:Microsoft Docs - Set-TimeZone
我不熟悉将时区设置为自动的 powershell cmdlet,但我知道您可以通过注册表编辑或 GPO 进行设置。
您可以通过以下注册表设置,请参考以下内容link以获取更多信息:https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/cannot-set-timezone-automatically
注意:标准小心使用注册表免责声明。如果你弄错了东西,你可能会严重破坏你的 OS。 小心!
$TZAutoSettingRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\tzautoupdate"
Set-ItemProperty -Path $TZAutoSettingRegPath -Name "Start" -Value 3