Docs, notes & scripts on tweaks I often apply to machines
NOTE: This does not take effect until the user fully signs out and back in
$RegPath='HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
$RegPropName='ShowSecondsInSystemClock'
$RegPropValue='1'
# Create the key if it does not exist
If (-NOT (Test-Path $RegPath)) {
New-Item -Path $RegPath -Force | Out-Null
}
# Now set the value
New-ItemProperty -Path $RegPath -Name $RegPropName -Value $RegPropValue -PropertyType DWORD -Force