Azure AD Connect:ADConnectivityTools PowerShell 参考Azure AD Connect: ADConnectivityTools PowerShell Reference

以下文档提供了 Azure AD Connect 随附的 ADConnectivityTools.psm1 PowerShell 模块的参考信息。The following documentation provides reference information for the ADConnectivityTools.psm1 PowerShell Module that is included with Azure AD Connect.

Confirm-DnsConnectivityConfirm-DnsConnectivity

摘要SYNOPSIS

检测本地 DNS 问题。Detects local Dns issues.

语法SYNTAX

Confirm-DnsConnectivity [-Forest] <String> [-DCs] <Array> [-ReturnResultAsPSObject] [<CommonParameters>]

说明DESCRIPTION

运行本地 DNS 连接测试。Runs local Dns connectivity tests. 若要配置 Active Directory 连接器,用户必须能够对他们尝试连接的林进行名称解析,同时,必须能够在与此林关联的域控制器中进行名称解析。In order to configure the Active Directory connector, user must have both name resolutionthe for the forest they is attempting to connect to as well as in the domain controllers associated to this forest.

示例EXAMPLES

示例 1EXAMPLE 1

Confirm-DnsConnectivity -Forest "TEST.CONTOSO.COM" -DCs "MYDC1.CONTOSO.COM","MYDC2.CONTOSO.COM"

示例 2EXAMPLE 2

Confirm-DnsConnectivity -Forest "TEST.CONTOSO.COM"

参数PARAMETERS

-Forest-Forest

指定要测试的林的名称。Specifies the name of the forest to test against.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DCs-DCs

指定要测试的 DC(域控制器)。Specify DCs to test against.

Type: Array
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ReturnResultAsPSObject-ReturnResultAsPSObject

以 PSObject 的形式返回此诊断的结果。Returns the result of this diagnosis in the form of a PSObject. 使用此工具进行手动交互期间不需要指定。Not necessary during manual interaction with this tool.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Confirm-ForestExistsConfirm-ForestExists

摘要SYNOPSIS

确定指定的林是否存在。Determines if a specified forest exists.

语法SYNTAX

Confirm-ForestExists [-Forest] <String> [<CommonParameters>]

说明DESCRIPTION

在 DNS 服务器中查询与林关联的 IP 地址。Queries a DNS server for the IP addresses associated with a forest.

示例EXAMPLES

示例 1EXAMPLE 1

Confirm-TargetsAreReachable -Forest "TEST.CONTOSO.COM"

参数PARAMETERS

-Forest-Forest

指定要测试的林的名称。Specifies the name of the forest to test against.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Confirm-FunctionalLevelConfirm-FunctionalLevel

摘要SYNOPSIS

验证 AD 林功能级别。Verifies AD forest functional level.

语法SYNTAX

SamAccountSamAccount

Confirm-FunctionalLevel -Forest <String> [-RunWithCurrentlyLoggedInUserCredentials] [<CommonParameters>]

ForestFQDNForestFQDN

Confirm-FunctionalLevel -ForestFQDN <Forest> [-RunWithCurrentlyLoggedInUserCredentials] [<CommonParameters>]

说明DESCRIPTION

验证 AD 林功能级别是等于还是超过给定的 MinAdForestVersion (WindowsServer2003)。Verifies that the AD forest functional level is equal or more than a given MinAdForestVersion (WindowsServer2003). 可以请求帐户(域\用户名)和密码。Account (Domain\Username) and Password may be requested.

示例EXAMPLES

示例 1EXAMPLE 1

Confirm-FunctionalLevel -Forest "test.contoso.com"

示例 2EXAMPLE 2

Confirm-FunctionalLevel -Forest "test.contoso.com" -RunWithCurrentlyLoggedInUserCredentials -Verbose

示例 3EXAMPLE 3

Confirm-FunctionalLevel -ForestFQDN $ForestFQDN -RunWithCurrentlyLoggedInUserCredentials -Verbose

参数PARAMETERS

-Forest-Forest

目标林。Target forest. 默认值是当前登录用户的林。Default value is the Forest of the currently logged in user.

Type: String
Parameter Sets: SamAccount
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForestFQDN-ForestFQDN

目标 ForestFQDN 对象。Target ForestFQDN Object.

Type: Forest
Parameter Sets: ForestFQDN
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunWithCurrentlyLoggedInUserCredentials-RunWithCurrentlyLoggedInUserCredentials

该函数将使用当前已登录计算机的用户的凭据,而不是从用户请求自定义凭据。The function will use the credentials of the user that is currently logged in the computer, rather than requesting custom credentials from the user.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Confirm-NetworkConnectivityConfirm-NetworkConnectivity

摘要SYNOPSIS

检测本地网络连接问题。Detects local network connectivity issues.

语法SYNTAX

Confirm-NetworkConnectivity [-DCs] <Array> [-SkipDnsPort] [-ReturnResultAsPSObject] [<CommonParameters>]

说明DESCRIPTION

运行本地网络连接测试。Runs local network connectivity tests.

对于本地网络测试,AAD Connect 必须能够与端口 53 (DNS)、88 (Kerberos) 和 389 (LDAP) 上的命名域控制器通信。大多数组织在其 DC 上运行 DNS,这正是目前集成了此测试的原因。For the local networking tests, AAD Connect must be able to communicate with the named domain controllers on ports 53 (DNS), 88 (Kerberos) and 389 (LDAP) Most organizations run DNS on their DCs, which is why this test is currently integrated. 如果指定了另一台 DNS 服务器,则应跳过端口 53。Port 53 should be skipped if another DNS server has been specified.

示例EXAMPLES

示例 1EXAMPLE 1

Confirm-NetworkConnectivity -SkipDnsPort -DCs "MYDC1.CONTOSO.COM","MYDC2.CONTOSO.COM"

示例 2EXAMPLE 2

Confirm-NetworkConnectivity -DCs "MYDC1.CONTOSO.COM","MYDC2.CONTOSO.COM" -Verbose

参数PARAMETERS

-DCs-DCs

指定要测试的 DC(域控制器)。Specify DCs to test against.

Type: Array
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SkipDnsPort-SkipDnsPort

如果用户未使用 AD 站点/登录 DC 提供的 DNS 服务,则他们可能需要跳过端口 53 的检查。If the user is not using DNS services provided by the AD Site / Logon DC, then they may want to skip checking port 53. 用户还必须能够解析 _ldap._tcp.<forestfqdn>,才能让 Active Directory 连接器配置成功。The user must still be able to resolve _.ldap._tcp.<forestfqdn> in order for the Active Directory Connector configuration to succeed.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ReturnResultAsPSObject-ReturnResultAsPSObject

以 PSObject 的形式返回此诊断的结果。Returns the result of this diagnosis in the form of a PSObject. 使用此工具进行手动交互期间不需要指定。Not necessary during manual interaction with this tool.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Confirm-TargetsAreReachableConfirm-TargetsAreReachable

摘要SYNOPSIS

确定是否可访问指定的林及其关联的域控制器。Determines if a specified forest and its associated Domain Controllers are reachable.

语法SYNTAX

Confirm-TargetsAreReachable [-Forest] <String> [-DCs] <Array> [<CommonParameters>]

说明DESCRIPTION

运行“ping”测试(某台计算机是否可以通过网络和/或 Internet 访问目标计算机)Runs "ping" tests (whether a computer can reach a destination computer through the network and/or the internet)

示例EXAMPLES

示例 1EXAMPLE 1

Confirm-TargetsAreReachable -Forest "TEST.CONTOSO.COM" -DCs "MYDC1.CONTOSO.COM","MYDC2.CONTOSO.COM"

示例 2EXAMPLE 2

Confirm-TargetsAreReachable -Forest "TEST.CONTOSO.COM"

参数PARAMETERS

-Forest-Forest

指定要测试的林的名称。Specifies the name of the forest to test against.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DCs-DCs

指定要测试的 DC(域控制器)。Specify DCs to test against.

Type: Array
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Confirm-ValidDomainsConfirm-ValidDomains

摘要SYNOPSIS

验证是否可访问所获取的林 FQDN 中的域Validate that the domains in the obtained Forest FQDN are reachable

语法SYNTAX

SamAccountSamAccount

Confirm-ValidDomains [-Forest <String>] [-RunWithCurrentlyLoggedInUserCredentials] [<CommonParameters>]

ForestFQDNForestFQDN

Confirm-ValidDomains -ForestFQDN <Forest> [-RunWithCurrentlyLoggedInUserCredentials] [<CommonParameters>]

说明DESCRIPTION

通过尝试检索 DomainGuid 和 DomainDN,验证是否可访问所获取的林 FQDN 中的所有域。Validate that all of the domains in the obtained Forest FQDN are reachable by attempting to retrieve DomainGuid and DomainDN. 可以请求帐户(域\用户名)和密码。Account (Domain\Username) and Password may be requested.

示例EXAMPLES

示例 1EXAMPLE 1

Confirm-ValidDomains -Forest "test.contoso.com" -Verbose

示例 2EXAMPLE 2

Confirm-ValidDomains -Forest "test.contoso.com" -RunWithCurrentlyLoggedInUserCredentials -Verbose

示例 3EXAMPLE 3

Confirm-ValidDomains -ForestFQDN $ForestFQDN -RunWithCurrentlyLoggedInUserCredentials -Verbose

参数PARAMETERS

-Forest-Forest

目标林。Target forest.

Type: String
Parameter Sets: SamAccount
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForestFQDN-ForestFQDN

目标 ForestFQDN 对象。Target ForestFQDN Object.

Type: Forest
Parameter Sets: ForestFQDN
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunWithCurrentlyLoggedInUserCredentials-RunWithCurrentlyLoggedInUserCredentials

该函数将使用当前已登录计算机的用户的凭据,而不是从用户请求自定义凭据。The function will use the credentials of the user that is currently logged in the computer, rather than requesting custom credentials from the user.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Confirm-ValidEnterpriseAdminCredentialsConfirm-ValidEnterpriseAdminCredentials

摘要SYNOPSIS

验证用户是否有企业管理员凭据。Verifies if a user has Enterprise Admin credentials.

语法SYNTAX

Confirm-ValidEnterpriseAdminCredentials [-RunWithCurrentlyLoggedInUserCredentials] [<CommonParameters>]

说明DESCRIPTION

通过搜索验证提供的用户是否有企业管理员凭据。Searches if provided user has Enterprise Admin credentials. 可以请求帐户(域\用户名)和密码。Account (Domain\Username) and Password may be requested.

示例EXAMPLES

示例 1EXAMPLE 1

Confirm-ValidEnterpriseAdminCredentials -DomainName test.contoso.com -Verbose

示例 2EXAMPLE 2

Confirm-ValidEnterpriseAdminCredentials -RunWithCurrentlyLoggedInUserCredentials -Verbose

参数PARAMETERS

-RunWithCurrentlyLoggedInUserCredentials-RunWithCurrentlyLoggedInUserCredentials

该函数将使用当前已登录计算机的用户的凭据,而不是从用户请求自定义凭据。The function will use the credentials of the user that is currently logged in the computer, rather than requesting custom credentials from the user.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Get-DomainFQDNDataGet-DomainFQDNData

摘要SYNOPSIS

从帐户和密码组合中检索 DomainFQDN。Retrieves a DomainFQDN out of an account and password combination.

语法SYNTAX

Get-DomainFQDNData [[-DomainFQDNDataType] <String>] [-RunWithCurrentlyLoggedInUserCredentials]
 [-ReturnExceptionOnError] [<CommonParameters>]

说明DESCRIPTION

尝试从提供的凭据中获取 domainFQDN 对象。Attempts to obtain a domainFQDN object out of provided credentials. 如果 domainFQDN 有效,则会根据用户的选择返回 DomainFQDNName 或 RootDomainName。If the domainFQDN is valid, a DomainFQDNName or RootDomainName will be returned, depending on the user's choice. 可以请求帐户(域\用户名)和密码。Account (Domain\Username) and Password may be requested.

示例EXAMPLES

示例 1EXAMPLE 1

Get-DomainFQDNData -DomainFQDNDataType DomainFQDNName -Verbose

示例 2EXAMPLE 2

Get-DomainFQDNData -DomainFQDNDataType RootDomainName -RunWithCurrentlyLoggedInUserCredentials

参数PARAMETERS

-DomainFQDNDataType-DomainFQDNDataType

要检索的所需数据类型。Desired kind of data that will be retrieved. 目前限制为“DomainFQDNName”或“RootDomainName”。Currently limited to "DomainFQDNName" or "RootDomainName".

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunWithCurrentlyLoggedInUserCredentials-RunWithCurrentlyLoggedInUserCredentials

该函数将使用当前已登录计算机的用户的凭据,而不是从用户请求自定义凭据。The function will use the credentials of the user that is currently logged in the computer, rather than requesting custom credentials from the user.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ReturnExceptionOnError-ReturnExceptionOnError

Start-NetworkConnectivityDiagnosisTools 函数使用的辅助参数Auxiliary parameter used by Start-NetworkConnectivityDiagnosisTools function

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Get-ForestFQDNGet-ForestFQDN

摘要SYNOPSIS

从帐户和密码组合中检索 ForestFQDN。Retrieves a ForestFQDN out of an account and password combination.

语法SYNTAX

Get-ForestFQDN [-Forest] <String> [-RunWithCurrentlyLoggedInUserCredentials] [<CommonParameters>]

说明DESCRIPTION

尝试从提供的凭据中获取 ForestFQDN。Attempts to obtain a ForestFQDN out of the provided credentials. 可以请求帐户(域\用户名)和密码。Account (Domain\Username) and Password may be requested.

示例EXAMPLES

示例 1EXAMPLE 1

Get-ForestFQDN -Forest CONTOSO.MICROSOFT.COM -Verbose

示例 2EXAMPLE 2

Get-ForestFQDN -Forest CONTOSO.MICROSOFT.COM -RunWithCurrentlyLoggedInUserCredentials -Verbose

参数PARAMETERS

-Forest-Forest

目标林。默认值是当前登录用户的域。Target forest.Default value is the Domain of the currently logged in user.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunWithCurrentlyLoggedInUserCredentials-RunWithCurrentlyLoggedInUserCredentials

该函数将使用当前已登录计算机的用户的凭据,而不是从用户请求自定义凭据。The function will use the credentials of the user that is currently logged in the computer, rather than requesting custom credentials from the user.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Start-ConnectivityValidationStart-ConnectivityValidation

摘要SYNOPSIS

主函数。Main function.

语法SYNTAX

Start-ConnectivityValidation [-Forest] <String> [-AutoCreateConnectorAccount] <Boolean> [[-UserName] <String>]
 [<CommonParameters>]

说明DESCRIPTION

运行用于验证 AD 凭据是否有效的所有可用机制。Runs all the available mechanisms that verify AD credentials are valid.

示例EXAMPLES

示例 1EXAMPLE 1

Start-ConnectivityValidation -Forest "test.contoso.com" -AutoCreateConnectorAccount $True -Verbose

参数PARAMETERS

-Forest-Forest

目标林。Target forest.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AutoCreateConnectorAccount-AutoCreateConnectorAccount

对于自定义安装:如果用户在 AADConnect 向导的“AD 林帐户”窗口中选择了“创建新的 AD 帐户”,则该标志的值为 $True。For Custom-installations: Flag that is $True if the user chose "Create new AD account" on the AD Forest Account window of AADConnect's wizard. 如果用户选择了“使用现有 AD 帐户”,则值为 $False。$False if the user chose "Use existing AD account". 对于快速安装:对于快速安装,此变量的值必须为 $True。For Express-installations: The value of this variable must be $True for Express-installations.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-UserName-UserName

请求用户的凭据时在“用户名”字段中预填充的参数。Parameter that pre-populates the Username field when user's credentials are requested.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Start-NetworkConnectivityDiagnosisToolsStart-NetworkConnectivityDiagnosisTools

摘要SYNOPSIS

用于网络连接测试的主函数。Main function for network connectivity tests.

语法SYNTAX

Start-NetworkConnectivityDiagnosisTools [[-Forest] <String>] [-Credentials] <PSCredential>
 [[-LogFileLocation] <String>] [[-DCs] <Array>] [-DisplayInformativeMessage] [-ReturnResultAsPSObject]
 [-ValidCredentials] [<CommonParameters>]

说明DESCRIPTION

运行本地网络连接测试。Runs local network connectivity tests.

示例EXAMPLES

示例 1EXAMPLE 1

Start-NetworkConnectivityDiagnosisTools -Forest "TEST.CONTOSO.COM"

示例 2EXAMPLE 2

Start-NetworkConnectivityDiagnosisTools -Forest "TEST.CONTOSO.COM" -DCs "DC1.TEST.CONTOSO.COM", "DC2.TEST.CONTOSO.COM"

参数PARAMETERS

-Forest-Forest

指定要测试的林名称。Specifies forest name to test against.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Credentials-Credentials

运行测试的用户的用户名和密码。The user name and password of the user that is running the test. 该用户的权限级别必须与运行 Azure AD Connect 向导所需的权限级别相同。It requires the same level of permissions that is required to run the Azure AD Connect Wizard.

Type: PSCredential
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LogFileLocation-LogFileLocation

指定包含此函数的输出的日志文件的位置。Specifies a the location of a log file that will contain the output of this function.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DCs-DCs

指定要测试的 DC(域控制器)。Specify DCs to test against.

Type: Array
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DisplayInformativeMessage-DisplayInformativeMessage

一个标志,用于显示有关此函数的用途的消息。Flag that allows displaying a message about the purpose of this function.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ReturnResultAsPSObject-ReturnResultAsPSObject

以 PSObject 的形式返回此诊断的结果。Returns the result of this diagnosis in the form of a PSObject. 使用此工具进行手动交互期间不需要指定。Not necessary to specify during manual interaction with this tool.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ValidCredentials-ValidCredentials

指示用户键入的凭据是否有效。Indicates if the credentials the user typed are valid. 使用此工具进行手动交互期间不需要指定。Not necessary to specify during manual interaction with this tool.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersCommonParameters

此 cmdlet 支持以下常见参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutVariable、-OutBuffer、-PipelineVariable、-Verbose、-WarningAction 和 -WarningVariable。This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216) 。For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).