[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): ...

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

[python-win32] Installing pywin32 for Python 2.7 AMD64

2012-06-15 Thread Ferdinand Sousa
Hi List, First off, it's good to be back after 3 years!! I was dusting off some old scripts I had written using pywin32. (Python 2.5 era I think). It uses the win32con and win32api modules. Now I'm trying to use the same scripts with Python 2.7 AMD64 version. I downloaded

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,

[python-win32] win32com.adsi limits number of members returned

2012-06-15 Thread Matt LaPlante
Using the following code... import win32com.adsi DNC=win32com.adsi.ADsGetObject('LDAP://rootDSE').Get('DefaultNamingContext') path = 'LDAP://cn=BIG_GROUP,ou=Groups,'+DNC groupobj = win32com.adsi.ADsGetObject(path) users = groupobj.member print len(users) The output is always a maximum 1500, even

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

2012-06-15 Thread Radek Holý
2012/6/15 Roger Upole rup...@hotmail.com: 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

Re: [python-win32] win32com.adsi limits number of members returned

2012-06-15 Thread Tim Golden
On 15/06/2012 22:43, Matt LaPlante wrote: Using the following code... import win32com.adsi DNC=win32com.adsi.ADsGetObject('LDAP://rootDSE').Get('DefaultNamingContext') path = 'LDAP://cn=BIG_GROUP,ou=Groups,'+DNC groupobj = win32com.adsi.ADsGetObject(path) users = groupobj.member print

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 Upolerup...@hotmail.com: Looks like the parameters to SetIntegerElement are reversed: objWBM.Methods_('SetIntegerElement').InParameters.Properties_[0].Name 'Integer' objWBM.Methods_('SetIntegerElement').InParameters.Properties_[1].Name