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

New-DSScriptConfiguration

Übersicht

Ein neues PSPamPropScriptConfiguration-Objekt erstellen

Syntax

__AllParameterSets

New-DSScriptConfiguration [-Name] <string> -Template <PamScriptTemplate> [<CommonParameters>]

Beschreibung

Erstellt ein neues PSPamPropScriptConfiguration-Objekt. Dieses kann verwendet werden, um die Werte einer PAM-Skriptkonfiguration auszufüllen.

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

-Name

Name der neuen Skriptkonfiguration.

-Template

Vordefinierte Vorlage.

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.

Ausgaben

Hinweise

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

Zuletzt aktualisiert

War das hilfreich?