Command Line

win7clutz

Windows 7 Banger
Guru
Local time
10:11 AM
Messages
518
Location
Rust Belt
Is there a cmd.exe /switch for “run as administrator” ?

Thanks-
 

My Computer

Computer Manufacturer/Model Number
Home Grown
OS
Windows 7 Ultimate (64)
CPU
i7-2600K
Motherboard
Asus P8P67-M Pro
Memory
G.SKILL Ripjaws X Series 8GB (2 x 4GB)
Graphics Card(s)
ATI 5750
Sound Card
On-Board
Monitor(s) Displays
LG W2486L
Screen Resolution
1920X1080
Hard Drives
Intel X-25M 80 Gig SSD | Intel X-25M 160 Gig SSD | WD Black 500MB - External eSata
PSU
Zalman ZM770-XT 770 Watts
Case
Antec 180 mini
Cooling
Cooler Master V8
Internet Speed
15MB - Cable
Other Info
Sissy OC - 4.6 @ 1.3175 24/7 | 18' Idle - 55' Load
Is there a cmd.exe /switch for “run as administrator” ?

Thanks-

Not that I'm aware of, but if you click the start orb, type "cmd" (without quotes) then right-click "cmd.exe" in the search results, you can then select "Run as Administrator" (but you already knew that...)

Here is a part of the switches available to CMD.EXE (You can get more by opening a command line window, then type "CMD /?" (without quotes) and pressing <ENTER>:

Code:
C:\Users\Peter Dzomlija>cmd /?
Starts a new instance of the Windows command interpreter
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
    [[/S] [/C | /K] string]
/C      Carries out the command specified by string and then terminates
/K      Carries out the command specified by string but remains
/S      Modifies the treatment of string after /C or /K (see below)
/Q      Turns echo off
/D      Disable execution of AutoRun commands from registry (see below)
/A      Causes the output of internal commands to a pipe or file to be ANSI
/U      Causes the output of internal commands to a pipe or file to be
        Unicode
/T:fg   Sets the foreground/background colors (see COLOR /? for more info)
/E:ON   Enable command extensions (see below)
/E:OFF  Disable command extensions (see below)
/F:ON   Enable file and directory name completion characters (see below)
/F:OFF  Disable file and directory name completion characters (see below)
/V:ON   Enable delayed environment variable expansion using ! as the
        delimiter. For example, /V:ON would allow !var! to expand the
        variable var at execution time.  The var syntax expands variables
        at input time, which is quite a different thing when inside of a FOR
        loop.
/V:OFF  Disable delayed environment expansion.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Virtual Machine
OS
Windows 7 Professional 32-bit SP1
CPU
AMD A4/A6
Motherboard
Intel Corporation 440BX Desktop Reference Platform
Memory
3.00GB EDO
Graphics Card(s)
VMware SVGA 3D
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic Non-PnP Monitor on VMware SVGA 3D
Screen Resolution
1440x900
Hard Drives
1 x 60GB VMware Virtual SATA Hard Drive ATA Device
Antivirus
Kaspersky Total Security
You can use this:
Click Start.
Type Command.
Right-click Command Prompt, and then click Properties.
2. On the Shortcut tab, click Advanced.
3. Select the Run as administrator checkbox.

4. Click OK twice.
After this you will not need the "run as Administrator" tag. You may need to downgrade the UAC settings. I havn't been there as I have it turned off.
 
Last edited:

My Computer

Computer Manufacturer/Model Number
Three desktops and one laptop with good specs..
OS
Vista and now 7 in 32 and 64 bit.
Thanks for the replies. I use Stardocks ObjectDockPlus and trying to get an elevated command prompt on one of my docks. I’ll keep playing with it…

OFF TOPIC:

I have no idea who created or who is behind your Windows Seven Forum, but I’ve got to say “Three Cheers” as you guys have not only done a great job with structure and management of it, it’s clear you are an invaluable resource for thousands of users. Microsoft would be wise to follow your lead and I want to personally Thank You…

Ken
 

My Computer

Computer Manufacturer/Model Number
Home Grown
OS
Windows 7 Ultimate (64)
CPU
i7-2600K
Motherboard
Asus P8P67-M Pro
Memory
G.SKILL Ripjaws X Series 8GB (2 x 4GB)
Graphics Card(s)
ATI 5750
Sound Card
On-Board
Monitor(s) Displays
LG W2486L
Screen Resolution
1920X1080
Hard Drives
Intel X-25M 80 Gig SSD | Intel X-25M 160 Gig SSD | WD Black 500MB - External eSata
PSU
Zalman ZM770-XT 770 Watts
Case
Antec 180 mini
Cooling
Cooler Master V8
Internet Speed
15MB - Cable
Other Info
Sissy OC - 4.6 @ 1.3175 24/7 | 18' Idle - 55' Load
Thanks for the replies. I use Stardocks ObjectDockPlus and trying to get an elevated command prompt on one of my docks. I’ll keep playing with it…

OFF TOPIC:

I have no idea who created or who is behind your Windows Seven Forum, but I’ve got to say “Three Cheers” as you guys have not only done a great job with structure and management of it, it’s clear you are an invaluable resource for thousands of users. Microsoft would be wise to follow your lead and I want to personally Thank You…

Ken

That would be z3r010 and Brink, our esteemed admins.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Virtual Machine
OS
Windows 7 Professional 32-bit SP1
CPU
AMD A4/A6
Motherboard
Intel Corporation 440BX Desktop Reference Platform
Memory
3.00GB EDO
Graphics Card(s)
VMware SVGA 3D
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic Non-PnP Monitor on VMware SVGA 3D
Screen Resolution
1440x900
Hard Drives
1 x 60GB VMware Virtual SATA Hard Drive ATA Device
Antivirus
Kaspersky Total Security
Back
Top