Login .bat script in Windows XP user to run with admin rights

0

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?

Kryan

Posted 2012-09-06T10:41:10.037

Reputation:

Does the user have full permissions to the folder? – Arran – 2012-09-06T10:42:37.393

1Use te RUNAS tool to run CCMSetup.exe as administrator. – Jay – 2012-09-09T12:31:24.887

No answers