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.
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 1. Open Powershell as Administrator using Windows Search
- 2 2. How to start Powershell as Administrator using WinX
- 3 3. Run Powershell Script as Administrator from Start Menu
- 4 4. Use Task Manager to start Powershell as Administrator
- 5 5. How to Open Powershell as Administrator with Run Command Box
- 6 6. How to Run Powershell as Administrator from Cmd
- 7 7. How to Create a PowerShell Admin Shortcut on Your Desktop
- 8 8. Switch from PowerShell to PowerShell Admin
- 9 FAQ about Running PowerShell as Administrator in Windows 11
- 10 Quick access to PowerShell with administrative rights
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.
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.’
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.
Step 2: From the context menu, 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.
Step 2: Scroll down and click Windows Tools.
Step 3: In the Windows Tools window, scroll down and right-click Windows PowerShell. From the context menu, select ‘Run as administrator.’
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.
Step 2: 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.
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.
Step 2: Enter PowerShell and click OK.
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
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.’
In the prompt, click Yes.
Step 2: In the Command Prompt window, type PowerShell and press Enter.
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.
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
Step 3: In the next screen, give the shortcut a name and click Finish.
Example: PowerShell Admin
Step 4: Now, right-click on the newly created shortcut and select the Properties option from the context menu.
Step 5: In the Shortcut tab, click the Advanced button.
Step 6: In Advanced Properties, check the ‘Run as administrator’ option and click OK.
Step 7: Finally, click Apply, then 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.
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
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/