Test-HcsNtp

Test-HcsNtp

Attempts to synchronize the time to the NTP server.

Syntax

Parameter Set: Default
Test-HcsNtp [-NtpServer <String> ] [ <CommonParameters>]

Detailed Description

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

Parameters

-NtpServer<String>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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