This script will add, update, or delete a local admin account on the system. It pulls down the local admin account password saved in ITGlue to be used when setting up or updating the account. The script will also hide the account so that users do not see it on their login screen.
Variables: itgAPI, itgEP, itgOrg | Should be setup on Global and Site levels accordingly.
This component requires 2 Global, 1 Site & 1 App variables to be setup in Datto RMM to actually perform the task.
- Create the Withum ITGAdmin component in the Datto RMM system.
- Setup the following settings.
- Category: Scripts
- Script: Powershell
- Dump the powershell script into the Datto RMM script field.
- Setup the following variables (Name | Type | Default Value):
- adminTask | Selection | Create/Update (Value: create_update)
- adminTask | Selection | Delete (Value: delete)
- Save the component to be used.

- Set the following variables on your Datto RMM Global Settings.
- itgEP = ITGlue API Endpoint
- itgAPI = Your ITGlue API Key (Needs Password Access)
- Set the following variables on your Datto RMM Site Settings.
- Login to ITGlue.
- Click and load the organization you need the ID of.
- Check the end of the url after the organization loads. The trailing numbers are the Org ID.
- Login to ITGlue and open up the organization for the local admin account
- Create an ITGlue password with the EXACT name "LocalAdmin-DattoRMM" (This name can be edited in the Powershell Script if you would like to use another name)
- Setup the user "wadmin" with what ever password you would like. (wadmin account is hard coded into the powershell script. If you want another account update the script for that account)
- Once this account is created the script should be able to query the account password. (**Note: Only the password is queried. All other variables are hard coded into the script)
