Skip to content

What Is PowerShell on Windows?

PowerShell is a safe, built-in Windows tool for running text commands. Learn why it is on your computer, why it might pop up, and when to close it.

Phones and ComputersNovember 11, 20265 min read

If a website, pop‑up, or caller told you to open PowerShell or press the Windows key and R, do not do it. Close the window or hang up right away.

Windows PowerShell is a real Microsoft tool that comes built into every modern Windows computer1. It is not a virus. Most people never need to open or use it.

What PowerShell does

Normally, you use your computer by clicking icons, buttons, and menus with your mouse. PowerShell is a command shell, which is a plain blue or black window where people type text instructions instead of clicking buttons. (Apple computers have a similar built-in tool called the Mac Terminal.)

Computer technicians and advanced users use PowerShell to change settings and run scripts. A script is a saved list of instructions that automates a chore, like setting up a new computer or updating several programs at once. On Windows 11, PowerShell often opens inside a Microsoft app called Windows Terminal2.

Windows comes with Windows PowerShell 5.1 already installed3. Microsoft also makes a newer, separate version called PowerShell 7 for people who write scripts for a living. If you see a message inside PowerShell asking you to install the newer version, you can ignore it and close the window.

Why it matters

Because PowerShell can change deep computer settings and download files, scammers sometimes try to trick you into running a command for them.

The most common trick is a fake “Verify you are human” box on a website4. When you click the box, the website quietly copies a harmful PowerShell command onto your clipboard (the temporary memory your computer uses when you copy and paste). The screen then tells you to press Windows + R, press Ctrl + V to paste, and press Enter.

Not secureWeb address: verify-human-check.example

Verify you are human

Checked: I'm not a robot

Verification steps

  1. 1.Press Windows Key + R
  2. 2.Press CTRL + V
  3. 3.Press Enter

Red flags in this check

A real security check on a website will never ask you to press keys to open a box on your computer or paste text. If you follow those steps, PowerShell can install an infostealer, which is harmful software that copies your saved passwords and banking details.

Phone scammers who ask you to install remote access software may also open PowerShell once they are connected, to make their changes harder to remove.

Why a PowerShell window pops up on its own

Sometimes you might see a blue or black PowerShell window flash on your screen for a second when you turn on your computer, and then close by itself.

Most of the time, this is harmless. Printer software, computer brand update tools (such as HP, Dell, or Lenovo helpers), and other normal programs often use a quick PowerShell script to check for updates in the background. When they finish, the window closes.

In rarer cases, if PowerShell keeps popping up at random times or stays open trying to connect to the internet, a harmful program may be using it.

What to do

What you should do depends on why you are seeing PowerShell.

  1. If a website, email, or caller told you to open PowerShell or press Windows + R: Stop and close the web page or hang up. Never paste text from a website or email into PowerShell or the Windows Run box.

  2. If you just noticed PowerShell in your Start menu: Leave it alone. It is a normal part of Windows, and trying to delete it can break other parts of your computer.

  3. If a PowerShell window flashes open when you start your computer: Check which programs are set to run at startup. Right-click the taskbar at the bottom of your screen and click Task Manager. Click Startup apps (on Windows 10, click the Startup tab). Look through the list for any program you do not recognize, right-click it, and click Disable.

  4. If PowerShell keeps popping up and you cannot explain why: Run a full virus scan. Open the Start menu, type Windows Security, and press Enter. Click Virus & threat protection, then click Scan options. Choose Full scan and click Scan now. A full scan checks every file on your computer and can take an hour or more.

Common questions

Is PowerShell pre-installed on all Windows computers?

Yes. Microsoft has included Windows PowerShell by default on every Windows computer since Windows 7. Finding it on your computer does not mean you have been hacked.

Why is PowerShell asking me to install a new version?

The version built into Windows is Windows PowerShell 5.1. When it opens, it often shows a standard message from Microsoft letting advanced users know that a newer, optional version (PowerShell 7) is available. You do not need to install it. Just close the window.

My antivirus flagged powershell.exe. Should I delete it?

No. Do not delete powershell.exe itself, because it is an official Microsoft file. When your security software flags PowerShell, it means it caught a bad script trying to use PowerShell. Let Windows Security quarantine or remove the bad script.

Our guides on phone and computer safety can help you keep your machine running smoothly and spot problems early.

For more information

  1. Is Powershell present in all Windows OS by default - Microsoft Q&Alearn.microsoft.com
  2. Command Prompt and Windows Powershell | Microsoft Supportsupport.microsoft.com
  3. What is Windows PowerShell? - PowerShell | Microsoft Learnlearn.microsoft.com
  4. How to spot a CAPTCHA scam - FTC Consumer Adviceconsumer.ftc.gov

Keep reading

More in Phones and Computers

What Is the Mac Terminal?

Terminal is a built-in Mac app that uses text commands instead of buttons. Learn why it looks like a plain window and when to close it.

DefinitionTech Support Scams

What Is an Infostealer?

An infostealer is harmful software that quietly copies saved passwords and account details from your computer. Learn how it gets in and what to do.

DefinitionPhones and Computers

What Is Remote Access Software?

Remote access software like AnyDesk or TeamViewer lets someone see and control your screen. Learn how it works and why scammers ask you to install it.

DefinitionTech Support Scams