Hi,
I'm trying to use python and the fantastic WMI module to manage Hyper-V virtual
machine resources and am having problems trying to modify properties of an
instance to pass back via WMI.
The following code in powershell is what I need to emulate in python:
$vmms = gwmi -namespace root\virtu
> [... snip horrendous Powershell stuff ...]
>
> I never can understand why people like Powershell syntax so much
Indeed, it is syntactically horrendous. I wrote that after I hit problem in
Python to test the concept, honest...
> I'm not going to be much help here, I'm afraid: I don't have acce
Tim Golden wrote:
> Thanks for posting. Nothing's jumping out at me I'm afraid.
I've had another chance to look at this today and have found a workaround using
win32com.client but still cannot figure why it exempts when using the WMI
module.
Using WMI module
HD =
c.Msvm_ResourceAllocationSett
Hi,
The code works fine for me.
I'm equally using python 2.7.2, pywin32 216 and WMI 1.4.9 (have also tested
against 1.4.6).
Does c.Msvm_VirtualSystemManagementService()[0] actually return anything?
Matt
-Original Message-
From: python-win32-bounces+saunders.m3=we-learn@python.org
35
To: python-win32@python.org
Subject: Re: [python-win32] Calling GetText_(1)
On Fri, Aug 5, 2011 at 4:16 AM, M Saunders TAS wrote:
> Does c.Msvm_VirtualSystemManagementService()[0] actually return anything?
Yes. This returns a wmi_object:
<_wmi_object:
\\serve
>On 08/08/2011 17:09, Mitch Oliver wrote:
>>> Try:
>>>
>>> %TEMP%\gen_py\<2.x>\...
>>
>> That seemed to contain some dummies, but I was able to locate files
>> that had content in site-packages\win32com\gen_py. After deleting the
>> contents of this directory and regenerating only WMI Scripting an
>From
>http://msdn.microsoft.com/en-us/library/windows/desktop/aa394378%28v=vs.85%29.aspx
Win32_Product only lists software installed by Windows Installer (applications
installed via msi or msp packages)
Parsing the registry key
"HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" should