This module will make using the Datto RMM API in your PowerShell scripts easier. As all the hard work is done, you can develop your scripts faster and be more efficient. There is no need to go through a big learning curve spending lots of time working out how to use the Datto RMM API. Load the module, enter your API keys and get results within minutes!
You can support this project by donating here.
You can install the module from the PowerShell Gallery and use the example below to get started.
# Load module
Import-Module DattoRMM -Force
# Provide API Parameters
$params = @{
Url = '<Datto RMM API Url>'
Key = '<Datto RMM API Key>'
SecretKey = '<Datto RMM API Secret Key>'
}
# Set API Parameters
Set-DrmmApiParameters @params
# Get Devices Patch Status
ForEach ($site in Get-DrmmAccountSites -noDeletedDevices)
{
Foreach ($device in Get-DrmmSiteDevices $site.uid)
{
$device.hostname + " = " + $device.patchManagement.patchStatus
}
}
To learn how to create API keys, go to https://help.aem.autotask.net/en/Content/2SETUP/APIv2.htm.
For more information on the REST API properties, go to https://merlot-api.centrastage.net/api/swagger-ui.html#/.
- Added support to pull activity logs (by Phill Holbrook)
- Add PSCredential support for connecting Api (by Meelis Nigols)
- Added Get-DevicesNeedingReboot (by Brian Killay)
- Improved error handling (by Phill Holbrook)
- Fixed umlaut problem (by BKSystemsEngler)
- Added -UseBasicParsing parameter to Invoke-WebRequest (by Rob Gilbreath)
- Fixed Get-DrmmAuditDeviceSoftware
- Update Get-DrmmAccountDevices.ps1 (by Rob Gilbreath)
- Update Get-DrmmSiteDevices.ps1 (by Rob Gilbreath)
- Create Get-DrmmCustomFilters.ps1 (by Rob Gilbreath)
- Create Get-DrmmDefaultFilters.ps1 (by Rob Gilbreath)
- Update Get-DrmmCustomFilters.ps1 (by Rob Gilbreath)
- Update Get-DrmmDefaultFilters.ps1 (by Rob Gilbreath)
- Update Get-DrmmCustomFilters.ps1 (by Rob Gilbreath)
- Update Get-DrmmDefaultFilters.ps1 (by Rob Gilbreath)
- Update Get-DrmmAccountDevices.ps1 (by Rob Gilbreath)
- Update Get-DrmmSiteDevices.ps1 (by Rob Gilbreath)
- Added Get-DrmmSiteVariables (by Rob Gilbreath)
- Added Get-DrmmAccountVariables (by Rob Gilbreath)
- Added New-DrmmSiteVariables (by Rob Gilbreath)
- Added New-DrmmAccountVariables (by Rob Gilbreath)
- Added Remove-DrmmSiteVariables (by Rob Gilbreath)
- Added Remove-DrmmAccountVariables (by Rob Gilbreath)
- Added Set-DrmmDeviceWarranty (by Kelvin Tegelaar)
- Performance improvements, code cleanup, added features for v9.2 (by Kelvin Tegelaar)
- Added Set-DrmmApiParameters - You can now import the module first and add API parameters later.
- Added Add-DrmmAlertMessage - Add a alert message based on the alert context provided by the API.
- Added Get-DrmmAuditESXi - To get audit data from ESXi hosts
- Added Get-DrmmAuditPrinter - To get audit data from printers
- Updated Get-DrmmAuditDeviceSoftware - Fixed API Request Url.
- Updated Set-DrmmDeviceUdf - Fixed API Request Url.
- Updated Set-DrmmSiteProxy - Fixed JSON request issue.
- Updated Remove-DrmmSiteProxy - Fixed JSON request issue.
- Updated Set-DrmmSiteProxy - Updated function parameters.
- Updated New-DrmmSite - Fixed issue when using the onDemand switch.
- Updated Set-DrmmSite - Fixed issue when using the onDemand switch.
- Updated New-ApiAccessToken - Adjusted security protocols
- Added Get-DrmmAuditDevice
- Added Get-DrmmAuditDeviceSoftware
- Updated New-ApiRequest - Added error handling.
- Updated New-ApiAccessToken - Added error handling.
- Updated New-ApiRequest - Removed global variables.
- Updated New-ApiRequest - Added delay when 600 requests/minute reached.
- Updated Set-DrmmSiteProxy - Made host, port and type mandatory.
- Added New-DrmmSite
- Added Set-DrmmSite
- Added Set-DrmmSiteProxy
- Added Set-DrmmSiteResolvedAlerts
- Added Set-DrmmSiteOpenAlerts
- Added Get-DrmmSiteSettings
- Added Get-DrmmDeviceResolvesAlerts
- Added Get-DrmmDeviceOpenAlerts
- Added Get-DrmmDeviceQuickJob
- Added Get-DrmmJobStatus
- Added Move-DrmmDeviceToSite
- Added Remove-DrmmSiteProxy
- Added Get-DrmmAlert Function
- Added Set-DrmmAlertMute Function
- Added Set-DrmmAlertResolve Function
- Added Set-DrmmAlertUnmute Function
- Added Set-DrmmDeviceUdf Function
- Added Set-DrmmDeviceWarranty Function
- Added -NoDeletedDevices Parameter to Get-DrmmSiteDevices to ignore the 'Deleted Devices' site.
- Added Get-DrmmAccount Function
- Added Get-DrmmAccountAlertsOpen Function
- Added Get-DrmmAccountAlertsResolved Function
- Added Get-DrmmAccountComponents Function
- Added Get-DrmmAccountDevices Function
- Added Get-DrmmAccountUsers Function
- Added Get-DrmmSiteDevices Function
- Added Get-DrmmAccountSites Function
- Added New-ApiRequest Function
- Added New-ApiAccessToken Function