Skip to main content

Uninstall Datto Backup Tool

Summary

This script uninstalls the Datto Windows Agent or Datto Cloud Continuity or both, depending on the option selected at the Uninstall Datto Backup Tool client-level EDF. It then grabs the quietuninstallstring from the registry of the installed application.

File Hash

  • File Path: C:\ProgramData\_automation\script\DattoUninstall\DattoUninstall.ps1
  • File Hash (SHA256): 80E436DEA2AF5FFE4EF8141CD4595BAAA305519EF265B9EEC663CF24F074BF62
  • File Hash (MD5): 0DAFD4820F6D5871A28357EC7A980195

Sample Run

First Run: Execute the script with the user parameter SetEnvironment as 1 to import the EDFs needed for the script.
Sample Run

Regular Run: Sample Run

Dependencies

Solution - Uninstall Datto Backup Tool

EDFs

NameLevelSectionDescription
Uninstall Datto Backup ToolClientDattoSelect the application to uninstall.
Available Options:
- Datto Windows Agent
- Datto Cloud Continuity
- All
Exclude Datto Backup Tool RemovalLocationExclusionsThis excludes the location from the uninstallation of Datto Windows Agents or Cloud Continuity.
Exclude Datto Backup Tool RemovalComputerExclusionsThis excludes the device from the uninstallation of Datto Windows Agents or Cloud Continuity.

Process

  • It checks if the agent has Datto Windows Agent or Datto Cloud Continuity or both installed, depending on the option selected at the Uninstall Datto Backup Tool client-level EDF.
  • If detected, then it writes a PS1 on the agent with file hashes (shown above) that can be used to whitelist if any third-party blocking application is installed in the environment that can restrict the PowerShell execution.
  • The PS1 fetches the quiet uninstall command from the application registry and executes it using the system account, and uninstalls the application.
  • It includes proper error handling

Output

  • Script Log