[python-win32] Problems retrieving SACL of registry key from remote machine

2009-12-23 Thread Eli Sandler
Hi, I have a problem retrieving SACL of a registry key from a remote machine. It fails with the exception: (14, 'RegGetKeySecurity', 'Not enough storage is available to complete this operation.') Here is the code snippet: logon_type = win32security.LOGON32_LOGON_INTERACTIVE default_provi

[python-win32] classic asp, pywin32, python 3.1

2009-12-23 Thread Sinisa Barisic
Hi to all, Can anyone help with this (classic asp, activex scripting, language="python") 1. manually installation of python 3.1 and pywin32-3.1 = HTTP error 500. activepython usually solve this, but last build from them is without pywin... pyscript.py says "Registered: Python" and thats al

Re: [python-win32] Invalid method parameters with UnjoinDomainOrWorkgroup

2009-12-23 Thread Tim Golden
Tim Golden wrote: Gowtham wrote: I am trying to unjoin a machine from the domain and attempted with the following code import wmi wm = wmi.WMI() wm.Win32_ComputerSystem.UnjoinDomainOrWorkgroup(2, 'ADMINPASSWORD', 'DOMAIN\ADMINUSER') Traceback (most recent call last): File "", line 1, in ?

Re: [python-win32] Invalid method parameters with UnjoinDomainOrWorkgroup

2009-12-23 Thread Tim Golden
Gowtham wrote: I am trying to unjoin a machine from the domain and attempted with the following code import wmi wm = wmi.WMI() wm.Win32_ComputerSystem.UnjoinDomainOrWorkgroup(2, 'ADMINPASSWORD', 'DOMAIN\ADMINUSER') Traceback (most recent call last): File "", line 1, in ? File "C:\Python24\