Skip to main content

Export Datto RMM Missing Agents [VSA 9 Migration]

Summary​

Lists every VSA 9 agent that has not enrolled in Datto RMM yet and saves the list to a CSV report. Use it to track migration progress and to find devices that still need the Datto RMM agent.

An agent counts as enrolled when any Datto RMM device, in any site, has the same computer name. Letter case is ignored. The procedure makes no changes in VSA 9 or Datto RMM.

warning

Run this agent procedure against a single Windows machine, not against all machines. It compares the whole VSA 9 tenant with the whole Datto RMM account through their APIs, so running it on more machines only produces identical reports. Run it after each round of the Install Datto RMM Agent [VSA 9 Migration] agent procedure.

Dependencies​

Implementation​

  1. Export the agent procedure from ProVal's VSA RMM instance.
    Name: Export Datto RMM Missing Agents [VSA 9 Migration]

    The export will download the necessary XML file.

  2. Import this XML file into the partner's VSA RMM instance.

  3. Export the Export-DattoRmmMissingAgent.ps1 from ProVal's Internal VSA. This is also placed under the below path:
    Manage Files > Shared Files > PVAL > Export-DattoRmmMissingAgent.ps1
    Image1

  4. Map the Export-DattoRmmMissingAgent.ps1 into the procedure's writeFile step (Step 29) in the client's environment.
    Image2

Sample Run​

Image3

Variables​

VariableTypeDefaultDescription
VsaUrlString(required)Web address used to sign in to VSA 9, for example https://example.kaseya.net.
VsaUsernameString(required)VSA 9 user that owns the personal access token. Letter case matters.
VsaPersonalAccessTokenString(required)VSA 9 personal access token with the REST API (Read, Write) scope.
DattoRmmApiUrlString(required)Datto RMM API URL from your user record, for example https://merlot-api.centrastage.net.
DattoRmmApiKeyString(required)Datto RMM API key.
DattoRmmApiSecretKeyString(required)Datto RMM API secret key.
ReportCsvPathStringC:\ProgramData\_Automation\Script\Export-DattoRmmMissingAgent\Export-DattoRmmMissingAgent-yyyyMMddHHmmss.csvFull path of the report CSV. By default each run creates a new, time-stamped report.
note

Use the same credentials as the Sync Datto RMM Sites [VSA 9 Migration] agent procedure. Avoid apostrophes (single quotes) in variable values; an apostrophe breaks the command that saves the values on the device.

note

The values are saved to a temporary file on the device for the run only. The procedure deletes the file as soon as the script finishes, because it holds the credentials.

Report​

The report is sorted by computer name. The first 20 agents also appear in the Agent Procedure Log.

ColumnDescription
OrganizationVSA 9 organization of the agent.
MachineGroupVSA 9 machine group of the agent.
AgentNameAgent name in VSA 9.
ComputerNameComputer name that was not found in Datto RMM.
LastCheckInLast time the agent checked in to VSA 9.

What to Do Next​

SituationAction
Agent is in the reportRun the Install Datto RMM Agent [VSA 9 Migration] agent procedure on it again.
cPVALDattoRmmDeployStatus shows FailedFix the cause shown in the value, then install again.
Agent or machine group added to VSA 9 after the syncRun the Sync Datto RMM Sites [VSA 9 Migration] agent procedure first, then install.
Status shows Completed but the agent is still reportedThe computer name in VSA 9 differs from the hostname in Datto RMM, for example after a rename. Check the device manually.

Output​

  • Agent Procedure Log
  • Report CSV on the device:
    • C:\ProgramData\_Automation\Script\Export-DattoRmmMissingAgent\Export-DattoRmmMissingAgent-yyyyMMddHHmmss.csv

Changelog​

2026-10-16​

  • Initial version of the document.