Install the module from PowerShell Gallery and enter your API keys:
# Download and install the module
Install-Module DattoRMM
# Enter API Url and API keys
$apiUrl = '<Datto RMM API Url>'
$apiKey = '<Datto RMM API Key>'
$apiSecretKey = '<Datto RMM API Secret Key>'
# Load DattoRMM Module
Import-Module DattoRMM -ArgumentList $apiUrl, $apiKey, $apiSecretKey
# Get Devices Patch Status
ForEach ($Site in Get-DrmmAccountSites -noDeletedDevices)
{
Foreach ($Device in Get-DrmmSiteDevices $Site.uid)
{
$Device.hostname + " = " + $Device.patchManagement.patchStatus
}
}
How to create API keys goto https://help.aem.autotask.net/en/Content/2SETUP/APIv2.htm for more information.
For the REST API properties goto https://merlot-api.centrastage.net/api/swagger-ui.html#/ for more information.
- 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