Sign in to follow this  
Followers 0
covaks

authenticate with standalone servers

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

if you weren't such a doorknob...

Hahaha! :)

You wouldn't mind if i started calling people "doorknobs" would you?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0