Set-AmsDeviceRegistrationKey

SYNOPSIS

Sets the properties of a device registration key

SYNTAX

None (Default)

Set-AmsDeviceRegistrationKey -Id <String> [-Name <String>] [-ActivationLimit <Int32>] [-ResetActivationCount]
 [<CommonParameters>]

EnableApprovalRequired

Set-AmsDeviceRegistrationKey -Id <String> [-Name <String>] [-Enable] [-ActivationLimit <Int32>]
 [-ApprovalRequired] [-ResetActivationCount] [<CommonParameters>]

EnableApprovalNotRequired

Set-AmsDeviceRegistrationKey -Id <String> [-Name <String>] [-Enable] [-ActivationLimit <Int32>]
 [-ApprovalNotRequired] [-ResetActivationCount] [<CommonParameters>]

DisableApprovalRequired

Set-AmsDeviceRegistrationKey -Id <String> [-Name <String>] [-Disable] [-ActivationLimit <Int32>]
 [-ApprovalRequired] [-ResetActivationCount] [<CommonParameters>]

DisableApprovalNotRequired

DESCRIPTION

This cmdlet allows you to set the properties of a device registration key

EXAMPLES

Example 1

Changes the name of an activation key and resets its activation count

Example 2

Gets a registration key by its name and disables it.

PARAMETERS

-ActivationLimit

Specifies the number of times the key can be used

-ApprovalNotRequired

Specifies that devices can register without additional approval

-ApprovalRequired

Specifies that administrator approval is required for devices using this key

-Disable

Indicates if the key should be disabled

-Enable

Indicates if the key should be enabled

-Id

The ID of the key

-Name

The name of the key

-ResetActivationCount

Specifies if the activation count of this key should be reset

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

System.String

OUTPUTS

Lithnet.AccessManager.PowerShell.RegistrationKeyPSObject

NOTES

Use of this cmdlet requires an Enterprise Edition license.

Last updated

Was this helpful?