New-DSScriptConfiguration

Synopsis

Create a new PSPamPropScriptConfiguration object

Syntax

__AllParameterSets

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

Description

Create a new PSPamPropScriptConfiguration object. This can be used to fill in the values of a Pam script configuration.

Examples

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

Fills in the values of a PAM script configuration, adding a DomainUser account type and a custom (AnyIdentity) provider template.

Parameters

-Name

Name of new script configuration.

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

-Template

Predefined template.

Type: Devolutions.Server.Pam.Dto.PamScriptTemplate
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: true
  ValueFromPipeline: true
  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

Notes

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

Devolutions Forum logo Give us Feedback