[python-win32] How to disable Windows Firewall using WMI

Amaury Forgeot d'Arc amauryfa at gmail.com
Fri Jul 6 15:30:56 CEST 2012


2012/7/6 prashant padaganur <prashantpadaganur at gmail.com>:
> c = wmi.WMI("WinMgmts:\root\Microsoft\HomeNet")

The \r is a special sequence, interpreted as a "carriage return" character.
You should use a raw string:
r"WinMgmts:\root\Microsoft\HomeNet"

-- 
Amaury Forgeot d'Arc


More information about the python-win32 mailing list