Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Why can't I run my batch file with elevated privilege?
New Posts  All Forums:Forum Nav:

Why can't I run my batch file with elevated privilege?

post #1 of 3
Thread Starter 
I have a batch file that I want to run with elevated privilege and I have created a link and checked the option run as administrator but it doesn't work? I have Windows 8 and disabled UAC?
Edited by Recursion - 6/9/13 at 4:07pm
Crayemulator
(34 items)
 
HTPC
(14 items)
 
Laptop
(20 items)
 
CPUMotherboardGraphicsRAM
AMD FX-6100 Asus Sabretooth 990FX rev 2.0 Sapphire R9 290X Tri-X Vulcan DDR3 2400 Orange Series 
Hard DriveHard DriveHard DriveHard Drive
Western Digital Western Digital Samsung Seagate Barracuda 
Optical DriveCoolingCoolingCooling
LG DVD-RW DH16A1L 140 mm Cooltek fan Noctua NF-P12 premium fan Noctua NF-P12 premium fan 
CoolingCoolingCoolingCooling
140 mm Cooltek fan 140 mm Cooltek fan Coolermaster Seidon M120 140 mm Cooltek fan 
CoolingCoolingCoolingCooling
XSPC 420 reservoir and pump Antec Kühler 920 Phobya G-Silent 12 Phobya G-Silent 12 
OSOSMonitorKeyboard
Windows 8.1 Professional OpenSuSE 12.2 22" LG Flatron W2243T Keysonic 
PowerCaseMouseMouse Pad
Be quiet! Straight Power E6 (700W) Corsair Carbide 400R Logitech Gaming Mouse Case Logic Gel-eez 
AudioAudioOtherOther
Samsung 240T Loudspeaker Onboard SATA Y power cable 2x Y 3-pin power cable 
OtherOther
4x S-ATA cable black 50 cm 12volt 4x 3-pin power cable adapter 
CPUMotherboardGraphicsRAM
AMD Phenom 550 2x Biostar TA870+  ATI Radeon HD 4300 Noname Ram 
Hard DriveHard DriveCoolingCooling
Western Digital Caviar Blue Hitach LC Power Cosmo Cool LC-CC95 Arctic Cooler F9 PWM 
CoolingOSMonitorKeyboard
Arctic Cooler F8 PWM Windows 7 Ultimate 27" Acer Noname 
PowerOther
Enermax Pro87+ 500 Watt  3.5" 1.44 MB disk drive  
CPUMotherboardGraphicsGraphics
Turion 64 X2 Ultra  SB 700 series HD 3650 HD 3200 
RAMRAMHard DriveOptical Drive
Komputerbay Noname Samsung Spinpoint M8 Sony DVD/DV-RW TS-L633A 
OSMonitorKeyboardMouse
Windows 8 LG Flatsscreen PS/2 compatible PS/2 compatible 
AudioOtherOtherOther
AMD High Definition Audio Device Bluetooth Adapter Winbond CIR Transceiver IEEE 1394 Firewire 
OtherOtherOtherOther
Qualcomm Atheros AR928X wireless JMicron PCIe MS/SD/MMC/xD Host Controller Realtek PCIe GBE  Logitech 1.3 M WebCam 
  hide details  
Reply
Crayemulator
(34 items)
 
HTPC
(14 items)
 
Laptop
(20 items)
 
CPUMotherboardGraphicsRAM
AMD FX-6100 Asus Sabretooth 990FX rev 2.0 Sapphire R9 290X Tri-X Vulcan DDR3 2400 Orange Series 
Hard DriveHard DriveHard DriveHard Drive
Western Digital Western Digital Samsung Seagate Barracuda 
Optical DriveCoolingCoolingCooling
LG DVD-RW DH16A1L 140 mm Cooltek fan Noctua NF-P12 premium fan Noctua NF-P12 premium fan 
CoolingCoolingCoolingCooling
140 mm Cooltek fan 140 mm Cooltek fan Coolermaster Seidon M120 140 mm Cooltek fan 
CoolingCoolingCoolingCooling
XSPC 420 reservoir and pump Antec Kühler 920 Phobya G-Silent 12 Phobya G-Silent 12 
OSOSMonitorKeyboard
Windows 8.1 Professional OpenSuSE 12.2 22" LG Flatron W2243T Keysonic 
PowerCaseMouseMouse Pad
Be quiet! Straight Power E6 (700W) Corsair Carbide 400R Logitech Gaming Mouse Case Logic Gel-eez 
AudioAudioOtherOther
Samsung 240T Loudspeaker Onboard SATA Y power cable 2x Y 3-pin power cable 
OtherOther
4x S-ATA cable black 50 cm 12volt 4x 3-pin power cable adapter 
CPUMotherboardGraphicsRAM
AMD Phenom 550 2x Biostar TA870+  ATI Radeon HD 4300 Noname Ram 
Hard DriveHard DriveCoolingCooling
Western Digital Caviar Blue Hitach LC Power Cosmo Cool LC-CC95 Arctic Cooler F9 PWM 
CoolingOSMonitorKeyboard
Arctic Cooler F8 PWM Windows 7 Ultimate 27" Acer Noname 
PowerOther
Enermax Pro87+ 500 Watt  3.5" 1.44 MB disk drive  
CPUMotherboardGraphicsGraphics
Turion 64 X2 Ultra  SB 700 series HD 3650 HD 3200 
RAMRAMHard DriveOptical Drive
Komputerbay Noname Samsung Spinpoint M8 Sony DVD/DV-RW TS-L633A 
OSMonitorKeyboardMouse
Windows 8 LG Flatsscreen PS/2 compatible PS/2 compatible 
AudioOtherOtherOther
AMD High Definition Audio Device Bluetooth Adapter Winbond CIR Transceiver IEEE 1394 Firewire 
OtherOtherOtherOther
Qualcomm Atheros AR928X wireless JMicron PCIe MS/SD/MMC/xD Host Controller Realtek PCIe GBE  Logitech 1.3 M WebCam 
  hide details  
Reply
post #2 of 3
By created a link, do you mean created a shortcut?
1. Put the .bat on your desktop,
2. Right click > Send-To> desktop(create shortcut)
3. properties > shortcut > advanced > check "run as admin"
4. run from the shortcut.

sorry if that's what you've already tried, if that's not working i'm not sure what to tell you
LikeCorsairMuch
(29 items)
 
  
CPUMotherboardGraphicsRAM
intel i7 2600k Asus p8Z68 V LE Asus GTX 670 Corsair Vengeance 16GB 1600 
Hard DriveHard DriveHard DriveHard Drive
Corsair Force 3 120GB SSD Corsair Force 3 GT 240GB SSD (Red) WD 2TB Caviar Black SeaGate 500GB HDD 
Optical DriveOptical DriveCoolingCooling
Asus DVD-RW LG Blu-Ray RW w/ lightscribe Corsair H100 Aero cool Shark Fan 120mm 
CoolingCoolingCoolingCooling
Aero cool Shark Fan 120mm Aero cool Shark Fan 120mm Aero cool Shark Fan 120mm Aero cool Shark Fan 140mm 
CoolingCoolingOSMonitor
Aero cool Shark Fan 140mm Aero cool Shark Fan 140mm Windows 7 Ultimate 64bit Asus  
MonitorMonitorKeyboardPower
Asus Asus Corsair k90 Mechanical Corsair AX1200W 
CaseMouseMouse PadAudio
Corsair 800D Razer Naga Smiley Face Sony optical HTS 
Audio
Corsair 2500 Wireless Headset 
  hide details  
Reply
LikeCorsairMuch
(29 items)
 
  
CPUMotherboardGraphicsRAM
intel i7 2600k Asus p8Z68 V LE Asus GTX 670 Corsair Vengeance 16GB 1600 
Hard DriveHard DriveHard DriveHard Drive
Corsair Force 3 120GB SSD Corsair Force 3 GT 240GB SSD (Red) WD 2TB Caviar Black SeaGate 500GB HDD 
Optical DriveOptical DriveCoolingCooling
Asus DVD-RW LG Blu-Ray RW w/ lightscribe Corsair H100 Aero cool Shark Fan 120mm 
CoolingCoolingCoolingCooling
Aero cool Shark Fan 120mm Aero cool Shark Fan 120mm Aero cool Shark Fan 120mm Aero cool Shark Fan 140mm 
CoolingCoolingOSMonitor
Aero cool Shark Fan 140mm Aero cool Shark Fan 140mm Windows 7 Ultimate 64bit Asus  
MonitorMonitorKeyboardPower
Asus Asus Corsair k90 Mechanical Corsair AX1200W 
CaseMouseMouse PadAudio
Corsair 800D Razer Naga Smiley Face Sony optical HTS 
Audio
Corsair 2500 Wireless Headset 
  hide details  
Reply
post #3 of 3
Thread Starter 
I tried exactly this but it doesn't work? My batch file isn't run as administrator. I have disabled UAC, too? I have found the elevate.exe and it's working with this?
Crayemulator
(34 items)
 
HTPC
(14 items)
 
Laptop
(20 items)
 
CPUMotherboardGraphicsRAM
AMD FX-6100 Asus Sabretooth 990FX rev 2.0 Sapphire R9 290X Tri-X Vulcan DDR3 2400 Orange Series 
Hard DriveHard DriveHard DriveHard Drive
Western Digital Western Digital Samsung Seagate Barracuda 
Optical DriveCoolingCoolingCooling
LG DVD-RW DH16A1L 140 mm Cooltek fan Noctua NF-P12 premium fan Noctua NF-P12 premium fan 
CoolingCoolingCoolingCooling
140 mm Cooltek fan 140 mm Cooltek fan Coolermaster Seidon M120 140 mm Cooltek fan 
CoolingCoolingCoolingCooling
XSPC 420 reservoir and pump Antec Kühler 920 Phobya G-Silent 12 Phobya G-Silent 12 
OSOSMonitorKeyboard
Windows 8.1 Professional OpenSuSE 12.2 22" LG Flatron W2243T Keysonic 
PowerCaseMouseMouse Pad
Be quiet! Straight Power E6 (700W) Corsair Carbide 400R Logitech Gaming Mouse Case Logic Gel-eez 
AudioAudioOtherOther
Samsung 240T Loudspeaker Onboard SATA Y power cable 2x Y 3-pin power cable 
OtherOther
4x S-ATA cable black 50 cm 12volt 4x 3-pin power cable adapter 
CPUMotherboardGraphicsRAM
AMD Phenom 550 2x Biostar TA870+  ATI Radeon HD 4300 Noname Ram 
Hard DriveHard DriveCoolingCooling
Western Digital Caviar Blue Hitach LC Power Cosmo Cool LC-CC95 Arctic Cooler F9 PWM 
CoolingOSMonitorKeyboard
Arctic Cooler F8 PWM Windows 7 Ultimate 27" Acer Noname 
PowerOther
Enermax Pro87+ 500 Watt  3.5" 1.44 MB disk drive  
CPUMotherboardGraphicsGraphics
Turion 64 X2 Ultra  SB 700 series HD 3650 HD 3200 
RAMRAMHard DriveOptical Drive
Komputerbay Noname Samsung Spinpoint M8 Sony DVD/DV-RW TS-L633A 
OSMonitorKeyboardMouse
Windows 8 LG Flatsscreen PS/2 compatible PS/2 compatible 
AudioOtherOtherOther
AMD High Definition Audio Device Bluetooth Adapter Winbond CIR Transceiver IEEE 1394 Firewire 
OtherOtherOtherOther
Qualcomm Atheros AR928X wireless JMicron PCIe MS/SD/MMC/xD Host Controller Realtek PCIe GBE  Logitech 1.3 M WebCam 
  hide details  
Reply
Crayemulator
(34 items)
 
HTPC
(14 items)
 
Laptop
(20 items)
 
CPUMotherboardGraphicsRAM
AMD FX-6100 Asus Sabretooth 990FX rev 2.0 Sapphire R9 290X Tri-X Vulcan DDR3 2400 Orange Series 
Hard DriveHard DriveHard DriveHard Drive
Western Digital Western Digital Samsung Seagate Barracuda 
Optical DriveCoolingCoolingCooling
LG DVD-RW DH16A1L 140 mm Cooltek fan Noctua NF-P12 premium fan Noctua NF-P12 premium fan 
CoolingCoolingCoolingCooling
140 mm Cooltek fan 140 mm Cooltek fan Coolermaster Seidon M120 140 mm Cooltek fan 
CoolingCoolingCoolingCooling
XSPC 420 reservoir and pump Antec Kühler 920 Phobya G-Silent 12 Phobya G-Silent 12 
OSOSMonitorKeyboard
Windows 8.1 Professional OpenSuSE 12.2 22" LG Flatron W2243T Keysonic 
PowerCaseMouseMouse Pad
Be quiet! Straight Power E6 (700W) Corsair Carbide 400R Logitech Gaming Mouse Case Logic Gel-eez 
AudioAudioOtherOther
Samsung 240T Loudspeaker Onboard SATA Y power cable 2x Y 3-pin power cable 
OtherOther
4x S-ATA cable black 50 cm 12volt 4x 3-pin power cable adapter 
CPUMotherboardGraphicsRAM
AMD Phenom 550 2x Biostar TA870+  ATI Radeon HD 4300 Noname Ram 
Hard DriveHard DriveCoolingCooling
Western Digital Caviar Blue Hitach LC Power Cosmo Cool LC-CC95 Arctic Cooler F9 PWM 
CoolingOSMonitorKeyboard
Arctic Cooler F8 PWM Windows 7 Ultimate 27" Acer Noname 
PowerOther
Enermax Pro87+ 500 Watt  3.5" 1.44 MB disk drive  
CPUMotherboardGraphicsGraphics
Turion 64 X2 Ultra  SB 700 series HD 3650 HD 3200 
RAMRAMHard DriveOptical Drive
Komputerbay Noname Samsung Spinpoint M8 Sony DVD/DV-RW TS-L633A 
OSMonitorKeyboardMouse
Windows 8 LG Flatsscreen PS/2 compatible PS/2 compatible 
AudioOtherOtherOther
AMD High Definition Audio Device Bluetooth Adapter Winbond CIR Transceiver IEEE 1394 Firewire 
OtherOtherOtherOther
Qualcomm Atheros AR928X wireless JMicron PCIe MS/SD/MMC/xD Host Controller Realtek PCIe GBE  Logitech 1.3 M WebCam 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Why can't I run my batch file with elevated privilege?