prashant padaganur wrote:
>
> Thanks Tim. But when the system is in S0 state I want to read that
> information from the system.
You want to read WHAT information from the system? Look, here is a
complete Python program that accurately tells you the current power state:
print "The system is
On 06/07/2012 14:36, prashant padaganur wrote:
> Thanks. But does not help still. I am getting the same com error.
import wmi
c = wmi.WMI(namespace="root/Microsoft/HomeNet")
for whatever in c.HNet_ConnectionProperties():
print whatever
I'm not in a position to try it, but I don't imagi
On Fri, Jul 6, 2012 at 7:00 PM, Amaury Forgeot d'Arc wrote:
> 2012/7/6 prashant padaganur :
> > 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"
>
> -
2012/7/6 prashant padaganur :
> 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
___
pyt
Hi,
I am trying to disable the Windows Firewall using WMI. Below is the code.
When I am running the VBscript I am not getting any errors. But my python
script is coming out with some COM errors. (pasted below)
Am I doing something wrong? Here is the code.
import wmi,os
c = wmi.WMI("WinMgmts:\
>>prashant padaganur wrote:
>>**>>* Tim this might be something similar, but what I am looking for is*>>*
>>sleep state. I want the exact api which exposes/returns the*>>*
>>SYSTEM_POWER_STATE enum either thru win32ap or wmi.*
>It's a little difficult to figure out what you want. When the syste