Share via


Test-HcsNtp

Test-HcsNtp

Attempts to synchronize the time to the NTP server.

語法

Test-HcsNtp [ <CommonParameters>]

詳細描述

The Test-HcsNtp cmdlet attempts to synchronize the time to the Network Time Protocol (NTP) server for the device, and reports the results.

參數

<CommonParameters>

此 Cmdlet 支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 與 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

輸入

輸入類型是您可以使用管線處理方式傳遞給 Cmdlet 的物件類型。

輸出

輸出類型是 Cmdlet 所發出的物件類型。

範例

Example 1: Test NTP configuration

This command tests whether the NTP configuration for the device is valid.

PS C:\> Test-HcsNtp

相關主題

Get-HcsNtpClientServerAddress

Set-HcsNtpClientServerAddress