Re: [python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Radek Holý
2012/6/16 Tim Golden : > On 15/06/2012 22:55, Radek Holý wrote: >> >> 2012/6/15 Roger Upole: >>> >>> Looks like the parameters to SetIntegerElement are reversed: >>> >> objWBM.Methods_('SetIntegerElement').InParameters.Properties_[0].Name >>> >>> 'Integer' >> >> objWBM.Methods_('SetInte

Re: [python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Tim Golden
On 15/06/2012 22:55, Radek Holý wrote: 2012/6/15 Roger Upole: Looks like the parameters to SetIntegerElement are reversed: objWBM.Methods_('SetIntegerElement').InParameters.Properties_[0].Name 'Integer' objWBM.Methods_('SetIntegerElement').InParameters.Properties_[1].Name 'Type' If I switc

Re: [python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Radek Holý
2012/6/15 Roger Upole : > Looks like the parameters to SetIntegerElement are reversed: > objWBM.Methods_('SetIntegerElement').InParameters.Properties_[0].Name > 'Integer' objWBM.Methods_('SetIntegerElement').InParameters.Properties_[1].Name > 'Type' > > If I switch the call to > success,

Re: [python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Tim Golden
On 15/06/2012 21:14, Roger Upole wrote: Looks like the parameters to SetIntegerElement are reversed: objWBM.Methods_('SetIntegerElement').InParameters.Properties_[0].Name 'Integer' objWBM.Methods_('SetIntegerElement').InParameters.Properties_[1].Name 'Type' If I switch the call to success,

Re: [python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Roger Upole
Looks like the parameters to SetIntegerElement are reversed: >>> objWBM.Methods_('SetIntegerElement').InParameters.Properties_[0].Name 'Integer' >>> objWBM.Methods_('SetIntegerElement').InParameters.Properties_[1].Name 'Type' If I switch the call to success, = call(objWBM, "SetIntegerElement", 5,

Re: [python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Radek Holý
2012/6/15 Tim Golden : > On 15/06/2012 08:53, Radek Holý wrote: >> Hello, >> >> I’m trying to edit the BCD (Boot Configuration Data) using WMI in Python: > > Hmmm. I'd love to help you, but I'd need to set up a VM first so I don't > screw up my Boot Configuration along the way! > > I notice one sma

Re: [python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Tim Golden
On 15/06/2012 08:53, Radek Holý wrote: > Hello, > > I’m trying to edit the BCD (Boot Configuration Data) using WMI in Python: Hmmm. I'd love to help you, but I'd need to set up a VM first so I don't screw up my Boot Configuration along the way! I notice one small line in the docs for BcdIntegerE

[python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Radek Holý
Hello, I’m trying to edit the BCD (Boot Configuration Data) using WMI in Python: >>> import sys >>> import win32com.client >>> >>> def call(object, name, *args): ... method = object.Methods_(name) ... params = method.InParameters ... for param, arg in zip(params.Properties_, args): ..