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