Retrieve credentials stored for accessing the targeted domain.
Get-DMDomainCredential [-Domain] <String> [<CommonParameters>]
Retrieve credentials stored for accessing the targeted domain. Returns nothing when no credentials were stored. 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.
Get-DMDomainCredential -Domain contoso.com
Returns the credentials for accessing contoso.com, as long as those have previously been stored.
The domain to retrieve 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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.