%USERNAME% and VPN problem

  • Thread starter Thread starter Sebastian
  • Start date Start date
S

Sebastian

Hi,

I have a vpn connection (W2K/IAS/firewall) set up and try to run a script
that would map the user's home drive.
For this I need the %USERNAME% variable but when it runs it takes the local
username instead of the vpn
username. How can I correct this?
 
Hi sebastian,
You haven't specified whether you are using the connection manager or the connectoid created from Network connection folder for connecting. If you are using Connection manager, then you will have to give %USERNAME% as argument(command line argument) for your script in your custom action (where you are running the above script). You can fetch this variable inside your program.

In order to do this, you can edit the .cms file for your profile and edit the line corresponding to your custom action as specified below:

[Pre-Tunnel Actions]

0=test02\custom.exe %USERNAME%

Regards,
Rama Krishna Prasad
 

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

Back
Top