Get-HcsNtpClientServerAddress

Get-HcsNtpClientServerAddress

Gets URLs of the NTP servers for this device.

Syntax

Get-HcsNtpClientServerAddress [ <CommonParameters>]

Detailed Description

The Get-HcsNtpClientServerAddress cmdlet gets the URLs of the Network Time Protocol (NTP) servers for this device.

Parameters

<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.

  • Microsoft.HCS.Management.Powershell.Cmdlets.NtpInfo

    This cmdlet returns an NtpInfo object that has the following properties:

    -- Primary NTP Address. This is a single string.
    -- Secondary NTP Addresses. This is an array of strings.

    The NtpInfo object has the following properties:

    -- String Primary
    -- String[] Secondary

Examples

Example 1: Get NTP server addresses

This command gets addresses of NTP client servers.

PS C:\> Get-HcsNtpClientServerAddress

Set-HcsNtpClientServerAddress