0
0
PowershellHow-ToBeginner · 3 min read

How to Open PowerShell Quickly and Easily

To open PowerShell, click the Start menu and type PowerShell, then press Enter. Alternatively, press Win + R, type powershell, and hit Enter to launch it quickly.
📐

Syntax

There is no complex syntax to open PowerShell from the user interface, but you can launch it using the Run dialog or command prompt with the command below.

  • powershell: Opens the default PowerShell console.
  • powershell -NoExit: Opens PowerShell and keeps the window open after running commands.
  • powershell -Command <command>: Runs a specific command and then closes.
powershell
powershell
💻

Example

This example shows how to open PowerShell using the Run dialog and then run a simple command inside it.

powershell
Start-Process powershell -ArgumentList '-NoExit', '-Command', 'Get-Date'
Output
Thursday, June 06, 2024 10:00:00 AM
⚠️

Common Pitfalls

Some common mistakes when opening PowerShell include:

  • Typing PowerShell with incorrect capitalization in some older systems (case-insensitive but best to use lowercase).
  • Trying to open PowerShell from the command prompt without typing powershell explicitly.
  • Not running PowerShell as administrator when elevated permissions are needed.

To run as administrator, right-click the PowerShell icon and select Run as administrator.

powershell
powershell
# Wrong: just typing 'ps' won't open PowerShell

powershell
# Correct: type 'powershell' to open it
📊

Quick Reference

MethodHow to Use
Start MenuClick Start, type 'PowerShell', press Enter
Run DialogPress Win + R, type 'powershell', press Enter
Command PromptType 'powershell' and press Enter
Run as AdminRight-click PowerShell icon, select 'Run as administrator'

Key Takeaways

Open PowerShell by typing 'powershell' in the Start menu or Run dialog.
Use 'Win + R' then 'powershell' for a quick launch.
Right-click and choose 'Run as administrator' for elevated access.
Typing 'powershell' in Command Prompt switches to PowerShell.
Remember to use correct commands to keep the window open or run scripts.