Manage Time Zone
Purpose
The solution is designed to manage time zone for Windows machines.
Associated Content
Custom Field
Content | Definition Scope | Required | Type | Available Options | Applicable OS | Function |
---|---|---|---|---|---|---|
cPVAL Manage Time Zone | Organization , Location , Device | True | Drop-down | Windows , Windows Workstations , Windows Servers , Disabled | Windows | Select the operating system to enable the time zone management solution for the client. Set this field to Disable at the location or device level to exclude it. |
cPVAL Time Zone To Set | Organization , Location , Device | True | Text | Windows | Enter the Windows time zone ID to set (e.g., 'Pacific Standard Time'). If not specified or set to 'Default', the script will attempt to detect the time zone automatically based on the device's public IP address. |
Automation
Content | Function |
---|---|
Manage Time Zone | Gets or sets the Windows time zone using a NinjaOne custom field or runtime variables, with automatic detection and IANA-to-Windows mapping if 'Default' is specified. |
Conditions
Content | Function |
---|---|
Set Time Zone - Windows Workstations | Runs the Manage Time Zone automation one per day on windows workstations where the cPVAL Manage Time Zone custom field is enabled. |
Set Time Zone - Windows Servers | Runs the Manage Time Zone automation one per day on Windows Servers where the cPVAL Manage Time Zone custom field is enabled. |
Implementation
Step 1
Create the following custom fields:
Step 2
Create the Manage Time Zone automation.
Step 3
Create the Set Time Zone - Windows Workstations compound condition for default Windows Workstation [Default]
agent policy.
Step 4
Create the Set Time Zone - Windows Servers compound condition for default Windows Server [Default]
agent policy.
FAQ
1. What does the "Manage Time Zone" solution do?
The "Manage Time Zone" solution allows you to centrally manage and set the time zone on Windows machines using NinjaOne automation, custom fields, and conditions.
2. How does the automation determine which machines to target?
The automation runs on machines where the cPVAL Manage Time Zone custom field is enabled. You can set this field at the organization, location, or device level.
3. What happens if the "Time Zone To Set" field is left blank or set to "Default"?
If the cPVAL Time Zone To Set field is blank or set to Default
, the script will attempt to detect the appropriate time zone automatically based on the device's public IP address.
4. Can I run the script manually on a single agent?
Yes, you can execute the script manually against a single agent. Refer to the sample screenshots in the script's document for guidance on running the script and using Runtime Input variables.
5. What are Runtime Input variables and how are they used?
Runtime Input variables allow you to provide values to the script at execution time, enabling dynamic configuration without modifying the script itself. Sample screenshots in the script's document show how to use these variables.
6. Can I exclude certain devices from the time zone management solution?
Yes, set the cPVAL Manage Time Zone custom field to Disabled
at the location or device level to exclude those devices from the automation.