Jump to content

Recommended Posts

Posted

Sorry if this has been asked before, I tried searching, but I'm not even sure what to search for.

I've written a program to perform a few common tasks at work. It reads a list of servernames from a text file, then can go through them and retrieve various information and output to a log file or .csv file. So far it gets Serial numbers, Current time (for after DST patching), Symantec, or McAfee definitions/engine/etc information. So it uses WMI queries, and RegRead.

It works fine for all servers on the same domain, but some servers are standalone or have alternate login information. I've made a tab with a listview where the user can enter in specific username/password information for each server. Now how do I authenticate to the server?

In Autoit, is there a commandline equivalent of: net use \\servername "password" /user:username ?

I don't want to use shellexecute to net use authenticate everytime. Is there another way?

Posted

Well covaks, if you weren't such a doorknob, you might have noticed DriveMapAdd in the help can be used for that purpose... *sigh*... Some people.. .sheesh..

(ps. sorry)

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...