Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a connection file for VPN using microsoft CMAK. The VPN connection works but when I try to map drives it maps the drive under the Administrator account on the local machine because the VPN setup EXE needs elevated administrator account to install.

I'm adding this batch file to the CMAK setup under 'Add Custom Action -> Post Connect'.

net use J: \\Server\Share1$ /persistent:no
net use K: \\Server\Share2$ /persistent:no

I've also tried 'Runas' for local %USERNAME% but that required me to enter local passwords and administrator server passwords to map the drives, this will be too much for our users to do and I would like this installation to be as silent as possible.

Thanks in advance for any suggestions.


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.