Re: Twapi get primary domain controller
- From: palmtcl@xxxxxxxxx
- Date: 30 Aug 2006 09:54:04 -0700
Not sure this will be much help but
twapi::get_primary_domain_controller is more or less a direct call into
Win32 NetGetDCName so you can look up MSDN for detailed description and
try doing
twapi::NetGetDCName SYSTEMNAME DOMAINNAME
Pass "" as either parameter to refer to local system or default.
Regarding the eventlog backup, from what I remember the eventlog back
up is done by the SCM itself which runs under the built-in LocalSystem
account and has no network credentials. Even if you invoke the command
as domain admin, the SCM itself in all likelihood does not have access
to the network share and will not be able to write to it. You'll
probably have to write locally and then file copy it to the network
share.
/Ashok
getshorter@xxxxxxxxx wrote:
Hi,
I am testing twapi 0.9 and Tcl/Tk 8.5 on Windows Server 2003. I am
trying to use the get_primary_domain_controller command, it works fine
on the local machine and with the -domain option, but when I try to use
the -system option I keep getting the error "The filename, directory
name, or volume label syntax is incorrect.". Maybe I am using the wrong
syntax ? I tried with:
- ::twapi::get_primary_domain_controller -system machinename
- ::twapi::get_primary_domain_controller -system MACHINENAME
- ::twapi::get_primary_domain_controller -system \\MACHINENAME
- ::twapi::get_primary_domain_controller -system \\\\MACHINENAME.
Abusing of your patience: is there a way of using eventlog_backup with
a remote machine ? In this case the -system option returns an "Access
is denied" error, when trying to save the file on a network share (note
that I am executing wish with domain admin privileges)
I hope that someone can help me.
Thanks in advance,
Frank
.
- Follow-Ups:
- Re: Twapi get primary domain controller
- From: getshorter@xxxxxxxxx
- Re: Twapi get primary domain controller
- References:
- Twapi get primary domain controller
- From: getshorter
- Twapi get primary domain controller
- Prev by Date: Re: A good menu tutorial?
- Next by Date: Re: A good menu tutorial?
- Previous by thread: Twapi get primary domain controller
- Next by thread: Re: Twapi get primary domain controller
- Index(es):
Relevant Pages
|