TestimoX

API Reference

Command

Get-CxNtp

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.Time.NtpConfigInfo

Returns the Windows Time service and NTP client configuration for a computer.

Examples

Authored help example

Example 1: Shows the local machine time synchronization configuration.

PS>


Get-CxNtp | Format-List *
        

Example 2: Checks a domain controller to confirm it is pointing at the expected upstream peers.

PS>


Get-CxNtp -ComputerName DC01
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-CxNtp [-ComputerName <string>] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: true (ByValue, ByPropertyName)
Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.

Outputs

ComputerX.Time.NtpConfigInfo