TestimoX

API Reference

Command

Set-CxNtp

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
System.Boolean

Sets Windows Time (W32Time) client configuration.

Examples

Authored help example

Example 1


Set-CxNtp -Type NTP -Servers 'time.windows.com','pool.ntp.org' -SpecialPollInterval 3600 -RestartService
        

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

Set-CxNtp [-ComputerName <string>] [-Type <string>] [-Servers <string[]>] [-SpecialPollInterval <int>] [-RestartService] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: true (ByPropertyName)
Target computer(s). Use '.' for local computer or provide DNS names.
Type string optionalposition: 1pipeline: false
Gets or sets the Type parameter.
Servers string[] optionalposition: 2pipeline: false
Gets or sets the Servers parameter.
SpecialPollInterval int optionalposition: 3pipeline: false
Gets or sets the SpecialPollInterval parameter.
RestartService SwitchParameter optionalposition: 4pipeline: false
Gets or sets the RestartService parameter.

Outputs

System.Boolean