Disable-PASCPMAutoManagement

Disable-PASCPMAutoManagement

SYNOPSIS

Disables an account for Automatic CPM Management.

SYNTAX

Disable-PASCPMAutoManagement -AccountID <String> [-Reason <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Disables an account for CPM management by setting automaticManagementEnabled to $false, and optionally sets a value for manualManagementReason.

EXAMPLES

EXAMPLE 1

Disables-PASCPMAutoManagement -AccountID 543_2

Sets automaticManagementEnabled to $false on account with ID 543_2

EXAMPLE 2

Disables-PASCPMAutoManagement -AccountID 543_2 -Reason "Some Reason"

Sets automaticManagementEnabled to $false & sets manualManagementReason on account with ID 543_2

EXAMPLE 3

Get-PASAccount -id 543_2 | Disable-PASCPMAutoManagement -Reason "Maintenance window"

Disables automatic CPM management for the account returned by Get-PASAccount, using pipeline input for -AccountID, and sets a reason

EXAMPLE 4

Get-PASAccount -Safe UNIX -Keywords root | Disable-PASCPMAutoManagement

Disables automatic CPM management for every account returned by the Get-PASAccount query

PARAMETERS

-AccountID

The ID of the account to disable automatic CPM management.

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

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

-Reason

The value to set for manualManagementReason

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
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/Disable-PASCPMAutoManagement

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