Test-HcsmConnection

Test-HcsmConnection

Provides error messages that pertain to network connectivity and device state.

语法

Test-HcsmConnection [ <CommonParameters>]

详细说明

The Test-HcsmConnection cmdlet provides error messages that pertain to network connectivity and device state. If a device ceases to work due to issues in registration, service, or network connectivity, run this cmdlet to see specific error messages. The messages can help you or Microsoft Customer Service and Support fix problems.

If you specify the Verbose parameter, the output of the cmdlet contains details of the tests. If you do not specify Verbose, the cmdlet displays error messages only.

参数

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

输出

输出类型是 cmdlet 所发出对象的类型。

  • String

    This cmdlet generates error messages. If you specify Verbose, the output indicates the checks that the cmdlet performs and their results, including error strings and codes describing the errors, if applicable. For example, if the network connection does not work due to incorrect proxy settings, the cmdlet displays information as follows:

       Checking device state: Success
       Device is registered successfully
       Checking connectivity from device to SaaS.. Failure
       The device could not connect using the current web proxy configuration. Please ensure that your web proxy settings are correct and your web proxy servers are online and reachable.

    If you run this cmdlet for a successfully registered device, the result is as follows:

       Checking device state ... Success.
       Device registered successfully
       Checking device authentication. ... Success.
       Checking connectivity from Device to SaaS. ... Success.

    If you do not specify Verbose, the cmdlet displays only errors, if any.

示例

---------- Example 1: Check a device ----------

This command checks whether the device is registered and online. The cmdlet then checks whether the device authenticates to SaaS. The cmdlet then checks whether the device connects to SaaS.

This command specifies the Verbose parameter, so the cmdlet displays all checks that it runs.

PS C:\> Test-HcsmConnection -Verbose

相关主题

Invoke-HcsmServiceDataEncryptionKeyChange