在启动时从Windows 10登录屏幕中删除12小时时间(已设置24小时)


4

这个问题已经在这里有了答案:

所以我的问题有些微,并且主要问题已在此处解决,但是当我第一次打开计算机时,它始终显示12h格式。我登录的帐户是admin帐户,登录后(由于我的设置),锁定屏幕显示24小时。但是在我这样做之前,它总是显示12h。

这不是什么大不了的事,我只是觉得很烦,因为我认为如果我不读取模拟时钟,那么12h系统就很烦人。我猜想它会遵循一些“默认”值(大概是Windows通常默认采用的美国值)-是否有某种方法可以更改此值?

Answers:


9

可以在以下注册表项中找到“ .DEFAULT”系统国际化设置:

HKEY_USERS\.DEFAULT\Control Panel\International

更新以下值以匹配您的用户设置:

  • sTimeFormat(可能是:H:mm:ss)
  • sShortTime(可能是:H:mm)

注意:您的用户设置可以在以下位置找到:

HKEY_CURRENT_USER\Control Panel\International

谢谢,这很完美!我实际上复制了您的链接,并确定DEFAULT之前的时间是错别字,但是没有。在我浏览过的所有页面中,没有人提及此事。巨大的荣誉!
Asinine

0

PowerShell方法:

New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null 
$internationalPaths = @("HKU:\.DEFAULT\Control Panel\International","HKCU:\Control Panel\International")
$hourFormat = "h"
IF($TimeFormat -eq '24h')
{
    $hourFormat = "H"
}       
FOREACH ($path in $internationalPaths)
{
    IF((Get-ItemProperty $path).'sTimeFormat')
    {
        #Windows 10 default time format h:mm:ss tt
        Set-ItemProperty -Path $path -Name "sTimeFormat" -Value "$hourFormat`:mm:ss tt"
    }
    IF((Get-ItemProperty $path).'sShortTime')
    {
        #Windows 10 default time format h:mm tt
        Set-ItemProperty -Path $path -Name "sShortTime" -Value "$hourFormat`:mm tt"
    }
}

更多详细信息如何通过PowerShell更改Windows 10锁定屏幕时间格式

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.