Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Username with Net Use in Win 98

600 views
Skip to first unread message

free-k

unread,
Jun 28, 2004, 10:01:30 AM6/28/04
to
Hi All!!

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

Pegasus (MVP)

unread,
Jun 28, 2004, 10:28:39 AM6/28/04
to

"free-k" <dera...@treasury.fs.gov.za> wrote in message
news:7626e1b5.04062...@posting.google.com...

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.


free-k

unread,
Jun 29, 2004, 2:00:46 AM6/29/04
to
"Pegasus \(MVP\)" <I....@fly.com> wrote in message news:<cbp9uo$2d5r$1...@arachne.labyrinth.net.au>...

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.

Todd Vargo

unread,
Jun 29, 2004, 8:28:15 PM6/29/04
to

"free-k" <dera...@treasury.fs.gov.za> wrote in message
news:7626e1b5.04062...@posting.google.com...
<snip>

> 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)


0 new messages