From 2228eab70affc0260b84abdf9f6884c1d8d87c71 Mon Sep 17 00:00:00 2001 From: USER Date: Thu, 21 Aug 2025 20:34:19 +0100 Subject: [PATCH] . --- PS/ShowSeconds.ps1 | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/PS/ShowSeconds.ps1 b/PS/ShowSeconds.ps1 index 9c3d7b9..6920b5f 100644 --- a/PS/ShowSeconds.ps1 +++ b/PS/ShowSeconds.ps1 @@ -1,16 +1,5 @@ -Set-StrictMode -Version 'latest' -if (Test-Path -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced') -{ - Get-ChildItem -Path 'HKCU:\Control Panel\NotifyIconSettings' | - ForEach-Object { - Set-ItemProperty -Path ($_.PSPath) -ErrorAction SilentlyContinue -Name 'IsPromoted' -Value 0x00000001 - } -} +If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced")) { + New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" | Out-Null } +Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSecondsInSystemClock" -Type DWord -Value 1 - - -Windows Registry Editor Version 5.00 - -[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] -"ShowSecondsInSystemClock"=dword:00000001 \ No newline at end of file