Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Elevated Command Prompt Shortcut

14 Apr 2014   #40
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by GrayGhost2 View Post
Thank you Brink for another excellent tutorial.

Quote:
Warning
You must be logged in as an administrator to be able to use this shortcut.
As the 's advocate ...
With an elevated cmd-prompt shortcut , ie "Run as Administrator" ... why would I need to be logged in as Admin to use the shortcut. ?

Without having experimented with an elevated shortcut, what is the point of an elevated shortcut if it can only be used when logged in as administrator.
If logged in as admin, wouldn't opening the cmd.exe default to Administrator.

I would like to open an elevated cmd-prompt from my user account using the elevated shortcut.

Sorry to be difficult ... I am not questioning the human logic ... but the OS/security logic.

---------------
SPECS:
Toshiba Satellite C665
OS:= Windows 7 Home Premium (32-bit), sp1 (Build 7601) OEM
UI:=Classic Shell Start + Classic Explorer
Windows Indexing = disabled
Security settings for C:\
System ... (full control:=ON)
Administrators (Owner-PC\Administrators) ... (full control:=OFF)
Users (Owner-PC\Users) ... (full control:=OFF)
No problem. Here's why.

Nope. An administrator account is not an elevated account like the built-in elevated "Administrator" account. An administrator account behaves the same way as a standard user until you want to run something elevated (Run as administrator).

If you are logged in to an administrator account and "Run as Administrator", you will be prompted by UAC to click on Yes/No to approve by default.

If you are logged in to a standard user account and "Run as Administrator", you will be prompted by UAC to enter an administrator's password to approve by default.

Thus, either way, you must be logged in as an administrator to "Run as Administrator".

If you like, you could also use the method in the tutorial below to run an elevated command prompt in a standard user account without being prompted by UAC.
Elevated Program Shortcut - Create for Standard User



My System SpecsSystem Spec
.
15 Apr 2014   #41
Anak

Microsoft Community Contributor Award Recipient

Win 7 Home Premium 64bit Ver 6.1.7600 Build 7601 - SP1
 
 

Quote   Quote: Originally Posted by GrayGhost2 View Post
I would like to open an elevated cmd-prompt from my user account using the elevated shortcut.
Have you tried creating the shortcut for the elevated cmd and then either leaving it on your desktop or pinning it to your taskbar?

There are several options to do that here: Shortcut - Create for a File, Folder, Drive, or Program in Windows The one way you may be comfortable with is Option Four.
  • Copy/type/paste this C:\Windows\System32\cmd.exe into the Location box in step #2.
  • It will skip step #'s 3 and 4, and go directly to step #5 where you can give your new shortcut a name that suits you.
  • Click on Finish and see your new shortcut on your desktop.
  • You can either leave it on the desktop or right click it to open the context menu, where you can pin it to the Taskbar or the Start Menu.
Depending on how you have your User Account Control set you will still have to OK it unless you have it set to Never Notify which is dangerous to do.


After creating the first part of this post I saw this which might be better: Elevated Program Shortcut without UAC Prompt - Create
My System SpecsSystem Spec
20 Feb 2015   #42
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Referring to Option 2, Step 2, it may be shorter and nicer looking to use the %ComSpec% system environment variable over %windir%\System32\cmd.exe as the target.
My System SpecsSystem Spec
20 Feb 2015   #43
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by Pyprohly View Post
Referring to Option 2, Step 2, it may be shorter and nicer looking to use the %ComSpec% system environment variable over %windir%\System32\cmd.exe as the target.
Thank you. I added it to step 2 in Option 2 as another choice.
My System SpecsSystem Spec
.

13 Dec 2015   #44
ljmartin

win7 pro
 
 

thank you
i have it pinned to the start menu and it opens fine after the user account control
do you want the following program to make changes to this computer?
i click yes and there it is.
My System SpecsSystem Spec
Reply

 Elevated Command Prompt Shortcut




Thread Tools




Similar help and support threads
Thread Forum
Elevated Command Prompt
How to Open an Elevated Command Prompt in Windows 7 This will show you how to open an elevated command prompt with administrator rights (Run as administrator) instead of the default command prompt without administrator rights in Windows 7. If you opened the elevated command prompt from a...
Tutorials
No administrator privileges in elevated command prompt
Hi, I'm trying to setup a WiFi Hotspot on my Laptop running Windows 7. When I enter the command: netsh wlan set hostednetwork mode=allow "ssid=myssid" "key=mykey” keyUsage=persistent in an elevated command prompt, it says: "You must run this command from a command prompt with administrator...
General Discussion
Elevated command prompt over SSH
Not sure if this is the proper forum for my question, but here it goes. I'm using a SSH server to remotely access my notebook from work. It works well for SFTP and remote command line access using a dedicated, non-admin, user account. Problem is when I want to run something that requires...
Network & Sharing
Tip for Elevated Command Prompt
This probably is not new to many, but I find it useful. There are times I want an elevated command prompt. I usually type in "cmd", right click on it and run as administrator. If you need an elevated command prompt now and then, simply create a shortcut to "cmd". Right click on the shortcut,...
General Discussion
How to open Elevated Command Prompt?
Hi friends ! Uber Philf told me to start a new thread with my problem. I cannot open an Elevated Command Prompt, Dont know why. I know that I can open it in two alternative ways : 1). Win+R, type cmd, hit enter eith ctrl+shift pressed ; and 2). start > all programs > accessories > command prompt >...
Performance & Maintenance
elevated command prompt fails
If i try and use cmd from within the start menu ,in accessories and right click ,then "Run as administrator",all i am granted is normal cmd usage e.g(C:\Users\(User Name ).Now,i then pinned cmd to the start menu and again i tried to "run as administrator",but this time cmd fails to open at all. ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:26.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App