Skip to main content

Set-AdcDomainCredential

SYNOPSIS​

Stores credentials stored for accessing the targeted domain.

SYNTAX​

__AllParameterSets​

Set-AdcDomainCredential [-Domain] <string> [-Credential] <pscredential> [<CommonParameters>]

DESCRIPTION​

Stores credentials stored for accessing the targeted domain. This is NOT used by the main commands, but internally for retrieving data regarding foreign principals in one-way trusts. Generally, these credentials should never have more than reading access to the target domain.

EXAMPLES​

EXAMPLE 1​

Set-AdcDomainCredential -Domain contoso.com -Credential $cred

Stores the credentials for accessing contoso.com.

PARAMETERS​

-Credential​

The credentials to store.

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

-Domain​

The domain to store credentials for. Does NOT accept wildcards.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
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.