Skip to content

PowerShell module for working with the SyncroRMM API

License

Notifications You must be signed in to change notification settings

davejlong/SyncroRMM

Repository files navigation

SyncroRMM PowerShell Module

PowerShell module for interacting with the SyncroRMM API. Heavily based on the HuduAPI PowerShell module.

If this module helps you be more productive, consider donating to help me keep working on it.

Buy Me A Coffee

Documentation

Documentation for each command can be found in the /Docs folder.

Authentication

The module needs two items items for authentication:

  • Subdomain - The unique subdomain for your Syncro tenant (ie. for https://mycompany.syncromsp.com), the subdomain to use is "mycompany")
  • API Key - An API key generated from the Syncro Admin center

There are two ways to make the Subdomain and API Key available to the module:

Environment Variables

Set environment variables for the following:

  • SyncroAPIKey - Environment variable containing an encrypted copy of your API Key
  • SyncroSubdomain - Environment variable containing the Subdomain

To generate the encrypted API key use the following commands:

$SyncroKey = "FDSA53421F"
$SecSyncroKey = ConvertTo-SecureString -String $SyncroKey -AsPlainText -Force
$SecSyncroKey | ConvertFrom-SecureString

Commands

Call the following commands:

Set-SyncroApiKey -ApiKey FDSA53421F
Set-SyncroSubdomain -Subdomain applebees

Basic Usage

Import-Module SyncroRMM

# Set the subdomain and API key
Set-SyncroSubdomain -Subdomain applebees
Set-SyncroApiKey -ApiKey FDSA53421F

# Get the Contoso customer
$Customer = Get-SyncroCustomer -BusinessName "Contoso"

# Get all assets for Contoso
Get-SyncroAsset -CustomerId $Customer.Id

About

PowerShell module for working with the SyncroRMM API

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published