Hi,
I am new to WMI.
I have installed WMI for python and pywin32 extensions to be able to use
win32 apis from my python scripts. While I can get all the info from other
clasees like Win32_Battery, Win32_Processor I am having tough time with
Win32_Tpm class.
I want to use Win32_Tpm module in pyth
internet which implement the same using VB or C#. What I
essentially need is the python version of this link which shows how to
access Win32_Tpm info using .Net.
http://blogs.msdn.com/b/securitytools/archive/2009/07/29/wmi-programming-using-c-net.aspx
Br
Prashant Padaganur
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
5%29.aspx
>
>the Win32_Tpm class is in its own namespace. So try this:
>
>
>import wmi
>
>c = wmi.WMI(namespace="root/cimv2/security/microsofttpm")
>for whatever in c.Win32_Tpm():
> # do whatever
>
>
>
>TJG
Thanks Tim, it worke
I want to write an application that puts the system in to different sleep
states. Like S0,S1...S4.
Before changing from one state to another I want to know the
current/previous sleep state.
For Ex: If the current state is S0 then I want to put it to S1. Or if the
previous state was S3 then I want
On 03/07/2012 12:23, prashant padaganur wrote:
>>* *>>* I want to write an application that puts the system in to
>>different*>>* sleep states. Like S0,S1...S4.*>>* *>>* Before changing from
>>one state to another I want to know the*>>* current/p
>
> Date: Wed, 04 Jul 2012 08:24:22 +0100
> From: Tim Golden
> On 04/07/2012 06:01, prashant padaganur wrote:
> > On 03/07/2012 12:23, prashant padaganur wrote:
> >>>/
> > />>/ I want to write an application that puts the system in to differ
>>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 littl
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:\
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 s
>>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 whatev
10 matches
Mail list logo