I have a script that users use to copy files from a terminal server to
their local machines. It makes use of the net use command. In W2K and
WXP this script works fine.
In Windows 98 however I cannot get it to map to the share on the
server using a specific Username and password.
Is it possible to use the net use command in Windows 98 and tell it
which username and password to use?
Thank you for any assistance,
Dan
Under Win98 you must log on under the appropriate
user name.
While you can put an override into your WinXP script,
your method could present a serious security risk,
since you're embedding the password into your script.
Thanks for your follow-up info. The script that I use for the XP and
W2K machines does not actually use an embedded username and
password!!!!!!! That would be a major security risk as you said and
anybody that thinks that should be put up against a wall and shot!!!!
It takes user-input from the user with regards to the username and
password! stores that as a variable and passes it into the net use
command to map a drive to the users home folder using the supplied
credentials.
That does not mean you are safe. Unless you actually preview the code before
each and every use (not likely), some batch/cmd savvy users could modify the
code to store the variables in a file before it even executes the NET
command.
--
Todd Vargo (remove hyphen to reply by email)