How to Start Edge Incognito Using The Command Line

This can be done from Command Prompt and PowerShell

Reading time icon 2 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

edge incognito command line

Developers and advanced users might want to start Edge Incognito using a command line and use it in their scripts. This is simple to do, and in today’s guide, we’ll show you a couple of methods you can use to achieve that.

How do I open Edge in Private Mode using the command line?

1. Use Command Prompt

  1. Press the Windows key + S and type cmd. Select Command Prompt.
    run as administrator
  2. Run the following command to open the InPrivate window: start msedge.exe -inprivate
     msedge inprivate cmd
  3. To open a specific website run: start msedge.exe www.windowsreport.com -inprivate
    msedge url inprivate cmd

You can also use –new-window parameter to open another instance like this: start msedge.exe www.windowsreport.com -inprivate –new-window

2. Use PowerShell

  1. Press Windows key + S and type powershell. Select PowerShell from the list.
    open powershell as administrator
  2. You can run the following command to open a blank page InPrivate mode: Start-Process msedge.exe -ArgumentList "-inprivate”
    start-process msedge powershell
  3. To open a specific page, use: Start-Process msedge.exe -ArgumentList "-inprivate", "windowsreport.com"
    start-process msedge url

Of course, you can open a new instance with the following command: Start-Process msedge.exe -ArgumentList "-inprivate", “-new-window”, "windowsreport.com"

How do I open Edge in CMD?

You can do that by following the steps from our first solution, just be sure to exclude the -inprivate parameter in your commands.

As you can see, it’s pretty simple to start Edge Incognito using the command line, and you can do that from both PowerShell and Command Prompt in a matter of moments.

This isn’t the only browser that can do this, and we have a great guide on how to launch Firefox Incognito using the command line.

If you plan to stick to Edge, don’t miss our guide on how to allow Edge extensions to run in InPrivate mode.

More about the topics: command prompt, microsoft edge, Private browsing

User forum

0 messages