Run As Administrator function for CMD.exe giving Access Denied

landonveitch

New member
Local time
1:58 AM
Messages
5
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 Computer My Computer

At a glance

Win 7 64Bit
OS
Win 7 64Bit
What is the batch file?
 

My Computer My Computer

At a glance

Windows 8.1 Pro RTM x64Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Brid...4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2...MSI GeForce GTX770 Gaming OC 2GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
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 Computer My Computer

At a glance

Win 7 64Bit
OS
Win 7 64Bit
Back
Top