Configuration driven Active Directory management.
Stores credentials stored for accessing the targeted domain.
Set-DMDomainCredential [-Domain] <String> [-Credential] <PSCredential> [<CommonParameters>]
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.
Set-DMDomainCredential -Domain contoso.com -Credential $cred
Stores the credentials for accessing contoso.com.
The domain to store credentials for. Does NOT accept wildcards.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The credentials to store.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
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.