anchor.diff:  reg export "HKLM\SYSTEM\CurrentControlSet\Services\netbt" "%bugpath%\registry\netbt.reg" /y > NUL 2>&1
   reg export "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation" "%bugpath%\registry\lanmanworkstation.reg" /y > NUL 2>&1
   reg export "HKLM\SYSTEM\CurrentControlSet\Enum" "%bugpath%\registry\enum.reg" /y > NUL 2>&1
  +reg export "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" "%bugpath%\registry\wupolicy.reg" /y > NUL 2>&1
  +reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" "%bugpath%\registry\userexplorerpolicy.reg" /y > NUL 2>&1
  +reg export "HKLM\SYSTEM\Internet Communication Management\Internet Communication" "%bugpath%\registry\internetcom.reg" /y > NUL 2>&1
  +reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate" "%bugpath%\registry\userwupolicy.reg" /y > NUL 2>&1
  +REM See https://technet.microsoft.com/en-us/library/dd939844 for details
  +reg export "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate" "%bugpath%\registry\wu.reg" /y > NUL 2>&1
   
   REM Check for 64 Bit Keys
   reg query HKLM\Software\Wow6432node\Citrix > NUL 2>&1
  
positive.code: msinfo32 /nfo msinfo.nfo
  echo Generating MSInfo file as text file - script friendly version of data
  msinfo32 /report msinfo.txt
  echo Copying logfiles to bugtool...
  mkdir programfiles64
  mkdir programfiles
  mkdir programdata
  xcopy /Y /C /S c:\programdata\citrix\* programdata  > NUL 2>&1
  xcopy /Y /C /S "c:\programdata\Citrix Systems, Inc" programdata > NUL 2>&1
  copy "c:\Program Files (x86)\Citrix\XenTools\*.txt" programfiles64  > NUL 2>&1
  copy "c:\Program Files (x86)\Citrix\XenTools\*.log" programfiles64  > NUL 2>&1
  copy "C:\Program Files (x86)\Citrix\XenTools\Installer\*.config" programfiles64  > NUL 2>&1
  
negative.code: copy "C:\Program Files\Citrix\XenTools\Installer\*.install*" programfiles  > NUL 2>&1
  echo Capturing pnputil -e output...
  pnputil.exe -e > pnputil-e.out
  if NOT %ERRORLEVEL%==0 echo "pnputil failed" >> xtbugtool.log
  echo Capturing state of WMI repository (will fail if not ran as administrator)...
  C:\Windows\System32\wbem\winmgmt /verifyrepository > wmistate.out
  if NOT %ERRORLEVEL%==0 echo "wmi failed" >> xtbugtool.log
  echo Exporting System event log...
  wevtutil epl System system.evtx
  if NOT %ERRORLEVEL%==0 echo "system log failed" >> xtbugtool.log
  echo Exporting Application event log...
  wevtutil epl Application application.evtx
  if NOT %ERRORLEVEL%==0 echo "application log failed" >> xtbugtool.log
  cd ..
  echo Finalizing process and creating ZIP file...
  exit /b
  