IT tutorials
 
Windows
 

Windows Server 2008 : Launching and Using the Command Prompt (part 1) - Launching with Elevated Privileges

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
4/9/2013 9:19:40 PM

1. Launching the Command Prompt

The command prompt is pinned to the Start menu by default in Windows Server 2008. You can access it by clicking Start and selecting Command Prompt. If it has been removed from the Start menu, you can also launch it using one of these methods:

  • Click Start, type CMD in the Start Search box, and then press Enter.

  • Click Start, All Programs, Accessories, and then select Command Prompt.

The command prompt opens and looks similar to Figure 1.

Figure 1. The command prompt window

If you regularly use the command prompt, you can add some shortcuts to pin it to the Quick Launch menu or to the Start menu using one of the following methods:

  • Click Start, type CMD in the Start Search box, right-click CMD, and select either Add to Quick Launch or Pin to Start Menu.

  • Click Start, All Programs, Accessories, right-click Command Prompt, and select either Add to Quick Launch or Pin to Start Menu.

Note

Quick Launch is available only in Windows Server 2008. It is not available in Windows Server 2008 R2.

2. Launching with Elevated Privileges

Many of the commands entered from the command prompt require elevated privileges, or administrative permissions. For example, if you wanted to stop and restart the netlogon service to re-create SRV records on a DNS server, you can use the following two commands:

sc stop netlogon
sc start netlogon

However, the first command fails with an Access Is Denied error similar to the following if the command isn’t executed from an elevated prompt:

c:\ >sc stop netlogon
[SC] OpenService FAILED 5:
Access is denied.

The solution is to launch the command prompt with administrator permissions by right-clicking the menu item or shortcut and selecting Run As Administrator.

Note

The command prompt starts in the windows\system32 folder by default when started with administrator permissions and includes Administrator in the title.


Figure 2 shows how to launch the command prompt with administrator permissions from the Start menu.

Figure 2. Launching the command prompt with Run As Administrator


Figure 3 shows the command prompt launched with administrator permissions. Notice that the title screen is changed from simply Command Prompt to Administrator: Command Prompt to let you know you have administrative permissions. Additionally, it starts in the windows\system32 folder instead of the user’s profile folder.

Figure 3. The command prompt window launched as an administrator

Tip

If you log on to the server with the administrator account, the command prompt is automatically started with administrator permissions.

 
Others
 
- Windows 8 : Settings and Customization - Settings
- Windows 8 : Settings and Customization - Control Panels
- Windows Server 2008 : Viewing and Manipulating the Install Mode with change user, Modifying Logon Capabilities with change logon, Connecting and Disconnecting Sessions with tscon and tsdiscon
- Windows Server 2008 : Remote Desktop Services - Adding the Remote Desktop Services Role
- Windows 8 : Configuring User and Computer Policies - Working with Logon and Startup Policies
- Windows 8 : Configuring User and Computer Policies - Working with Computer and User Script Policies
- Managing Windows Small Business Server 2011 : Using Windows Server 2008 R2 Tools (part 2)
- Managing Windows Small Business Server 2011 : Using Windows Server 2008 R2 Tools (part 1)
- Windows 8 : Configuring User and Computer Policies - Working with Access and Connectivity Policies
- Windows 8 : Configuring User and Computer Policies - Working with File and Data Management Policies
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us