in reply to Re: How to log on to windows server?
in thread How to log on to windows server?

Yeah, I was trying to use a module function but I may be stuck with using the command line. I'll need to figure out if it's even possible from a service that runs as a local_system_account. I'll post back my results....

Replies are listed 'Best First'.
Re^3: How to log on to windows server?
by pKai (Priest) on Feb 04, 2006 at 22:23 UTC
    For running under SYSTEM, you need null sessions to attach to network resources. For a nice introdution and discussion of null sessions see this paper, also naming this restriction on page 5.
      ++ for the interesting link!

      Due to the lack of responses on this, I will tackle it using the "net use" method. I was just hoping for something nice like:

      if ( $nt->login($server,$name,$pass) ) { # do things $nt->logout(); } else { report("Failed logging in to $server: " . $nt->errmsg); }