Windows 7 Forums


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 lost...lol
My System SpecsSystem Spec

30 Jan 2013   #2

Windows 7 Ultimate x64 Service Pack 1
Doncaster, UK
 
 

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
.


Reply

 Run As Administrator function for CMD.exe giving Access Denied problems?



Thread Tools



Similar help and support threads for: Run As Administrator function for CMD.exe giving Access Denied
Thread Forum
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
Administrator ? denied access General Discussion
Access Denied as administrator?? General Discussion


All times are GMT -5. The time now is 11:34 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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