Getting Started

Install IdentityCommand.DiscoveryMgmt and connect to Privilege Cloud Discovery

Prerequisites

  • Requires Powershell Core (recommended), or Windows PowerShell (version 5.1)
  • An Idira Identity tenant with the PrivilegeCloud Discovery service enabled
  • An Account to Access Idira Identity
  • The IdentityCommand module.

Install Options

Install from the PowerShell Gallery:

Install-Module -Name IdentityCommand.DiscoveryMgmt -Scope CurrentUser

Or download the latest release, unblock and extract the archive, and copy the IdentityCommand.DiscoveryMgmt folder into a path listed in $env:PSModulePath.

Authentication

The module requires authentication to the Idira Identity platform using the IdentityCommand module.

The IdentityCommand module must be installed and available in order to use IdentityCommand.DiscoveryMgmt.

Authenticate with the IdentityCommand module, using New-IDSession (interactive user, including any MFA challenges) or New-IDPlatformToken (non-interactive service user). Commands find the Discovery Management and Privilege Cloud service urls from the Identity session on first use - no separate connection step is needed:

# Interactive user authentication
New-IDSession -subdomain sometenant -Credential $Credential

# Or non-interactive service user authentication via an OAuth platform token
New-IDPlatformToken -subdomain sometenant -Credential $ServiceUserCredential

Get-DMDiscoveryScanDefinition

Commands follow the current Identity session: a later New-IDSession or New-IDPlatformToken is used by the next command, and after Close-IDSession commands fail until you authenticate again.