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 "<stdin>", line 1, in ?
File "C:\Python24\Lib\site-packages\wmi.py", line 396, in __call__
handle_com_error (error_info)
File "C:\Python24\Lib\site-packages\wmi.py", line 189, in handle_com_error
raise x_wmi, "\n".join (exception_string)
wmi.x_wmi: -0x7ffdfff7 - Exception occurred.
Error in: SWbemObjectEx
-0x7ffbefd1 - Invalid method Parameter(s)
I dont understand why its calling these Invalid method parameters. All that
it wants is an (Int, Str, Str) when using thru Python otherwise it is (Str,
Str, int) as described here.
http://msdn.microsoft.com/en-us/library/aa393942(VS.85).aspx
Any pointer?
Thanks,
Gowtham N
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32