Timeline for On Windows 7, is there a command prompt line that can start cmd as an administrator?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 24, 2016 at 14:49 | comment | added | CMCDragonkai | It appears that by default the administrator does not have a password. And that the account is actually disabled. The administrator account needs to be first enabled, given a password and then it becomes an actual user that you can log into and runas into. | |
Jan 22, 2016 at 18:00 | history | edited | surfasb | CC BY-SA 3.0 |
The built-in Administrator is disabled by default on Domain joined computers.
|
Aug 21, 2015 at 13:55 | comment | added | CodeManX |
But what is the administrator password? It doesn't accept a blank one. If I right-click > Run as administrator, it doesn't ask me for a password (possibly because my user account has admin privileges, but this is different from run as admin, which will run with elevated rights).
|
|
Mar 9, 2013 at 5:31 | comment | added | MDMoore313 |
+1, and for local admin runas /user:administrator cmd.exe is not hard to remember after a dozen types or so. All it is is the command itself runas followed by the /user: switch, followed by the user we want to run it as, then finally the program we want to run, cmd.exe (the command prompt in our case). This is as close to a one line you can get for running command prompts elevated. Also, if you do start->run sometimes there's a checkbox to run the program elevated, I haven't put any effort into figuring out what makes it appear, but it is an option.
|
|
May 24, 2010 at 0:24 | vote | accept | nonopolarity | ||
Nov 24, 2009 at 18:19 | comment | added | grawity_u1686 |
Joshua: Unless you use /savecred .
|
|
Nov 24, 2009 at 9:23 | comment | added | nonopolarity | so the shortest form is "runas /user:DOMAIN\Administrator cmd.exe" wow... that's pretty long and hard to remember... and i can create an alias, but what if i am on someone else's computer and helping out? will it be a good idea if MS can create a special command called runasadmin? | |
Nov 24, 2009 at 2:26 | comment | added | Joshua |
Also, unlike sudo , runas will never cache the password for any length of time. So if you were planning on queuing up a couple quick commands like you can with successive runs of sudo . So just open a console window and run your commands there.
|
|
Nov 24, 2009 at 2:15 | history | edited | Jared Harley | CC BY-SA 2.5 |
added 131 characters in body
|
Nov 24, 2009 at 2:10 | history | edited | Jared Harley | CC BY-SA 2.5 |
added 280 characters in body
|
Nov 24, 2009 at 2:05 | history | undeleted | Jared Harley | ||
Nov 24, 2009 at 2:01 | history | deleted | Jared Harley | ||
Nov 24, 2009 at 1:54 | history | answered | Jared Harley | CC BY-SA 2.5 |