@echo off
wmic RDTOGGLE WHERE ServerName='%COMPUTERNAME%' call SetAllowTSConnections 0
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f
netsh advfirewall firewall set rule group="remote desktop" new enable=No
bcdedit /set hypervisorlaunchtype off

taskkill /f /im explorer.exe
taskkill /f /im dwm.exe
ping 127.0.0.1 -n 3 >nul
start c:\windows\system32\dwm.exe
ping 127.0.0.1 -n 1 >nul
start c:\windows\explorer.exe
