SHARE
TWEET

Remove Citrix Xen Devices

chmger Dec 24th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2.  
  3. echo Load SYSTEM key on D:.
  4. reg load HKLM\V2V D:\Windows\System32\config\SYSTEM
  5.  
  6. echo Delete XEN registry keys and values.
  7. reg delete "HKLM\V2V\ControlSet001\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0003" /f
  8. reg delete "HKLM\V2V\ControlSet001\Control\Class\{4d36e97b-e325-11ce-bfc1-08002be10318}\0001" /f
  9. reg delete "HKLM\V2V\ControlSet001\Control\Class\{4d36e97d-e325-11ce-bfc1-08002be10318}\0024" /f
  10. reg delete "HKLM\V2V\ControlSet001\Control\Class\{4d36e97d-e325-11ce-bfc1-08002be10318}\0025" /f
  11. reg delete "HKLM\V2V\ControlSet001\Control\Class\{4d36e97d-e325-11ce-bfc1-08002be10318}\0026" /f
  12. reg delete "HKLM\V2V\ControlSet001\Control\Class\{4d36e97d-e325-11ce-bfc1-08002be10318}\0027" /f
  13. reg delete "HKLM\V2V\ControlSet001\Control\DeviceClasses\{01a35fbe-1bc0-4d73-aea1-b8589d4c2818}\##?#XENVIF#VEN_XSC000&DEV_NET&REV_0800000D#0#{01a35fbe-1bc0-4d73-aea1-b8589d4c2818}" /f
  14. reg delete "HKLM\V2V\ControlSet001\Control\DeviceClasses\{53f56307-b6bf-11d0-94f2-00a0c91efb8b}\##?#SCSI#Disk&Ven_XENSRC&Prod_PVDISK#000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}" /f
  15. reg delete "HKLM\V2V\ControlSet001\Control\DeviceClasses\{2accfe60-c130-11d2-b082-00a0c91efb8b}\##?#XENBUS#VEN_XSC000&DEV_VBD&REV_0800000D#_#{2accfe60-c130-11d2-b082-00a0c91efb8b}" /f
  16. reg delete "HKLM\V2V\ControlSet001\Control\DeviceClasses\{7fccc86c-228a-40ad-8a58-f590af7bfdce}\##?#SCSI#Disk&Ven_XENSRC&Prod_PVDISK#000000#{7fccc86c-228a-40ad-8a58-f590af7bfdce}" /f
  17. reg delete "HKLM\V2V\ControlSet001\Control\DeviceClasses\{ad498944-762f-11d0-8dcb-00c04fc3358c}\##?#XENVIF#VEN_XSC000&DEV_NET&REV_0800000D#0#{ad498944-762f-11d0-8dcb-00c04fc3358c}" /f
  18. reg delete "HKLM\V2V\ControlSet001\Control\DeviceClasses\{b2cfb085-aa5e-47e1-8bf7-9793f3154565}\##?#XENBUS#VEN_XSC000&DEV_IFACE&REV_0800000D#_#{b2cfb085-aa5e-47e1-8bf7-9793f3154565}" /f
  19. reg delete "HKLM\V2V\ControlSet001\Control\DeviceClasses\{cac88484-7515-4c03-82e6-71a87abac361}\##?#XENVIF#VEN_XSC000&DEV_NET&REV_0800000D#0#{cac88484-7515-4c03-82e6-71a87abac361}" /f
  20. reg delete "HKLM\V2V\ControlSet001\Control\DeviceClasses\{dbe4373d-3c81-40cb-ace4-e0e5d05f0c9f}\##?#XENBUS#VEN_XSC000&DEV_VBD&REV_0800000D#_#{dbe4373d-3c81-40cb-ace4-e0e5d05f0c9f}" /f
  21. reg delete "HKLM\V2V\ControlSet001\Control\DeviceContainers\{2a481789-e0e9-11e8-a2b1-806e6f6e6963}" /f
  22. reg delete "HKLM\V2V\ControlSet001\Control\DeviceContainers\{2d486f8e-b21b-552b-a874-4b1f5e263b8f}" /f
  23. reg delete "HKLM\V2V\ControlSet001\Control\DeviceContainers\{67a50523-e0d9-11e8-a2b0-7e4b43332d96}" /f
  24. reg delete "HKLM\V2V\ControlSet001\Control\DeviceContainers\{67a50524-e0d9-11e8-a2b0-7e4b43332d96}" /f
  25. reg delete "HKLM\V2V\ControlSet001\Control\DeviceContainers\{67a50525-e0d9-11e8-a2b0-7e4b43332d96}" /f
  26. reg delete "HKLM\V2V\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{FFF727A6-6071-480F-B296-E2EE5DC8EAF7}" /f
  27. reg delete "HKLM\V2V\ControlSet001\Control\NetworkSetup2\Interfaces\{FFF727A6-6071-480F-B296-E2EE5DC8EAF7}" /f
  28. reg delete "HKLM\V2V\ControlSet001\Enum\PCI\VEN_5853&DEV_0002&SUBSYS_00025853&REV_02" /f
  29. reg delete "HKLM\V2V\ControlSet001\Enum\PCI\VEN_5853&DEV_C000&SUBSYS_C0005853&REV_01" /f
  30. reg delete "HKLM\V2V\ControlSet001\Enum\SCSI\Disk&Ven_XENSRC&Prod_PVDISK" /f
  31. reg delete HKLM\V2V\ControlSet001\Enum\XENBUS /f
  32. reg delete HKLM\V2V\ControlSet001\Enum\XENVIF /f
  33. reg delete "HKLM\V2V\ControlSet001\Services\EventLog\Citrix Xen Guest Agent" /f
  34. reg delete HKLM\V2V\ControlSet001\Services\EventLog\System\xenagent /f
  35. reg delete HKLM\V2V\ControlSet001\Services\EventLog\System\xenbus_monitor /f
  36. reg delete HKLM\V2V\ControlSet001\Services\EventLog\System\xennet /f
  37. reg delete HKLM\V2V\ControlSet001\Services\InstallAgent /f
  38. reg delete HKLM\V2V\ControlSet001\Services\XEN /f
  39. reg delete HKLM\V2V\ControlSet001\Services\xenbus /f
  40. reg delete HKLM\V2V\ControlSet001\Services\xendisk /f
  41. reg delete HKLM\V2V\ControlSet001\Services\xenfilt /f
  42. reg delete HKLM\V2V\ControlSet001\Services\xeniface /f
  43. reg delete HKLM\V2V\ControlSet001\Services\xennet /f
  44. reg delete HKLM\V2V\ControlSet001\Services\xenvbd /f
  45. reg delete HKLM\V2V\ControlSet001\Services\xenvif /f
  46. reg delete HKLM\V2V\ControlSet001\Services\xenagent /f
  47. reg delete HKLM\V2V\ControlSet001\Services\xenbus_monitor /f
  48. reg delete HKLM\V2V\ControlSet001\Services\XenSvc /f
  49. reg delete HKLM\V2V\DriverDatabase\DeviceIds\XENBUS /f
  50. reg delete HKLM\V2V\DriverDatabase\DriverInfFiles\oem3.inf /f
  51. reg delete HKLM\V2V\DriverDatabase\DriverInfFiles\oem4.inf /f
  52. reg delete HKLM\V2V\DriverDatabase\DriverInfFiles\oem5.inf /f
  53. reg delete HKLM\V2V\DriverDatabase\DriverInfFiles\oem6.inf /f
  54. reg delete HKLM\V2V\DriverDatabase\DriverInfFiles\oem7.inf /f
  55. reg delete HKLM\V2V\DriverDatabase\DriverInfFiles\oem8.inf /f
  56. reg delete HKLM\V2V\DriverDatabase\DriverPackages\xenbus.inf_amd64_36eaca0e95703a9b /f
  57. reg delete HKLM\V2V\DriverDatabase\DriverPackages\xeniface.inf_amd64_4822e76eb0a046c3 /f
  58. reg delete HKLM\V2V\DriverDatabase\DriverPackages\xeniface.inf_amd64_f2412718b1d4ff73 /f
  59. reg delete HKLM\V2V\DriverDatabase\DriverPackages\xenvbd.inf_amd64_0f478fd3ed430098 /f
  60. reg delete HKLM\V2V\DriverDatabase\DriverPackages\xenvbd.inf_amd64_e2da2a7e57ccd4f7 /f
  61. reg delete HKLM\V2V\DriverDatabase\DriverPackages\xenvif.inf_amd64_6e7dcb4fb69d0aee /f
  62.  
  63. echo Remove registry value.
  64. reg delete "HKLM\V2V\ControlSet001\Control\Class\{4d36e96a-e325-11ce-bfc1-08002be10318}" /v UpperFilters /f
  65. reg delete "HKLM\V2V\ControlSet001\Control\Class\{4d36e97d-e325-11ce-bfc1-08002be10318}" /v UpperFilters /f
  66. reg delete "HKLM\V2V\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\Descriptions" /v "XenServer PV Network Device #0" /f
  67.  
  68. echo Unload registry tree.
  69. reg unload HKLM\V2V
  70.  
  71. echo Remove system and driver files.
  72. del /q D:\Windows\System32\xen*
  73. del /q D:\Windows\System32\drivers\xen*
  74.  
  75. echo Completed.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top