Get-DSAccountLifecyclePolicy

Synopsis

Get account lifecycle policies.

Syntax

__AllParameterSets

Get-DSAccountLifecyclePolicy [-Name <string>] [<CommonParameters>]

Description

Get one or multiple account lifecycle policies.

Examples

Example 1

PS C:\> $customPolicy = Get-DSAccountLifecyclePolicy -Name "My Custom Policy"
PS C:\> $policy = New-DSAccountLifecyclePolicyInfo -PolicyID $customPolicy.ID
PS C:\> New-DSPamProvider -Name "MyProvider" -CredentialType DomainUser -DomainName "mydomain.loc" -Username "admin" -Password "P@ssw0rd" -AccountLifecyclePolicy $policy

Create a PAM provider using an existing account lifecycle policy. Source is automatically set to "Custom".

Parameters

-Name

Name of the account lifecycle policy to fetch.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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.

Outputs

Devolutions.RemoteDesktopManager.Business.AccountLifecyclePolicy

Notes

For more information, type "Get-Help Get-DSAccountLifecyclePolicy -detailed". For technical information, type "Get-Help Get-DSAccountLifecyclePolicy -full".

Devolutions Forum logo Share your feedback