Skip to contentSkip to conversation

KVM test: setuprss.bat: add yet another way of disabling the firewall

PATCH New Michael Goldish 1 participant 1 message Jul 12, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: setuprss.bat: add yet another way of disabling the firewall

Disable the firewall service on Windows 2000, XP, 2003 ('SharedAccess') and Windows Vista, 2008, 7 ('MpsSvc'). This is useful because even when the firewall is disabled, it may block connections for a few seconds on startup. Disabling the firewall service solves the problem.

---
 client/tests/kvm/deps/setuprss.bat |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
client/tests/kvm/deps/setuprss.bat +4 -0
index 97298cd..42b1709 100644
@@ -6,6 +6,10 @@ net user Administrator /active:yes
 net user Administrator 1q2w3eP
 netsh firewall set opmode disable
 netsh advfirewall set allprofiles state off
+net stop SharedAccess
+sc config SharedAccess start= disabled
+net stop MpsSvc
+sc config MpsSvc start= disabled
 powercfg /G OFF /OPTION RESUMEPASSWORD
 
 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "Remote Shell Server" /d "C:\rss.exe" /t REG_SZ /f
Signature · 1 line
1.5.4.1