login .bat script in windows xp user to run with admin rights

Posted by Kryan on Super User See other posts from Super User or by Kryan
Published on 2012-09-06T10:41:10Z Indexed on 2012/10/07 21:41 UTC
Read the original article Hit count: 205

Filed under:
|

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 dosnt hav admin rights to install a .exe file)

in the user account, the mapping can be created and deleted but running the CCMSetup.exe dosnt work.

pls help how to run this CCMSetup.exe with admin rights in the user account.

© Super User or respective owner

Related posts about batch-file

Related posts about net-use