aaronengels / DattoRMM

A PowerShell module that connects to the Datto RMM API
GNU General Public License v3.0
64 stars 23 forks source link

About

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!

Support my work

You can support this project by donating here.

Basics

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
    }
}

Datto RMM API

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#/.

Release notes

Version 1.0.0.32

Version 1.0.0.31

Version 1.0.0.29

Version 1.0.0.28

Version 1.0.0.26

Version 1.0.0.25

Version 1.0.0.22

Version 1.0.0.10

Version 1.0.0.8

Version 1.0.0.7

Version 1.0.0.6

Version 1.0.0.5