Configuration driven Active Directory management.
Registers a credential provider used by the ADMF.
Register-AdmfCredentialProvider [-Name] <String> [-PreScript] <ScriptBlock> [[-PostScript] <ScriptBlock>]
[<CommonParameters>]
Registers a credential provider used by the ADMF.
Credential providers are used for translating the credentials to use for all actions performed against active directory. For example, the ADMF could be extended to support a password safe solution: When connecting to a target domain, this provider scriptblock would retrieve the required credentials from a password safe solution.
A credential provider consists of two scriptblocks:
Both scriptblocks receive a single input object, with two properties:
Register-AdmfCredentialProvider -Name AZKeyVault -PreScript $keyVaultScript
Registers the scriptblock defined in $keyVaultScript as “AZKeyVault” provider.
The name of the credential provider. Each name must be unique, registering a provider using an existing name overwrites the previous provider. The provider “default” exists as part of ADMF and will be used if no other is specified. Overriding it allows you to change the default provider intentionally, but may remove your ability to NOT use any credential transformations, so use with care.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The script to execute before performing actions, in order to resolve the correct credentials to use.
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This script is executed after performing all actions. You can use this optional script to perform any cleanup actions if necessary.
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.