Enable-PASCPMAutoManagement

Enable-PASCPMAutoManagement

SYNOPSIS

Enables an account for Automatic CPM Management.

SYNTAX

Enable-PASCPMAutoManagement [-AccountID] <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Enables an account for CPM management by setting automaticManagementEnabled to $true, and clearing any value set for manualManagementReason.

Attempting to set automaticManagementEnabled to $true without clearing manualManagementReason at the same time results in an error.

This function requests the API to perform both operations with a single command.

EXAMPLES

EXAMPLE 1

Enable-PASCPMAutoManagement -AccountID 543_2

Sets automaticManagementEnabled to $true & clears any value set for manualManagementReason on account with ID 543_2

EXAMPLE 2

Get-PASAccount -id 543_2 | Enable-PASCPMAutoManagement

Gets the specified account and enables it for automatic CPM management, using the account ID from the pipeline.

EXAMPLE 3

Get-PASAccount -search "Administrator" | Enable-PASCPMAutoManagement

Enables automatic CPM management for every account returned by the search.

PARAMETERS

-AccountID

The ID of the account to enable for automatic management by CPM.

Type: String
Parameter Sets: (All)
Aliases: id

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

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

OUTPUTS

NOTES

Applicable to and requires 10.4+

https://pspas.pspete.dev/commands/Enable-PASCPMAutoManagement

https://pspas.pspete.dev/commands/Set-PASAccount