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
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for