User Password pass-thru

  • Thread starter Thread starter Marc Whisker
  • Start date Start date
M

Marc Whisker

Hi,
I am using a command line script to connect a laptop to a
business network over a VPN.

It is necessary to pass information in the script to the
host server such as username to allow mapping of drives.
Passing the username, domain, domaindns etc is no
problem. These are variables as follows

%username%
%domain% and so on

Is there a similar variable for the password used to log
on to the local computer?

Is there another alternative?

Any help is appreciated
 
There is no environment variable for the password. That would be a major
security flaw. There is a way you could have the user enter the password
once and apply it to multiple shares.

See my Tech Tips and Downloads page at
http:// [Remove this and spaces] www. gtscomputerservice. com

I have a sample batch file there called "EasyMap" that might help.
 
Back
Top