Share via


Test-HcsNtp

Test-HcsNtp

Attempts to synchronize the time to the NTP server.

Syntax

Test-HcsNtp [ <CommonParameters>]

Detaillierte Beschreibung

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

Parameter

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

Example 1: Test NTP configuration

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

PS C:\> Test-HcsNtp

Verwandte Themen

Get-HcsNtpClientServerAddress

Set-HcsNtpClientServerAddress