Spring til indhold
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-DSPasswordPolicy

Synopsis

Hent adgangskode politikker.

Syntaks

__AllParameterSets

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

Description

Hent en eller flere adgangskode politikker. Uden specifying et navn, alle politikker bliver returneret.

Eksempler

Eksempel 1

PS C:\> $template = Get-DSPasswordPolicy -Name "Strong password"
PS C:\> $script = Get-DSScriptConfigurationSummary -Name "My password propagation script"
PS C:\> $policy = New-DSAccountLifecyclePolicyInfo -Source Custom -PolicyType Custom
PS C:\> $gateway = Get-DSGateway -Name 'MyGateway'
PS C:\> $policy.Policy.PasswordTemplate.Mode = 'Custom'
PS C:\> $policy.Policy.PasswordTemplate.TemplateID = $template.ID
PS C:\> $policy.Policy.CheckInAction.Mode = 'Custom'
PS C:\> $policy.Policy.CheckInAction.Actions = @('ResetPassword')
PS C:\> $policy.Policy.PasswordReset.ScheduleMode = 'Custom'
PS C:\> $policy.Policy.PasswordReset.ScheduleFrequency = 30
PS C:\> $policy.Policy.PasswordReset.ScheduleFrequencyUnit = 'Day'
PS C:\> $policy.Policy.PasswordReset.ScheduleAtDateTime = Get-Date -Hour 14 -Minute 0 -Second 0
PS C:\> $policy.Policy.Propagation.Mode = 'Custom'
PS C:\> $policy.Policy.Propagation.ScriptConfigurationIds = @($script.ID)
PS C:\> New-DSPamProvider -Name "MyProvider" -CredentialType DomainUser -DomainName "mydomain.loc" -Username "admin" -Password "P@ssw0rd" -AccountLifecyclePolicy $policy -Gateway $gateway

Opret en PAM udbyder med en brugerdefineret konto lifecycle politik og initialize flere egenskaber til brugerdefineret værdier. Note: 'ResetPassword' i CheckInAction.Actions corresponds til 'Adgangskode rotation' indstilling i UI.

Parametre

-Name

Navn af adgangskoden politik at hente.

CommonParameters

Denne cmdlet understøtter de almindelige parametre: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction og -WarningVariable. Yderligere oplysninger finder De i about_CommonParameters.

Output

Devolutions.RemoteDesktopManager.Business.PasswordConfiguration

Noter

Yderligere oplysninger får De ved at skrive "Get-Help Get-DSPasswordPolicy -detailed". Tekniske oplysninger får De ved at skrive "Get-Help Get-DSPasswordPolicy -full".

Sidst opdateret

Var dette nyttigt?