diff --git a/Precision Time Protocol/Windows Configuration Helpers/PTPClientConfig.txt b/Precision Time Protocol/Windows Configuration Helpers/PTPClientConfig.ps1 similarity index 67% rename from Precision Time Protocol/Windows Configuration Helpers/PTPClientConfig.txt rename to Precision Time Protocol/Windows Configuration Helpers/PTPClientConfig.ps1 index 9c5fb37..2f7ad3e 100644 --- a/Precision Time Protocol/Windows Configuration Helpers/PTPClientConfig.txt +++ b/Precision Time Protocol/Windows Configuration Helpers/PTPClientConfig.ps1 @@ -1,12 +1,15 @@ -REM Modify the following entry "10.10.10.10 10.10.10.11" as a space-separated list of your PTP grandmasters +# Modify the following entry "10.10.10.10 10.10.10.11" as a space-separated list of your PTP grandmasters reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_SZ /v PtpMasters /d "10.10.10.10 10.10.10.11" /f reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_DWORD /v Enabled /d 1 /f reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_DWORD /v InputProvider /d 1 /f -reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_SZ /v DllName /d "c:\windows\system32\ptpprov.dll" /f +reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_SZ /v DllName /d "C:\windows\system32\ptpprov.dll" /f reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_DWORD /v DelayPollInterval /d 0x3e80 /f reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_DWORD /v AnnounceInterval /d 0x0fa0 /f +reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_DWORD /v EnableMulticastRx /d 0 /f +reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\PtpClient /t REG_DWORD /v UseE2ECorrection /d 1 /f -REM Disable other input providers + +# Disable other input providers reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient /t REG_DWORD /v Enabled /d 0 /f reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider /t REG_DWORD /v Enabled /d 0 /f diff --git a/Precision Time Protocol/Windows Configuration Helpers/PTPDemoMaster.ps1 b/Precision Time Protocol/Windows Configuration Helpers/PTPDemoMaster.ps1 new file mode 100644 index 0000000..3409a04 --- /dev/null +++ b/Precision Time Protocol/Windows Configuration Helpers/PTPDemoMaster.ps1 @@ -0,0 +1,7 @@ +."./W32Startup.ps1" + +."./PTPClientConfig.ps1" + +."./PTPFirewall.ps1" + +."./W32Restart.ps1" diff --git a/Precision Time Protocol/Windows Configuration Helpers/PTPFirewall.ps1 b/Precision Time Protocol/Windows Configuration Helpers/PTPFirewall.ps1 new file mode 100644 index 0000000..20d9aca --- /dev/null +++ b/Precision Time Protocol/Windows Configuration Helpers/PTPFirewall.ps1 @@ -0,0 +1,4 @@ +New-NetFirewallRule -DisplayName 'PTP-Event-In' -Name 'PTP-Event-In’ -LocalPort 319 -Direction Inbound -Action Allow -Protocol UDP +New-NetFirewallRule -DisplayName 'PTP-General-In’ -Name 'PTP-General-In’ -LocalPort 320 -Direction Inbound -Action Allow -Protocol UDP +New-NetFirewallRule -DisplayName 'PTP-Event-Out’ -Name 'PTP-Event-Out’ -LocalPort 319 -Direction Outbound -Action Allow -Protocol UDP +New-NetFirewallRule -DisplayName 'PTP-General-Out’ -Name 'PTP-General-Out' -LocalPort 320 -Direction Outbound -Action Allow -Protocol UDP diff --git a/Precision Time Protocol/Windows Configuration Helpers/PTPFirewall.txt b/Precision Time Protocol/Windows Configuration Helpers/PTPFirewall.txt deleted file mode 100644 index bd4c7e6..0000000 --- a/Precision Time Protocol/Windows Configuration Helpers/PTPFirewall.txt +++ /dev/null @@ -1,2 +0,0 @@ -New-NetFirewallRule -DisplayName 'PTP-319' -Name 'PTP-319' -LocalPort 319 -Direction Inbound -Action Allow -Protocol UDP -New-NetFirewallRule -DisplayName 'PTP-320' -Name 'PTP-320' -LocalPort 320 -Direction Inbound -Action Allow -Protocol UDP diff --git a/Precision Time Protocol/Windows Configuration Helpers/W32Restart.ps1 b/Precision Time Protocol/Windows Configuration Helpers/W32Restart.ps1 new file mode 100644 index 0000000..c3332ce --- /dev/null +++ b/Precision Time Protocol/Windows Configuration Helpers/W32Restart.ps1 @@ -0,0 +1 @@ +Stop-Service W32Time ; Start-Service W32Time diff --git a/Precision Time Protocol/Windows Configuration Helpers/W32Startup.ps1 b/Precision Time Protocol/Windows Configuration Helpers/W32Startup.ps1 new file mode 100644 index 0000000..157ea19 --- /dev/null +++ b/Precision Time Protocol/Windows Configuration Helpers/W32Startup.ps1 @@ -0,0 +1 @@ +Set-Service -Name W32Time -StartupType Automatic diff --git a/Precision Time Protocol/docs/Validation Guide - Precision Time Protocol.docx b/Precision Time Protocol/docs/Validation Guide - Precision Time Protocol.docx index e2d9dc6..c753fa3 100644 Binary files a/Precision Time Protocol/docs/Validation Guide - Precision Time Protocol.docx and b/Precision Time Protocol/docs/Validation Guide - Precision Time Protocol.docx differ diff --git a/README.md b/README.md index 2ccde06..19da86a 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,7 @@ Alternatively you can copy the SoftwareTimeStamping Folder into C:\Program Files #### Test -Please try out our validation guide! -https://github.com/Microsoft/W32Time/blob/master/Timestamping/docs/Validation%20Guide%20-%20RS5%20-%20Software%20Timestamping.docx +Please try out our [validation guide](https://github.com/microsoft/W32Time/blob/master/Timestamping/docs/Validation%20Guide%20-%20Software%20Timestamping.docx)! ## Precision Time Protocol diff --git a/Validation Guide - Precision Time Protocol.docx b/Validation Guide - Precision Time Protocol.docx new file mode 100644 index 0000000..02bc9ae Binary files /dev/null and b/Validation Guide - Precision Time Protocol.docx differ diff --git a/Validation Guide - RS5 - High Accuracy Time.docx b/Validation Guide - RS5 - High Accuracy Time.docx new file mode 100644 index 0000000..11aeae0 Binary files /dev/null and b/Validation Guide - RS5 - High Accuracy Time.docx differ diff --git a/Validation Guide - Software Timestamping.docx b/Validation Guide - Software Timestamping.docx new file mode 100644 index 0000000..f629d6b Binary files /dev/null and b/Validation Guide - Software Timestamping.docx differ