37 lines
963 B
YAML
37 lines
963 B
YAML
Name: 'COMP: Timeserver configuration (W32Time)'
|
|
Type: Object
|
|
LinkedOUs:
|
|
- OU=Domain Controllers
|
|
WMIFilters:
|
|
- PDC Emulator
|
|
RegistryEntries:
|
|
- Key: HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
|
|
Type: String
|
|
ValueName:
|
|
- Type
|
|
- NtpServer
|
|
Value:
|
|
- NTP
|
|
- "{{ addsconfig.ntpserver }}"
|
|
- Key: HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config
|
|
Type: DWord
|
|
ValueName: AnnounceFlags
|
|
Value: 0xA
|
|
- Key: HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config
|
|
Type: DWord
|
|
ValueName: MaxPosPhaseCorrection
|
|
Value: 0xFFFFFFFF
|
|
- Key: HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config
|
|
Type: DWord
|
|
ValueName: MaxNegPhaseCorrection
|
|
Value: 0xFFFFFFFF
|
|
- Key: HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
|
|
Type: DWord
|
|
ValueName: Enabled
|
|
Value: 1
|
|
---
|
|
Variables:
|
|
- Name: addsconfig.ntpserver
|
|
Expression: |
|
|
($Parameter['addsconfig.ntpserver'] -split ',' | ForEach-Object {'{0},0x1' -f $_}) -join ' '
|