Register to reply

How to enter command prompt with elevated priviledges at run?

by controlswhiz
Tags: command, elevated, priviledges, prompt
Share this thread:
controlswhiz
#1
Mar30-14, 09:23 PM
P: 7
What the title says.
Phys.Org News Partner Science news on Phys.org
Security CTO to detail Android Fake ID flaw at Black Hat
Huge waves measured for first time in Arctic Ocean
Mysterious molecules in space
rcgldr
#2
Mar30-14, 09:56 PM
HW Helper
P: 7,035
With windows, you select "run as admnistrator".
Routaran
#3
Mar30-14, 10:16 PM
P: 292


just in case
step3: Right click where it says command prompt

controlswhiz
#4
Mar30-14, 11:48 PM
P: 7
How to enter command prompt with elevated priviledges at run?

Is there any keyword that I can add on the run command?
Attached Thumbnails
abcd.png  
adjacent
#5
Mar31-14, 04:42 AM
PF Gold
adjacent's Avatar
P: 1,465
Quote Quote by controlswhiz View Post
Is there any keyword that I can add on the run command?
I don't think so.
Can't you just put a shortcut on the desktop(If you find it difficult to use start menu.)?
It's in C:\Windows\System32 ...... Name is cmd.exe
  1. Find it
  2. Right click on it
  3. Hover mouse over "Send to"
  4. Choose "Desktop(Create shortcut)"

Then you can simply run it as an administrator by right clicking on the shortcut

Hey Routaran, what kind of font are you using?
Routaran
#6
Mar31-14, 05:14 AM
P: 292
@adjacent: the font in the image? I have no idea, I shamelessly googled and posted an image from elsewhere on the internet as if it were my own. Sh*t, isn't that something you get hit with the banning stick for???
I think the person who made that image had shadows turned on for their text.

@controlswhiz: I don't think so either. the "-n" or "/help" options you enter after the file name are arguments you pass to the program that is being run. These are not interpreted by windows at all, they are specifically used the program in question. You need to tell windows to run a program elevated, not the program.

So, you have to launch the program by using the right click menu "Run as administrator" or use the method that adjacent posted.
I would add one extra step.
Right click on the shortcut>compatibility tab and check on "Run this program as an administrator"

this way you can simply double click the shortcut and it will run the command prompt elevated
image attached is an example of what you need to do.
Attached Thumbnails
2014-03-31 04_10_06-Dwarf Fortress Properties.jpg  
Hepth
#7
Apr1-14, 04:17 PM
PF Gold
Hepth's Avatar
P: 466
You can try "runas" : http://superuser.com/questions/42537...nd-for-windows

They say something like
runas /noprofile /user:Administrator cmd
In which case i'd make a "acmd.bat" file in your system32 directory with that in it, so you can just type acmd at the run box.

"Administrator" may need to be your user profile name if you have admin privs.
cjl
#8
Apr4-14, 11:11 AM
P: 1,008
I usually just type "cmd" in the start search, and then ctrl-shift-enter to launch the selected program as an admin. No mouse use, funny settings, or extra shortcuts required.
Routaran
#9
Apr4-14, 11:19 AM
P: 292
Quote Quote by cjl View Post
I usually just type "cmd" in the start search, and then ctrl-shift-enter to launch the selected program as an admin. No mouse use, funny settings, or extra shortcuts required.
I did not know about the Ctrl+Shift+Enter shortcut. Great tip!


Register to reply

Related Discussions
I'm trying the super basics and the command prompt keeps disappearing Programming & Computer Science 24
Anyone use the Windows command prompt? Programming & Computer Science 7
Two versions of dos command prompt Programming & Computer Science 5
Prompt user to enter mathematical function Math & Science Software 1
Having trouble with command prompt Programming & Computer Science 2