logon script to map drive over pptp ?

S

scott

Hi,

Is it possible to get a login script to map a drive over PPTP so users don't
have to manually MAP ?

For example:

windows 2000
pptp connection
|
|
|
PPTP Host
|
|
|
DC authenticates + hosts logon script in AD.

Domain controller running AD authenticates incoming pptp users. Each users
has a logon script.

Login script runs "net use X: \\server\share"

Thanks for any information.
Scott

logon script to map drive over pptp ?
 
S

scott

found this.

"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."

what else can i use to trigger the script ?

Scott
 
D

Dinesh Agarwal \(MSFT\)

Scott, I assume you are using Windows Ras Client Dialer (created from
network connection folder). This doesn't provide any functionality for
plug-in custom scripts. Although you can use the terminal scripting feature
of Ras for remote logging (more info at:
http://www.microsoft.com/resources/...nt/4/server/proddocs/en-us/network/xns10.mspx)

For using any custom scripting during connection, you can look at the
Connection Manager which provides the functionality of inserting
scripts/executables at different phases of connection (pre-connect,
post-connect, disconnect etc.)
For more info on configuring and using Connection manager:
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/proddocs/standard/sag_CMAKtopnode.asp

Hope it helps,
Thanks,
Dinesh.
 
S

scott

ended up just sending all users a batch file i.e

net use z: \\server\share /user:username

they punch in the pass and it caches the info so its available after pptp
connection.

think this should work.
scott.
 
P

Phillip Windell

Yes, this the the most direct way to do it.

As you've discovered, the "login" with VPN is just like the "login" with an
old dial-up modem connection,...the credentials are only used to create the
connection, they do not log the user into the network.

Now "NT based" machines have an option at the login prompt to login using a
chossen dialup connection,...this can be used to activate the dialup log the
user into the remote network at the same time when they log into their
machines. I do not know if login scripts run in this case, but if there was
a way, this would be it.
 
S

scott

thanks for reply.

I struggled to get any logon scripts to run when using the dialup option. It
was going to be a pain explaining to users to login to the machine with the
user + pass and at the same time login using the connection method. When I
tested it I couldn't get the logon batch file to run anyway.

Just surprised there is not an easier way to manage such an easily applied
function.

The next post suggested RAS scripting. Will have a wee look at that.

Thanks for your time.
Scott
 
S

scott

hi,

thanks for reply.

Yes sorry, i am using RRAS server and MS vpn client via "network
connections" - should have mentioned it.

Will have a look at RRAS scritping.

Cheers
Scott.
 
S

scott

There is no RUN SCRIPT on the SECURITY tab via an MS VPN connection. The
dialup connection to RAS server do have this option however. I cant seem to
specify a logon script for VPN (pptp) connections at all.

Cheers anyway.
Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top