New-DSScriptConfiguration
Synopsis
Opret en ny PSPamPropScriptConfiguration objekt
Syntaks
__AllParameterSets
New-DSScriptConfiguration [-Name] <string> -Template <PamScriptTemplate> [<CommonParameters>]Description
Opret en ny PSPamPropScriptConfiguration objekt. Denne kan være brugt til fill i værdierne af en Pam script konfiguration.
Eksempler
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 -PassThruUdfylder værdierne i en PAM-scriptkonfiguration og tilføjer en kontotype DomainUser og en brugerdefineret skabelon til en PAM-udbyder.
Parametre
-Name
Navn af ny script konfiguration.
-Template
Predefined skabelon.
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
Noter
Yderligere oplysninger får De ved at skrive "Get-Help New-DSScriptConfiguration -detailed". Tekniske oplysninger får De ved at skrive "Get-Help New-DSScriptConfiguration -full".
Sidst opdateret
Var dette nyttigt?