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

prashant padaganur prashantpadaganur at gmail.com
Fri Jul 6 15:36:36 CEST 2012


On Fri, Jul 6, 2012 at 7:00 PM, Amaury Forgeot d'Arc <amauryfa at gmail.com>wrote:

> 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
>

Thanks. But does not help still. I am getting the same com error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120706/90eb8291/attachment.html>


More information about the python-win32 mailing list