API Reference
Command
Set-CxNtp
Sets Windows Time (W32Time) client configuration.
Examples
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
- Target computer(s). Use '.' for local computer or provide DNS names.
- Type string
- Gets or sets the Type parameter.
- Servers string[]
- Gets or sets the Servers parameter.
- SpecialPollInterval int
- Gets or sets the SpecialPollInterval parameter.
- RestartService SwitchParameter
- Gets or sets the RestartService parameter.
Outputs
System.Boolean