NetGetAnyDCName() - get PDC of a foreign WinNT-domain
usenet at mail-2-me.com
Tue Jan 27 10:44:48 CET 2004
Thanks for your help, but that does not work. I get an error message
which sais it can't reach the domain.
But I'm sure did not make an syntax-error, because if I enter my own
domain it works.
Any other idea?
Tim Golden <tim.golden at viacom-outdoor.co.uk> wrote in message news:<mailman.642.1074780151.12720.python-list at python.org>...
> >I'm trying to get the PDC-Computername of a foreign WinNT-domain, but
> >I only managed to get the PDC of my own domain with this code:
> If you don't specify any params to that call, win32net will assume
> you're looking at your own domain. It can take two params: server & domain.
> If you do this:
> pdc = win32net.NetGetAnyDCName (None, "name_of_other_domain")
> it should work.
> 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:
More information about the Python-list