Fix Journal wrapper DNS NTFRS errors

I created the following script to fix the following errors that occur often enough. I have tested this on Microsoft Windows 2003 Server and Enterprise Server(s) with SP1, SP2, and no service pack with success.
Fix_Journal_Wrapper_DNS_NTFRS.au3

; Event ID: 13568
; The File Replication Service has detected that the replica set "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)" is in JRNL_WRAP_ERROR.

; An include for _RunDos
#include
#NoTrayIcon

; Enable Journal Wrap
; Write a single REG_DWORD value

RegWrite ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters", "Enable Journal Wrap Automatic Restore", "REG_DWORD", "00000001")

; Stop and restart the Netlogon service
$rc = _RunDos("net stop netlogon")
$rc = _RunDos("net start netlogon")

; Disable Journal Wrap (Default)
; Write a single REG_DWORD value
RegWrite ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters", "Enable Journal Wrap Automatic Restore", "REG_DWORD", "00000000")

; Stop and restart the File Replication service
; Event IDs 13509 and 13508
$rc = _RunDos("net stop ntfrs")
$rc = _RunDos("net start ntfrs")

; Stop and restart the DNS service
; Event IDs 4004 under DNS Server in Event Viewer
$rc = _RunDos("net stop dns")
$rc = _RunDos("net start dns")