PPTP logon yet batch file to map does not execute ?

  • Thread starter Thread starter scott
  • Start date Start date
S

scott

Hi,

I cant get a batch file to work when a windows 2000 pro clinet uses PPTP to
connect to an windows 2000 domain running AD and the user name utilised
contains a logon script.

Batch file reads "net use # \\server\share"
Also tried "net use # \\server\share /user:domain/user

Mapped drive never appears but can map using NET USE once connected.

Is a batch file over PPTP supposed to work ?

Thanks
Scott.
 
Making a VPN connection is not a logon operation. It will not trigger a
logon script. You will need to use something else to trigger off the script.
Or you could try using the "logon using a dialup connection" option.
 
To get a logon script to work, you must use the option of "Log on using a dial-up connection" at the control alt delete logon
prompt. This will allow you to authenticate against your DC and process logon scripts. If you are simply trying to double click on
a batch file once the VPN is established, this should work no matter how you've logged on. The syntax you mentioned was "net
use # \\server\share". This is incorrect. It should be "net use * \\server\share". Not sure if this was just a typo in your message.

You might try "net use * \\ip\share" where "ip" is the IP address of the server you need to access.

Thank you,
Mike Johnston
Microsoft Network Support
--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the
terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from
which they originated.
 
Back
Top