Skip to content

Cmdlet Reference

NMM-PS provides 60+ cmdlets organized by functional area.

Cmdlet Categories

Authentication

Connect to the NMM API and manage credentials.

Cmdlet Description
Connect-NMMApi Authenticate to the NMM API
Get-NMMApiToken Get the current cached token
New-NMMApiCertificate Create certificate for auth

Accounts

Manage NMM accounts.

Cmdlet Description
Get-NMMAccount List or get NMM accounts

Host Pools

Manage Azure Virtual Desktop host pools.

Cmdlet Description
Get-NMMHostPool List host pools
Get-NMMHostPoolSettings Get AVD settings
Get-NMMHostPoolAutoscale Get autoscale config
Get-NMMHostPoolAD Get AD settings
Get-NMMHostPoolRDP Get RDP settings
Get-NMMHostPoolFSLogix Get FSLogix config
Get-NMMHostPoolSchedule Get scheduled jobs
Get-NMMHostPoolUser Get assigned users
Get-NMMHostPoolSession Get active sessions

Session Hosts

Manage individual session hosts within pools.

Cmdlet Description
Get-NMMHost List session hosts
Get-NMMHostSchedule Get host schedules

Desktop Images

Manage golden images and templates.

Cmdlet Description
Get-NMMDesktopImage List desktop images
Get-NMMDesktopImageDetail Get image details
Get-NMMImageTemplate List image templates

Users & Groups

Manage users and groups.

Cmdlet Description
Get-NMMUser Get user details
Get-NMMUsers Search/list users
Get-NMMGroup Get group details

Devices (Beta API)

Manage Intune-enrolled devices.

Cmdlet Description Note
Get-NMMDevice List devices Beta
Get-NMMDeviceCompliance Get compliance status Beta
Sync-NMMDevice Force Intune sync Beta

Beta API

Device cmdlets use the v1-beta API and may change without notice.

Backup

Manage Azure Backup protected items.

Cmdlet Description
Get-NMMBackup List backup items
Get-NMMProtectedItem Get protected items
Get-NMMRecoveryPoint List recovery points

Automation

Manage scripted actions and schedules.

Cmdlet Description
Get-NMMScriptedAction List scripted actions
Get-NMMSchedule List schedules
Get-NMMAutoscaleProfile Get autoscale profiles

Pipeline Support

Most NMM-PS cmdlets support pipeline input for chaining:

# Get all host pools for all accounts
Get-NMMAccount | Get-NMMHostPool

# Get sessions for specific accounts
Get-NMMAccount -Name "Contoso*" | Get-NMMHostPool | Get-NMMHostPoolSession

Common Parameters

All cmdlets support:

  • -Verbose - Show detailed progress
  • -Debug - Show debug information
  • -ErrorAction - Control error behavior

Getting Help

Use PowerShell's built-in help:

# Get help for a cmdlet
Get-Help Get-NMMHostPool -Full

# List all parameters
Get-Help Connect-NMMApi -Parameter *

# Show examples
Get-Help Get-NMMAccount -Examples