Working with the EDR PowerShell module

SECURITY   Datto EDR subscription with administrator or analyst-level platform access

SECURITY   Service account or administrator-level rights on the target endpoint

BEFORE YOU BEGIN  On each endpoint for which you'd like to enable communication with the API, perform the steps described in Configuring the Datto EDR PowerShell module.

With the Datto EDR PowerShell module, you can gain programmatic access to the API, export audit data from endpoints in CSV or JSON formats, manage locations, upload offline scans, and initiate collection. This article describes the functions and cmdlets that you can use to do so.

Run all commands described in this article from an administrator-level PowerShell session on the endpoint that you'd like to communicate with your EDR instance.

Index

Getting started

To open communication to an instance from an endpoint, use the Set-ICToken command. Replace <instanceName> with the first part of your EDR instance's URL. As an example, for the URL https://alpo1.infocyte.com, enter alpo1.

PS > Set-ICToken -Instance <instanceName> -Token <token> -save

Retrieving and filtering data

Records in Datto EDR are either event-based or object-based.

The platform aggregates both types of records by their unique hash and path, and then categorizes these aggregations into "boxes" of events for the last seven or 15 days for each location.

By default, the Get-ICObject and Get-ICData functions will return events from the Global Last 7 Days box. Both commands have the same function and are aliases of one another.

You can also filter the returns to a specific location ID and time frame.

Enumerating, scanning, and responding to threats

Many of the functions described here require a TargetGroupId reference. Refer to the Determining a location from the last seven days, use the where argument. Replace groupId with the ID of the location ID section of this article for more information.

Importing and exporting data

location management

Development functions

Additional functions

The following additional functions are supported by the API.