Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add second clock to windows powershell

<#
Change the values of the clocks to your needs
Edit the Displayname and Timezones for both clocks
If you want to set only one clock, just remove the section from the script. 
 
Test before use!
This will overwrite the current settings (if set)
#>
 
#Set DisplayName and TimeZone for additional Clock 1
$Clock1DisplayName = 'Pune'
$Clock1TimeZone = 'India Standard Time'
 
# Change this!
#Set DisplayName and TimeZone for additional Clock 2
$Clock2DisplayName = 'Melbourne'
$Clock2TimeZone = 'AUS Eastern Standard Time'
 
#Define path and regkeys
$Clock1 = 'HKCU:Control PanelTimeDateAdditionalClocks1'
$Clock2 = 'HKCU:Control PanelTimeDateAdditionalClocks2'
$RegKeyPath = 'HKCU:Control PanelTimeDateAdditionalClocks'
 
 
#Set Clock 1
 
    New-Item -Path $RegKeyPath -Name '1' -Force
    New-ItemProperty -Path $Clock1 -Name 'Enable' -Value '1' -PropertyType DWORD -Force
    New-ItemProperty -Path $Clock1 -Name 'DisplayName' -Value $Clock1DisplayName -PropertyType String -Force
    New-ItemProperty -Path $Clock1 -Name 'TzRegKeyName' -Value $Clock1TimeZone -PropertyType String -Force
 
 
#Set Clock 2
 
    New-Item -Path $RegKeyPath -Name '2' -Force
    New-ItemProperty -Path $Clock2 -Name 'Enable' -Value '1' -PropertyType DWORD -Force
    New-ItemProperty -Path $Clock2 -Name 'DisplayName' -Value $Clock2DisplayName -PropertyType String -Force
    New-ItemProperty -Path $Clock2 -Name 'TzRegKeyName' -Value $Clock2TimeZone -PropertyType String -Force
Comment

PREVIOUS NEXT
Code Example
Shell :: force remove any folder windwos 10 command 
Shell :: bash tab adds backslash before dollar sign 
Shell :: linode aapanel info location 
Shell :: space as delimiter in cut command 
Shell :: powershell join-object 
Shell :: tiger vnc faster 
Shell :: curl output readable json 
Shell :: Send iMessage From Command Line With Bash/Osascript (Osascript = Command Line Version Of Applescript) 
Shell :: github action evaluate dynamic secrets variable 
Shell :: gitattributes -diff 
Shell :: "mkdir -p" exemple 
Shell :: git pull auto rebase accept incoming 
Shell :: powershell read registry value remote computer 
Shell :: cargo create 
Shell :: check number of bridges available jitsi 
Shell :: install codium Fedora 
Shell :: bash search in binary file 
Shell :: git change upstream url 
Shell :: eslint ignore pattern multiple patterns 
Shell :: how to clear linux terminal 
Shell :: boot manager linux install code 
Shell :: ARCH_LINUX : /oldroot BUG 
Shell :: git apply 
Shell :: install lttng for ubuntu 
Shell :: grep belirli bir dosyada arama yapmak 
Shell :: ????author signature 
Shell :: ps -A |grep locust 
Shell :: uninstall Bibata 
Shell :: UFT Developer Deployment 
Shell :: Failed to save two-factor authentication : The Perl module Authen::OATH needed for two-factor authentication is not installed. Use the Perl Modules page in Webmin to install it. 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =