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