batch script

  • Thread starter Thread starter Miha
  • Start date Start date
M

Miha

Hi

Since we implemented VPN some of our users wants to acces company shared
folder from their home computers.
So I'm wondering if it is possible to use a batch script to map shares from
server to a user who's computer is not part of a local company domain.
I set-up the following script:
net use x: \\server\docs /user:domainname\username
but user always needs to enter password for a 'username'. Is it possible to
include password in script so that users will only need to run batch file
without entering any password and get maped drivers on local computer? Or is
any other way to do this?

Thank you all in advance
Regards
Miha
 
if the VPN client uses cached credentials logon, they may not need the password. If you need to add the password in batch file, add it between shared name and username. use net use /? to get more details.

Don't send e-mail or reply to me except you need consulting services. Posting on MS newsgroup will benefit all readers and you may get more help.

Bob Lin, MS-MVP, MCSE & CNE
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.


Hi

Since we implemented VPN some of our users wants to acces company shared
folder from their home computers.
So I'm wondering if it is possible to use a batch script to map shares from
server to a user who's computer is not part of a local company domain.
I set-up the following script:
net use x: \\server\docs /user:domainname\username
but user always needs to enter password for a 'username'. Is it possible to
include password in script so that users will only need to run batch file
without entering any password and get maped drivers on local computer? Or is
any other way to do this?

Thank you all in advance
Regards
Miha
 
I'm not quite sure if I understand the question completely but let me try
and help out if I can. When you VPN into your network basically the user has
already logged in and has been authenticated. So from the "run line he can
execute a command like net use x: \\servername\sharename\foldername. You can
also create a batch file and copy it the users desktop so when he connects
to the VPN they can execute the batch file and it should map them.
 
From: "Miha" <[email protected]>

|
| Hi
|
| Since we implemented VPN some of our users wants to acces company shared
| folder from their home computers.
| So I'm wondering if it is possible to use a batch script to map shares from
| server to a user who's computer is not part of a local company domain.
| I set-up the following script:
| net use x: \\server\docs /user:domainname\username
| but user always needs to enter password for a 'username'. Is it possible to
| include password in script so that users will only need to run batch file
| without entering any password and get maped drivers on local computer? Or is
| any other way to do this?
|
| Thank you all in advance
| Regards
| Miha
|

You should strongly consider the security ramifications of such a scipt. Anyone who gets
access to the computer could then gain access to the company and possibly compramise the
company's data and security. That's what passwords are for, security. In addition anyone
can read the script and now has both the Username and Password !

What you want to do is NOT a good idea.
 
Thanks. I'll try to do this with net use and password option
Regards
Miha
"Robert L [MS-MVP]" <[email protected]> je napisal v sporocilo ...
if the VPN client uses cached credentials logon, they may not need the password. If you need to add the password in batch file, add it between shared name and username. use net use /? to get more details.

Don't send e-mail or reply to me except you need consulting services. Posting on MS newsgroup will benefit all readers and you may get more help.

Bob Lin, MS-MVP, MCSE & CNE
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.


Hi

Since we implemented VPN some of our users wants to acces company shared
folder from their home computers.
So I'm wondering if it is possible to use a batch script to map shares from
server to a user who's computer is not part of a local company domain.
I set-up the following script:
net use x: \\server\docs /user:domainname\username
but user always needs to enter password for a 'username'. Is it possible to
include password in script so that users will only need to run batch file
without entering any password and get maped drivers on local computer? Or is
any other way to do this?

Thank you all in advance
Regards
Miha
 
Yes, but a VPN users only log's into our corporate network and not into
local domain, so he needs to type his domain username and password to access
resources on domain server. Or am I wrong?
Regards
Miha
 
Yes you're right, but our boss (he always want impossible) wan't to use this
in the most easy way as possible - without typing any additional usernames
and password.
But as you have said, I'm really thinking of just give him a script that
maps net drivers and he'll need to type his username and password manualy
because of the security reasons.
Regards
Miha
 
Back
Top