Skip to main content

Manage Time Zone

Overview​

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.

Sample Run​

Play Button > Run Automation > Script
SampleRun1

Search and select Manage Time Zone Image1

Set the required arguments and click the Run button to run the script.

  • Run As: System
  • Preset Parameter: <Leave it Blank>
  • Action: Get or Set
  • TimeZone: Default or <TimeZone to set>
    Image2

Run Automation: Yes
RunAutomation

Dependencies​

Parameters​

NameExampleAccepted ValuesRequiredDefaultTypeDescription
ActionGetGet, SetFalseGetDrop-DownSpecifies the action to perform.
Time ZoneEastern Standard TimeFalseDefaultStringThe Windows time zone ID to set (e.g., 'Pacific Standard Time'). If left blank, the script sets the Windows time zone automatically based on the device's public IP address.

Automation Setup/Import​

Automation Configuration

Output​

  • Activity Details

Changelog​

2025-06-26​

  • Initial version of the document