Last active
January 12, 2023 19:02
-
-
Save jwmoss/ab591b45c4faffb7ab5b3523e0f7c9b7 to your computer and use it in GitHub Desktop.
citrix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Keys = Get-ChildItem -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class" -Recurse -ErrorAction SilentlyContinue | Where-Object {$_.GetValueNames() -contains 'UpperFilters'} | |
$Keys += Get-ChildItem -Path "HKLM:\SYSTEM\ControlSet001\Control\Class" -Recurse -ErrorAction SilentlyContinue |Where-Object {$_.GetValueNames() -contains 'UpperFilters'} | |
$Keys += Get-ChildItem -Path "HKLM:\SYSTEM\ControlSet002\Control\Class" -Recurse -ErrorAction SilentlyContinue | Where-Object {$_.GetValueNames() -contains 'UpperFilters'} | |
$xenfilt_keys = $Keys | Get-ItemProperty | Where-Object{$_.UpperFilters -like "XENFILT"} | |
$xenfilt_keys | ForEach-Object {Remove-ItemProperty -path $_.PSPath -Name "UpperFilters"} | |
reg add HKLM\SYSTEM\CurrentControlSet\Control\ /v ServicesPipeTimeout /t REG_DWORD /d 300000 /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\xenbus /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\xenbus /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\xenbus /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\xenfilt /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\xenfilt /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\xenfilt /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\xeniface /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\xeniface /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\xeniface /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\xenlite /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\xenlite /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\xenlite /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\xennet /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\xennet /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\xennet /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\XenPVInstall /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\XenPVInstall /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\XenPVInstall /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\XenSvc /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\XenSvc /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\XenSvc /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\xenvbd /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\xenvbd /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\xenvbd /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\xenvif /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\xenvif /f | |
reg delete HKLM\SYSTEM\ControlSet002\services\xenvif /f | |
cd C:\Windows\System32\Drivers | |
Del xen.sys | |
Del xenbus.sys | |
Del xencrsh.sys | |
Del xenfilt.sys | |
Del xeniface.sys | |
Del xennet.sys | |
Del xenvbd.sys | |
Del xenvif.sys | |
Remove-Item -Path 'C:\Program Files\Citrix\*' -Recurse -Force -Confirm:$false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment