Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Run As Administrator function for CMD.exe giving Access Denied

30 Jan 2013   #1

Win 7 64Bit
Run As Administrator function for CMD.exe giving Access Denied

Hey everyone, I have an odd one. So this is slightly different from my last post for I have figured out half of my issue from the last time.

How come if I right-click a BAT file as a standard user and select Run As Admin, the script runs but says Access Denied in the CMD window?

CMD.exe and BAT file has Everyone with Full Control and ownership. I have tried doing the shortcut method and checking Run As Administrator option and that gives the same error. I went into the registry and disabled the UAC just in case with no luck.

Is there a security setting that I have overlooked that would cause that BAT file to not run? Any help you guys can give is appreciated greatly!

**EDIT** - As a test, I logged in as an administrator on the machine and the script launches fine without elevation or prompting as well if I tell it to Run As Admin. So now I am

My System SpecsSystem Spec

30 Jan 2013   #2

Windows 8.1 Pro RTM x64

What is the batch file?
My System SpecsSystem Spec
30 Jan 2013   #3

Win 7 64Bit

Its just a simple map a network drive script. I would love to get rid of it and map persistent the standard way but the program that gave me this machine is how they conduct their drives and don't want to change it so I am stuck trying to figure it out.

I just tried using the runas in the script with the /savecred option and that didnt like it either.
My System SpecsSystem Spec


 Run As Administrator function for CMD.exe giving Access Denied

Thread Tools

Similar help and support threads for2: Run As Administrator function for CMD.exe giving Access Denied
Thread Forum
Solved Administrator access denied General Discussion
ACCESS IS DENIED! I am a administrator. General Discussion
Solved Windows 7 Pane Customizer will not function - Registry access denied Customization
Access Denied on Administrator General Discussion
Access Denied! On Administrator Account? General Discussion
Administrator ? denied access General Discussion
Access Denied as administrator?? General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:45 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33