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

Get-DSScriptTemplate

Übersicht

Eine PAM-Skriptkonfigurationsvorlage abrufen

Syntax

__AllParameterSets

Get-DSScriptTemplate [-ID] <guid> [<CommonParameters>]

Beschreibung

PAM-Skriptkonfigurationsvorlage abrufen.

Beispiele

PS C:\> $summary = Get-DSScriptTemplateSummary -Name "My template";
    $id = $summary.Id;
    $script = Get-DSScriptTemplate $id | New-DSScriptConfiguration "NewConfig";
    $script.Properties[0].Value = "https://myurl.com";
    $script.Properties[1].Value = "password123";
    $script.AddAccountType('DomainUser');
    $script.ExecutionProperties[0].Mappings[0].TargetResource = "Account";
    $script.ExecutionProperties[0].Mappings[0].Value = "ResolvedVaultName";
    $provider = Get-DSPamProviderTemplate 'MyPamProviderTemplate';
    $script.AddAccountType('Custom', $provider);
    $script.ExecutionProperties[1].Mappings[0].Value = "Label";
    Set-DSScriptConfiguration -ScriptConfiguration $script -PassThru

Füllt die Werte einer PAM-Skriptkonfiguration aus und fügt einen Kontotyp DomainUser sowie eine benutzerdefinierte PAM-Anbietervorlage hinzu.

Parameter

-ID

Filtert die Vorlagen nach ihrer ID.

CommonParameters

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction und -WarningVariable. Weitere Informationen finden Sie unter about_CommonParameters.

Hinweise

Weitere Informationen erhalten Sie mit "Get-Help Get-DSScriptTemplate -detailed". Technische Informationen erhalten Sie mit "Get-Help Get-DSScriptTemplate -full".

Zuletzt aktualisiert

War das hilfreich?