Welcome Guest ( Log In | Register )




Collapse

Top Submitters

· NickTheGreek (127)
·  (127)
· www.yourforum.gr (61)
· nickpar (20)
· Big (1)


Collapse

Announcments


Welcome to Tutorial System!


Print this Tutorial 

Run Command Prompt As Administrator in Windows

Tutorial Information
Name: Run Command Prompt As Administrator in Windows
Submitter: www.yourforum.gr
Category: Windows Tutorials
Submitted: 4 Aug 2011
Updated: 4 Aug 2011
Views: 367
Rating: This tutorial is unrated.
Run Command Prompt As Administrator in Windows
View All Tutorials By This Member
View Discussion Topic
Description:
really useful for Windows Vista / 7 with UAC enabled
Tutorial Instructions

While using the command shell or command prompt on Windows Vista and Windows 7, you must have seen messages like,


Access denied, or The requested operation requires elevated privileges.


These messages are shown when you try to access system files using a normal command prompt, that is, a command prompt with low privileges.


By default, all the processes in Windows Vista are run in low privilege mode. The new security mechanism in Windows, called User Access Control (UAC) keeps an eye on each processes and the files, folders and registry keys it is accessing. If a process tries to access these files without possessing the privileges to access it, the access is denied and the process is terminated.


So when you use any command that accesses a system file or registry from a command prompt with low access rights, you get error messages like above. The solution to this issue is to run the command prompt with administrator privileges. Following are some of the ways to open command prompt as administrator.


Method 1


1. Click on Start button, then Go to All Programs ] Accessories, and find Command Prompt.


2. Right click on the Command Prompt menu item and click on Run as Administrator.





Method 2


1. Click on the Start button.

2. In the Search box, type Cmd.

3. In the search results, right click on Command Prompt or Cmd, then click on Run as Administrator.


Method 3


Open run box from start menu, or by pressing Windows Key+R.





In the run box, type cmd, but instead of pressing Enter, press Ctrl+Shift+Enter. Then press OK on the User Account Control dialog.


This trick is also useful in running any single command with administrative privileges. Just type the command in the run box, and press Ctrl+Shift+Enter instead of Enter. The command will run with escalated privileges. So, if you just want to run a single command with higher access rights then you can directly use this trick instead of starting a command prompt first.


Method 4


You can easily get a command prompt with elevated privileges using any of the above method. But if you need to run administrative commands frequently, then using these methods is very cumbersome. Here’s an easy way out. Create a command prompt shortcut that always runs as administrator. To do this,


1. Create a shortcut for Command Prompt on desktop, or any other place you like.

2. Right click on this newly created shortcut and click on Properties.

3. Activate the Shortcut Tab, and click on Advanced button.

4. Now select the check box that says Run as administrator

.





5. Click OK two times to save these settings.


Now just double click on this shortcut to launch a command prompt with elevated privileges.

Comments
There have been no comments made as of yet. Why not be the first?



1 user(s) active
Active Users 1 guests, 0 members, 0 anonymous members
Sorted by Last Click
Quick Stats
Board Stats There have been a total of 244 tutorials in 6 categories and 0 sub-categories with 117067 views and 24 comments
The newest tutorial is How to Add “Move to” or “Copy to” to Windows 10¢s Context Menu by NickTheGreek

RSS Lo-Fi Version Time is now: 21st June 2025 - 01:14 AM
Skin and Graphics by Dan Ellis and Anubis. Hosting by Forums & More © 2005-2011.
InvisionGames - Your #1 Arcade Games Repository | AllSigs - Signatures for all | Rock Band + Guitar Hero = RockHero ! | The Remoters - Remote Assistance | FileMiners - You ask, We find