[python-win32] adding servers and workstations
Tim Golden
tim.golden at viacom-outdoor.co.uk
Tue Sep 16 04:34:03 EDT 2003
> -----Original Message-----
> From: antone [mailto:antone.heyward at verizon.net]
> Sent: 16 September 2003 00:58
> To: python32
> Subject: [python-win32] adding servers and workstations
>
>
> Is there native code in python32 i can use to add and remove
> machines to
> and from a domain remotely. I wrote a gui around the netdom.exe that
> comes with the support tools from MS which works fine. But i
> wanted to
> distribute the app within the company without worring about
> legal sh%^.
Googling around suggests that you want the NetJoinDomain API
call which doesn't appear to have been wrapped by any of the
win32 packages. It looks like quite a simple call:
http://msdn.microsoft.com/library/en-us/netmgmt/netmgmt/netjoindomain.asp
so the chances are it can be accessed by ctypes
http://starship.python.net/crew/theller/ctypes/
but I'll have to leave it to someone more capable than I am
with ctypes to confirm.
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-win32
mailing list