New-ItemProperty -Path $Clock2 -Name 'Enable' -Value '1' -PropertyType DWORD -Force New-Item -Path $RegKeyPath -Name '2' -Force New-ItemProperty -Path $Clock1 -Name 'TzRegKeyName' -Value $Clock1TimeZone -PropertyType String -Force New-ItemProperty -Path $Clock1 -Name 'DisplayName' -Value $Clock1DisplayName -PropertyType String -Force New-ItemProperty -Path $Clock1 -Name 'Enable' -Value '1' -PropertyType DWORD -Force New-Item -Path $RegKeyPath -Name '1' -Force $RegKeyPath = 'HKCU:\Control Panel\TimeDate\AdditionalClocks\' $Clock2 = 'HKCU:\Control Panel\TimeDate\AdditionalClocks\2\' $Clock1 = 'HKCU:\Control Panel\TimeDate\AdditionalClocks\1\' $Clock2TimeZone = 'AUS Eastern Standard Time' ![]() #Set DisplayName and TimeZone for additional Clock 2 #Set DisplayName and TimeZone for additional Clock 1 Your folder would look something like this: Install.ps1 If your not sure, just set up the clock on your machine, and check the Computer\HKEY_CURRENT_USER\Control Panel\TimeDate\AdditionalClocks key. You can also use this website as a reference. You’ll find all the timezones by using the tzutil /l command in your command prompt or by checking the list from Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. If you want to set just 1 clock, you’ll have to tweak the script a little bit to delete the code for clock 2.Įnter a Displayname and a Timezone for both clocks by changing the variables. Change the values of both clocks to your needs. To start, create a folder on your local hard drive, and put in both install.ps1 and uninstall.ps1 files. We wrap it up in a Win32 app to push it with Intune, but you can also use the scripts to use with your current management system. To see it yourself, configure the clock and check: Computer\HKEY_CURRENT_USER\Control Panel\TimeDate\AdditionalClocks This setting can be configured using registry keys. ![]() So, you have now configured this on your workstation (you’re welcome), and you wonder if you can set this up for your other machines. You can even pin them to your start menu. I also learned that you can more clocks in the Alarms & Clock app. You can find this feature in the Data & Time settings. I also learned that this setting came with Windows Vista, so it was sitting there the whole time. This setting seemed undiscovered for many people. I was very surprised and Tweeted about it. When struggling with this for 2 hours, I accidentally stumbled upon this setting, where you can display 2 additional clocks: Then I start looking for a way to make this easier and I was thinking to use BGInfo do reflect the time on my background. ![]() When you work for an international company, or you have to deliver support in other timezones, you might find yourself Googling for time in different timezones from time to time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |