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
- Windows Time sync type to apply, such as NTP, NT5DS, or NoSync.
- Servers string[]
- NTP servers to configure when the sync type uses manual peers.
- SpecialPollInterval int
- Manual peer poll interval, in seconds.
- RestartService SwitchParameter
- Restarts the Windows Time service after applying the new configuration.
Outputs
System.Boolean