New-AmsDeviceRegistrationKey

SYNOPSIS

Creates a new device registration key

SYNTAX

New-AmsDeviceRegistrationKey -Name <String> [-Disable] [-ActivationLimit <Int32>] [-ApprovalRequired]
 [<CommonParameters>]

DESCRIPTION

This cmdlet creates a new device registration key, and optionally allows you to set an activation limit, and specify if device approval is required

EXAMPLES

Example 1

PS C:\> New-AmsDeviceRegistrationKey -Name "macOS device registration key"

Creates a new registration key with the specified name

Example 2

Creates a new registration key with the specified name, that can only be used for a single activation

Example 3

Creates a new registration key with the specified name, that can only be used for a single activation, and requires that an AMS administrator approve the device before it can connect to the AMS server

PARAMETERS

-ActivationLimit

Specifies the number of times the key can be used

-ApprovalRequired

Specifies if administrator approval is required for devices using this key

-Disable

Indicates if the key should be created in a disabled state

-Name

The name of the key

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

Lithnet.AccessManager.PowerShell.RegistrationKeyPSObject

NOTES

Use of this cmdlet requires an Enterprise Edition license.

Last updated

Was this helpful?