I would like to create a script to attach to a network share, that will key
in my username and password for me.

My current script is actually a batch file:

NET USE Y: \\192.168.0.4\APPS /PERSISTENT:NO

I am then prompted for a user name and password, which I enter manually. Any
way to put that into the batch file, or even perform the same function with
a VB script. I'm somewhat new to scripting, so any help is greatly
appreciated.

Thanks in advance.

Andrew

Re: script question by Robert

Robert
Tue Mar 02 15:49:29 CST 2004

you would have them your password assessible in an unencrypted form. That
is very, very dangerous.

--
Robert Cohen
A legend in his own mind
--

"Andrew Bryce, Sr." <abryce4@comcast.net> wrote in message
news:e#HmO$JAEHA.1956@TK2MSFTNGP10.phx.gbl...
> I would like to create a script to attach to a network share, that will
key
> in my username and password for me.
>
> My current script is actually a batch file:
>
> NET USE Y: \\192.168.0.4\APPS /PERSISTENT:NO
>
> I am then prompted for a user name and password, which I enter manually.
Any
> way to put that into the batch file, or even perform the same function
with
> a VB script. I'm somewhat new to scripting, so any help is greatly
> appreciated.
>
> Thanks in advance.
>
> Andrew
>
>



Re: script question by Andrew

Andrew
Tue Mar 02 16:16:55 CST 2004

This is only for when I attach my work laptop to my home network. This is
not going to be in a business environment.

Andrew
"Robert Cohen" <dont@want.spam.com> wrote in message
news:%23YaHMCKAEHA.2660@TK2MSFTNGP10.phx.gbl...
> you would have them your password assessible in an unencrypted form. That
> is very, very dangerous.
>
> --
> Robert Cohen
> A legend in his own mind
> --
>
> "Andrew Bryce, Sr." <abryce4@comcast.net> wrote in message
> news:e#HmO$JAEHA.1956@TK2MSFTNGP10.phx.gbl...
> > I would like to create a script to attach to a network share, that will
> key
> > in my username and password for me.
> >
> > My current script is actually a batch file:
> >
> > NET USE Y: \\192.168.0.4\APPS /PERSISTENT:NO
> >
> > I am then prompted for a user name and password, which I enter manually.
> Any
> > way to put that into the batch file, or even perform the same function
> with
> > a VB script. I'm somewhat new to scripting, so any help is greatly
> > appreciated.
> >
> > Thanks in advance.
> >
> > Andrew
> >
> >
>
>



Re: script question by Torgeir

Torgeir
Tue Mar 02 18:34:12 CST 2004


Multipost; response in microsoft.public.windows.server.scripting


Multiposting vs Crossposting
http://www.blakjak.demon.co.uk/mul_crss.htm


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx