Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
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 stackoverflow.com 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
1  
Use te RUNAS tool to run CCMSetup.exe as administrator. –  Jay Sep 9 '12 at 12:31

Your Answer

 
discard

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