Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

S

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.