Solved Issues with batch file to run MMC with elevated account

ruste84

New member
Member
VIP
Local time
6:43 AM
Messages
73
Location
Indiana
Hey all. I'm trying to create a batch file to run an MMC using an elevated account. I'm a novice when it comes to batch files, but this is what I have so far is:

runas /user:domain\account "mmc C:\SuperConsole.msc"
pause

While I'm not including the domain or account info in this post, the file location is the same. I put the pause in it so I can see the error that I'm getting since I know that the MMC is not popping up.

So, I run the batch file and the CMD prompts for the password. I input the password and I receive the below error:

RUNAS ERROR: Unable to run - mmc C:\SuperConsole.msc
740: The requested operation requires elevation.

This is where I am perplexed. The account I'm running as is an elevated account. I've tried everything from removing the quotes, using my standard account, and placing mmc outside the quotes. I've also tried running a CMD as my elevated account and it comes up fine. Thoughts?
 
Last edited:

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Home Premium 64bit
CPU
AMD Phenom II X3 740
Motherboard
ASUS Crosshair IV Formula
Memory
Mushkin Enhanced Silverline
Graphics Card(s)
ASUS CuCore Series EAH5770 CuCore/2DI/1GD5
Sound Card
SupremeFX X-Fi 8-Ch audio with EAX Advanced HD 4.0 support
Hard Drives
Western Digital WD Black WD6402AAEX 640GB 7200 RPM SATA 6.0Gb/s 3.5"
PSU
Antec EarthWatts EA750 750W
Case
Antec Nine Hundred Two Black Steel ATX Mid Tower
Cooling
Scythe YASYA SCYS-1000 120mm
Mouse
Old as dirt Logitech, but its still kickin'
Antivirus
Microsoft Security Essentials and Malware Bytes
Browser
Google Chrome, IE10, and Firefox
Just to confirm, are you running the .BAT files as administrator?

Try placing the .BAT file on your desktop, and then right-click and select 'Run as administrator'

Regards,
Golden
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Golden Mk. I.4
OS
Windows 10 Pro x64 ; Xubuntu x64
CPU
Intel i7 860 @ 2.80 GHz O/C'ed to 4.0GHz
Motherboard
Gigabyte P55A-UD3R Rev.1. Award BIOS F13
Memory
16GB Corsair Vengance DDR3 @ 661 MHz Dual Channel (9-9-9-24)
Graphics Card(s)
EVGA NVidia GTX 560 1024MB
Sound Card
Realtek Integrated
Monitor(s) Displays
Dual Samsung SyncMaster 2494HS
Screen Resolution
1920*1080 and 1920*1080
Hard Drives
1*Samsung 840 EVO 120GB SSD;
1*OCZ Vertex 2 60GB SSD;
2*Samsung F3 SpinPoint 1TB in RAID0;
1*Samsung F1 SpinPoint 1TB;
2*Western Digital 1TB External USB 3.0
1*Western Digital 500GB External USB 3.0
1*Seagate 500GB External USB 2.0
PSU
Thermaltake ToughPower QFan 750W
Case
Thermaltake Element S VK60001W2Z
Cooling
Corsair H60 Water Cooling, 2*230mm and 2*80mm case fans
Keyboard
Logitech G110
Mouse
Logitech MX518
Hello Golden. I just tried that and I received the same error.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Home Premium 64bit
CPU
AMD Phenom II X3 740
Motherboard
ASUS Crosshair IV Formula
Memory
Mushkin Enhanced Silverline
Graphics Card(s)
ASUS CuCore Series EAH5770 CuCore/2DI/1GD5
Sound Card
SupremeFX X-Fi 8-Ch audio with EAX Advanced HD 4.0 support
Hard Drives
Western Digital WD Black WD6402AAEX 640GB 7200 RPM SATA 6.0Gb/s 3.5"
PSU
Antec EarthWatts EA750 750W
Case
Antec Nine Hundred Two Black Steel ATX Mid Tower
Cooling
Scythe YASYA SCYS-1000 120mm
Mouse
Old as dirt Logitech, but its still kickin'
Antivirus
Microsoft Security Essentials and Malware Bytes
Browser
Google Chrome, IE10, and Firefox
See if this will work for you

Make a shortcut of the bat file then do this

Right-click the new shortcut, and then click Properties.
On the Shortcut tab, click the Advanced button.

Select the Run as administrator checkbox.
 

My Computer My Computer

Computer Manufacturer/Model Number
Custom Built
OS
Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
CPU
Intel Core i7 CPU 950 @ 3.07GHz
Motherboard
ASUS P6T DELUXE V2
Memory
OCZ 6GB (3 x 2GB) 240-Pin DDR3 SDRAM DDR3 1600 OCZ3X1600R2
Graphics Card(s)
ATI Radeon HD 5700 Series
Sound Card
OnBoard
Hard Drives
WD6400AACS-00M3B0 (640GB SATA )
PSU
CORSAIR 850w
Case
NZXT LEXA
Cooling
Intel Stock Heatsink Fan
Keyboard
Microsoft Wireless Laser Keyboard 7000
Mouse
Microsoft Wireless Laser Mouse 7000
Hello VistaKing. I still received the error.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Home Premium 64bit
CPU
AMD Phenom II X3 740
Motherboard
ASUS Crosshair IV Formula
Memory
Mushkin Enhanced Silverline
Graphics Card(s)
ASUS CuCore Series EAH5770 CuCore/2DI/1GD5
Sound Card
SupremeFX X-Fi 8-Ch audio with EAX Advanced HD 4.0 support
Hard Drives
Western Digital WD Black WD6402AAEX 640GB 7200 RPM SATA 6.0Gb/s 3.5"
PSU
Antec EarthWatts EA750 750W
Case
Antec Nine Hundred Two Black Steel ATX Mid Tower
Cooling
Scythe YASYA SCYS-1000 120mm
Mouse
Old as dirt Logitech, but its still kickin'
Antivirus
Microsoft Security Essentials and Malware Bytes
Browser
Google Chrome, IE10, and Firefox

My Computer My Computer

Computer Manufacturer/Model Number
Custom Built
OS
Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
CPU
Intel Core i7 CPU 950 @ 3.07GHz
Motherboard
ASUS P6T DELUXE V2
Memory
OCZ 6GB (3 x 2GB) 240-Pin DDR3 SDRAM DDR3 1600 OCZ3X1600R2
Graphics Card(s)
ATI Radeon HD 5700 Series
Sound Card
OnBoard
Hard Drives
WD6400AACS-00M3B0 (640GB SATA )
PSU
CORSAIR 850w
Case
NZXT LEXA
Cooling
Intel Stock Heatsink Fan
Keyboard
Microsoft Wireless Laser Keyboard 7000
Mouse
Microsoft Wireless Laser Mouse 7000
Voila! That did it. It never occurred to me to run the shortcut of the batch file using Run as Administrator. Lesson learned. Thank you!
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Home Premium 64bit
CPU
AMD Phenom II X3 740
Motherboard
ASUS Crosshair IV Formula
Memory
Mushkin Enhanced Silverline
Graphics Card(s)
ASUS CuCore Series EAH5770 CuCore/2DI/1GD5
Sound Card
SupremeFX X-Fi 8-Ch audio with EAX Advanced HD 4.0 support
Hard Drives
Western Digital WD Black WD6402AAEX 640GB 7200 RPM SATA 6.0Gb/s 3.5"
PSU
Antec EarthWatts EA750 750W
Case
Antec Nine Hundred Two Black Steel ATX Mid Tower
Cooling
Scythe YASYA SCYS-1000 120mm
Mouse
Old as dirt Logitech, but its still kickin'
Antivirus
Microsoft Security Essentials and Malware Bytes
Browser
Google Chrome, IE10, and Firefox
That's good that you got it working . Glad to help .
 

My Computer My Computer

Computer Manufacturer/Model Number
Custom Built
OS
Windows 7 Ultimate 32-Bit & Windows 7 Ultimate 64-Bit
CPU
Intel Core i7 CPU 950 @ 3.07GHz
Motherboard
ASUS P6T DELUXE V2
Memory
OCZ 6GB (3 x 2GB) 240-Pin DDR3 SDRAM DDR3 1600 OCZ3X1600R2
Graphics Card(s)
ATI Radeon HD 5700 Series
Sound Card
OnBoard
Hard Drives
WD6400AACS-00M3B0 (640GB SATA )
PSU
CORSAIR 850w
Case
NZXT LEXA
Cooling
Intel Stock Heatsink Fan
Keyboard
Microsoft Wireless Laser Keyboard 7000
Mouse
Microsoft Wireless Laser Mouse 7000
Back
Top