< Back

Find-DomainController

Fri Jan 10, 2020 6:53 pm

NAME Find-DomainController



SYNOPSIS

Gets the specified Active Directory domain





SYNTAX

Find-DomainController [-DomainName] <String> [[-SiteName] <String>] [[-Credential] <PSCredential>]

[-WaitForValidCredentials] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-DomainName <String>

Specifies the fully qualified domain name to wait for..



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SiteName <String>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

Specifies the credentials that are used when accessing the domain,

or uses the current user if not specified.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WaitForValidCredentials [<SwitchParameter>]

Specifies if authentication exceptions should be ignored.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.DirectoryServices.ActiveDirectory.DomainController





NOTES





This function is designed so that it can run on any computer without

having the ActiveDirectory module installed.





RELATED LINKS