New-DSPamCheckoutPolicy
Synopsis
Create a new PAM checkout policy
Syntax
__AllParameterSets
New-DSPamCheckoutPolicy -Name <string> [-CheckoutApprovalMode <CheckoutApprovalMode>]
[-CheckoutReasonMode <CheckoutReasonMode>] [-AllowCheckoutOwnerAsApprover <ApproverOptions>]
[-IncludeAdminsAsApprovers <ApproverOptions>] [-IncludeManagersAsApprovers <ApproverOptions>]
[-CheckoutTime <int>] [-IsDefault] [-AsLegacyResponse] [<CommonParameters>]Description
Create a new PAM checkout policy using supplied parameters. If one or more parameters are omitted, they default to a certain value. Only mandatory value is "Name"
Examples
PS C:\> New-DSPamCheckoutPolicy -Name "Public accounts" -CheckoutTime 120 -IsDefaultCreate a new policy that will be used as the default one.
Parameters
-AllowCheckoutOwnerAsApprover
Indicate if owner can self-checkout.
-AsLegacyResponse
In versions prior to 2024.2, many DS cmdlets returned a ServerResponse object. Enabling this backward compatibility switch allows scripts developed for earlier versions to function correctly.
-CheckoutApprovalMode
Indicate if the checkout must be approved. Approval mode choices: Default, None, Mandatory
-CheckoutReasonMode
Indicate if a reason must be given for the checkout. Checkout reason mode choices: Default, None, Mandatory, Optional
-CheckoutTime
Default duration assigned to checkout's request. If set at 0, the default value will be used.
-IncludeAdminsAsApprovers
Indicate if administrators can approve checkout.
-IncludeManagersAsApprovers
Indicate if managers can approve checkout.
-IsDefault
Set as the default policy. It will affect all policies refering to default values.
-Name
Policy's name. Must be unique. Cannot be null or white spaces only.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Notes
For more information, type "Get-Help New-DSPamCheckoutPolicy -detailed". For technical information, type "Get-Help New-DSPamCheckoutPolicy -full".
Last updated
Was this helpful?