Skip to main content

ITG - Domain Admin Password Management

Overview​

This automated script rotates or creates a specified Domain Administrator account password on the target endpoint, enforces security compliance, and securely documents the credentials directly into IT Glue.

Implementation​

  1. Download the component from the ITG - Domain Admin Password Management

  2. After downloading the file, click on the Import button in the Datto RMM interface.

  3. Select the component just downloaded and add it to the Datto RMM interface.
    Image 1

  4. After Importing the component to the Datto RMM, make sure to add the component to the PVAL Group always.

    • Steps to Add the component under PVAL Group.
      i. Click on Drop Down Icon.
      ii. Click on Add to Group.
      Image 4
      iii. Select the group as PVAL
      Image 5

Note - In order to get the script working, the machine must have installed Nuget onto the devices which can be done through Datto's Comstore - Enable NuGet PowerShell Provider [WIN]

Sample Run​

To execute the component over a specific machine, follow these steps:

  1. Select the machine you want to run the component on from the Datto RMM.

  2. Click on the Quick Job button.
    Image 2

  3. Search the component ITG - Domain Admin Password Management and click on Select Image 3

  4. Sample Run:
    Image 4
    Image 5

NOTE - Please add all the respective details from the IT Glue portal.

Datto Variables​

Variable NameTypeDefaultDescription
orgIDStringOrganisation ID of client.
NewAdminUsernameStringEnter the new admin name (Used if ChangeAdminUsername is true).
ITGlueAPIKeyStringIT-Glue API key
ITGlueURLStringhttps://api.itglue.comAPI URL IT-Glue
ChangeAdminUsernameBooleanFalseChange the current administrators username(Disable "Administrator" and creates new account)
TargetDomainNameStringThe expected domain name used for the domain validation safety check. The script halts if execution occurs on a different domain.(Eg. hhproducts)

Output​

  • stdOut
  • stdError

Attachments​

Changelog​

2026-09-08​

  • Initial version of the document