Re: Twapi get primary domain controller



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

.



Relevant Pages

  • Re: Replication as a Performance Enhancer?
    ... And, if there is a need to have them work with multiple reocrds, but that's ... Or, alternativesly, can put each subform on its own tab in a tabbed ... leading me to believe the network has a lot to do with it. ... was bring in the MDW file to his local machine, ...
    (comp.databases.ms-access)
  • Re: ASP.Net Connection To MYSQL
    ... databases are local to this machine, if not connected to the network, ... extremely fast so it is possible that your problem lies elsewhere. ... I am developing on a local machine. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IDE changes setting on its own
    ... This may be an artifact of something happening on your local machine or network, rather than a "bug" in VS. ... > "Start page" to "Empty environment". ... > get a bug fix? ...
    (microsoft.public.vsnet.ide)
  • Re: Blocking internet access on XP Pro machines w/ZenWorks
    ... You could make the hard drive read only but using NTFS security permissions ... on each local machine. ... I think that the Novell client logon is tied to the local user account (not ... network via ZenWorks. ...
    (microsoft.public.windowsxp.network_web)
  • Re: C# Ftp client
    ... I was running it from the network ... share, and as soon as I ran it on local machine, it started working. ... > use some low level functions. ... >> Request for the permission of type System.Net.SocketPermission, System, ...
    (microsoft.public.dotnet.languages.csharp)