You could also use GPO, startup scripts, and create the solutions that fit your needs.You’re in luck, actually: it turns out that Windows 7 includes an entire set of small apps that Microsoft calls “Gadgets”, one of which is a clock. As I stated earlier, you can use this script to use with other solutions than Intune. I was happily surprised to find this setting, and I think this can be really useful in some cases. The uninstall script will delete both entries (clocks) from the registry, using the uninstall script. Next, head over to your test device and see if the additional clocks show up. In this example, I skip the dependencies and assign the app to a test group of devices. Add both Computer\HKEY_CURRENT_USER\Control Panel\TimeDate\AdditionalClocks\1 and Computer\HKEY_CURRENT_USER\Control Panel\TimeDate\AdditionalClocks\2 To detect if the app is succesfully installed, we check of the register keys are created by adding them to the Detection rules. Select the operating system architecture that you support and pick your minimum operating system version. Uninstall command: powershell.exe -executionpolicy Bypass. Install command: powershell.exe -executionpolicy Bypass. Change the values for the Name, Description, and Publisher.Įnter the install command and uninstall command and make sure you select User as the install behavior. Pick a Win32 app and browse for the intunewin installer that we just created. You’ll find the intunewin install file in the output folder. Use the to wrap the scripts into a intunewin package. New-ItemProperty -Path $Clock2 -Name 'TzRegKeyName' -Value $Clock2TimeZone -PropertyType String -Force New-ItemProperty -Path $Clock2 -Name 'DisplayName' -Value $Clock2DisplayName -PropertyType String -Force 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 |