Super User is a question and answer site for computer enthusiasts and power users. 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
if exist C:\Windows\System32\CCM\CcmExec.exe (
    net use /del Z:
) else (
    net use z: \\c-svsccm01\SMS_CMB\Client 
    start /d "Z:\" CCMSetup.exe

This is a .bat file I created to run a .exe file in the mapped location "Z:\". It runs perfectly in the administrator account but not in the user account (which doesn't have admin rights to install an .exe file).

In the user account, the mapping can be created and deleted but running the CCMSetup.exe doesn't work.

How can I run this CCMSetup.exe with admin rights in the user account?

share|improve this question

migrated from Oct 7 '12 at 20:27

This question came from our site for professional and enthusiast programmers.

Does the user have full permissions to the folder? – Arran Sep 6 '12 at 10:42
Use te RUNAS tool to run CCMSetup.exe as administrator. – Jay Sep 9 '12 at 12:31

You must log in to answer this question.