Editar

Get-HcsNtpClientServerAddress

Gets URLs of the NTP servers for this device.

Syntax

Get-HcsNtpClientServerAddress []

Description

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

Examples

Example 1: Get NTP server addresses

PS C:\> Get-HcsNtpClientServerAddress
Primary                                                     Secondary
-------                                                     ---------
time.contoso.com                                            {secondary.contoso.com}

This command gets addresses of NTP client servers.

Outputs

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