8 Ways to Run PowerShell as Administrator in Windows 11

To perform specific tasks with administrator privileges, it is often necessary to run PowerShell as administrator. PowerShell helps you to perform several tasks on your Windows PC, such as uninstalling programs, managing users and groups, accessing registry keys, managing network settings, etc. I will show you 8 ways to run PowerShell as administrator in Windows 11.

Run PowerShell as Administrator

Running PowerShell with administrator privileges can be useful in some situations when you need to troubleshoot or fix problems on a PC that regular users don’t have permission to fix. For example, you may need to access system logs or troubleshoot services. With that, let’s start with the article.

1. Open Powershell as Administrator using Windows Search

One of the easiest and most popular ways to open and run PowerShell as administrator in Windows 11 is to use the Windows search feature. Follow the steps below.

Step 1: Press the Windows key on your keyboard and type PowerShell in the search box.

type PowerShell

Step 2: Click ‘Run as Administrator’ from the right pane.

Note: Alternatively, you can also right click on PowerShell in the left pane and select ‘Run as administrator.’

Click 'Run as Administrator'

You will receive a UAC prompt asking for your consent; click Yes.

That’s it. PowerShell will open as administrator. If you don’t want to use the Windows Search feature to find and open PowerShell, you can do the same with the help of the Windows context menu. Read on.

2. How to start Powershell as Administrator using WinX

This method is much easier than the Windows search feature. However, this is not a widely used approach. Follow the steps mentioned below.

Step 1: Press ‘Windows Key + X’ on your keyboard.

See more:  What Happens When You Clear Chat on WhatsApp

Step 2: From the context menu, select Terminal (Admin).

select Terminal (Admin)

Step 3: In the UAC prompt, click Yes.

Your go. You have launched PowerShell in administrator mode. If you’ve been to some Command Prompt or in any other terminal, click the Chevron icon (arrow) at the top of the tab and select PowerShell. Sound too complicated? Move on to the next method.

3. Run Powershell Script as Administrator from Start Menu

The steps of this method are very simple and easy to understand. We will be using Windows Tools to do this method. Follow the instructions below.

Step 1: Press the Windows key on your keyboard and click All Apps.

Click All Apps

Step 2: Scroll down and click Windows Tools.

click on Windows Tools

Step 3: In the Windows Tools window, scroll down and right-click Windows PowerShell. From the context menu, select ‘Run as administrator.’

go to Windows PowerShell

Step 4: In the prompt, click Yes.

Your go. You can now work on PowerShell with administrator privileges. If you want to know another way, move on to the next method.

4. Use Task Manager to start Powershell as Administrator

The Task Manager is commonly used to manage applications, but it can also be used to run a new task, meaning it has the ability to open PowerShell. Follow the steps below.

Step 1: Press ‘Ctrl + Shift + Esc’ on your keyboard to open Task Manager.

Note: You can also search for Task Manager using Windows Search.

Press 'Ctrl + Shift + Esc' on your keyboard

Step 2: Click the ‘Run New Task’ button.

Click the 'Run New Task' button

It will open the ‘Create New Task’ dialog.

Step 3: Enter PowerShell in the text field, check the box next to ‘Create this task with admin rights’ and click OK.

Type PowerShell in the text field

There you have it. It will open PowerShell with administrative privileges without going through any complications.

5. How to Open Powershell as Administrator with Run Command Box

After searching on Windows, one of the most common ways to access PowerShell with administrator privileges is to use the Run command. Follow the instructions below.

Step 1: Press ‘Windows Key + R’ on your keyboard to open the Run dialog box.

Note: Alternatively, you can press the Windows key on your keyboard and type Run.

open the Run dialog

Step 2: Enter PowerShell and click OK.

See more:  How To Fix Google Photos Your Device’s Trash is Full Error

Enter PowerShell

This will open Windows PowerShell with the current user’s permissions.

Step 3: To switch from normal mode (current user) to administrator mode, type the command below and press Enter.

Powershell Start-Process -Verb runAs

To switch from normal mode to administrator mode

In the UAC prompt, click Yes.

That’s it. You have opened Windows PowerShell with administrative rights. If the steps above seem complicated, move on to the next step.

6. How to Run Powershell as Administrator from Cmd

There are many things that can be done using the Command Prompt, including opening PowerShell. Follow the steps below.

Step 1: Press the Windows key, type Command prompt and click ‘Run as administrator.’

type Command Prompt

In the prompt, click Yes.

Step 2: In the Command Prompt window, type PowerShell and press Enter.

type PowerShell

Tip: If you are confused, check out our guide to understand the difference between Command Prompt and Powershell.

That’s it. You have successfully opened PowerShell with administrative rights. If the steps are long for you, then move on to the next method.

7. How to Create a PowerShell Admin Shortcut on Your Desktop

If the above methods are long and tedious for you, then this method might be your only stop. After setting everything up, you can double-click and open PowerShell as administrator. Let’s start with the steps.

Step 1: Right click on your Windows desktop, go to New and select the Shortcut option.

Right click on the Windows desktop

Step 2: In the Create Shortcut window, type the path below and click Next.

Note: Select the bit version your Windows is running on.

For 32-bit Windows operating systems

C:\Windows\System32\WindowsPowerShell\v1.0

For 64-bit Windows operating systems

C:\Windows\SysWOW64\WindowsPowerShell\v1.0

Type the link below

Step 3: In the next screen, give the shortcut a name and click Finish.

Example: PowerShell Admin

name the shortcut

Step 4: Now, right-click on the newly created shortcut and select the Properties option from the context menu.

select the Properties option from the context menu

Step 5: In the Shortcut tab, click the Advanced button.

click the Advanced button

Step 6: In Advanced Properties, check the ‘Run as administrator’ option and click OK.

check the 'Run as administrator' option

Step 7: Finally, click Apply, then OK.

click Apply and OK

That’s it. You have successfully created a PowerShell shortcut that, whenever opened, opens with administrator privileges. That means if you are working on PowerShell and want to switch from current user rights to admin rights, move on to the next method.

See more:  Schubert Location in Tower of Fantasy

8. Switch from PowerShell to PowerShell Admin

Sometimes you start adding commands only to realize that you opened PowerShell without administrator privileges. You have two choices: close Windows and open PowerShell with admin rights, or follow the steps below to switch to admin rights with just one command quickly.

Just type the command below and press Enter.

Powershell Start-Process -Verb runAs

Switch from PowerShell to PowerShell Admin

The above command will open a new PowerShell instance with administrator privileges and you can continue your work without starting over. If you have any questions, check out the FAQ section below.

FAQ about Running PowerShell as Administrator in Windows 11

1. Does Windows PowerShell run in administrator mode by default?

Windows PowerShell does not run in administrator mode by default. When you launch PowerShell, it will run with the permissions of the currently logged in user.

2. How do I know if PowerShell is running as administrator?

There are several ways you can determine if PowerShell is running as administrator. You can do this by checking the PowerShell window title or the PowerShell execution policy. One of the easiest ways to determine this is to check the user account control (UAC) prompt.

Quick access to PowerShell with administrative rights

Whether you are an advanced user or need to open PowerShell to manage the system or perform some specific tasks, running it as an administrator can help you get the most out of the tool. Now that you know how to access PowerShell as an administrator, you may also want to know how to quickly make a user an administrator on Windows 11.

Categories: How to
Source: thpttranhungdao.edu.vn/en/

Rate this post

Leave a Comment