Windows PowerShell is a powerful command-line shell and scripting language that administrators can use to manage their Windows 10 systems. Administrators can open Windows PowerShell as an admin by following these steps:
- Open the Start menu and search for “PowerShell.”
- When the “PowerShell” app appears, click on it to open it.
- In the “PowerShell” window, click on the “File” tab and then click on the “Open” button.
- In the “Open File Location” dialog box, navigate to where you want to save the Windows PowerShell script file and then click on the “Open” button.
- In the Windows PowerShell window, type in a name for your script file (for example, “WindowsPowerShellAdmin”) and then press Enter.
- To run your script file, type its name (for example, “WindowsPowerShellAdmin”) into the Windows PowerShell window’s command prompt and press Enter. ..
Almost everything you need to do in Windows PowerShell you can do in a normal window. However, you’ll occasionally have to open PowerShell as an admin to run certain commands that require you to have elevated privileges. Here’s how.
Use Windows Search
You can quickly launch Windows PowerShell as an admin from the Windows Search bar. In the Search bar, type “Windows PowerShell.” Next, right-click the Windows PowerShell app in the search results, and then click “Run as Administrator” in the menu that appears.
Windows PowerShell will then launch in admin mode.
Use the Power User Menu
You can also launch Windows PowerShell as an admin from the Windows Power User menu. To access the Power User menu, right-click the Start menu (Windows icon) in the bottom-left corner of the desktop.
The Power User menu will appear. Here, click “Windows PowerShell (Admin).”
Windows PowerShell will now launch in admin mode.
RELATED: How PowerShell Differs From the Windows Command Prompt
Use the Run Application
You can open Windows PowerShell with administrator privileges from Run. First, press Windows+R to open Run, and then type “powershell” in the text box. Next, press Ctrl+Shift+Enter.
Windows PowerShell will open in admin mode.
Switch from PowerShell to PowerShell Admin
If you’re already working in PowerShell but you need to switch over to admin mode, you can do so without closing PowerShell. Just run this command:
A new instance of PowerShell will open with admin privileges.
That’s all there is to it. If you use Command Prompt more often than you use PowerShell, then you might often find yourself in a similar situation. No worries, though. You can easily open Command Prompt as an admin, too.
RELATED: How to Open the Command Prompt as Administrator in Windows 8 or 10