%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
 
Back
Top