Starting Microsoft Edge in Incognito Mode via Command Line
If you’re a developer or an experienced user, you might find it useful to launch Edge Incognito mode via the command line, allowing you to integrate it into your scripts. This process is straightforward, and in this article, we will outline several methods to accomplish this task effortlessly.
How can I initiate Edge in Private Mode via the command line?
1. Command Prompt Method
- Begin by pressing the Windows key + S , then type cmd. Click on Command Prompt to open it.
- To launch a new InPrivate window, execute the following command:
start msedge.exe -inprivate
- If you wish to open a particular website, you can use:
start msedge.exe www.windowsreport.com -inprivate
Additionally, if you want to open a website in a new window, use the command: start msedge.exe www.windowsreport.com -inprivate –new-window
2. PowerShell Method
- Press Windows key + S , then enter powershell. Select PowerShell from the options provided.
- To open a blank InPrivate page, use this command:
Start-Process msedge.exe -ArgumentList "-inprivate"
- For a specific page, input:
Start-Process msedge.exe -ArgumentList "-inprivate", "windowsreport.com"
Of course, to initiate a new instance with a particular page open, you can run: Start-Process msedge.exe -ArgumentList "-inprivate", "-new-window" , "windowsreport.com"
How can I open Edge using CMD?
You can follow the same steps outlined in the first method, making sure to omit the -inprivate flag from your commands.
As demonstrated, launching Edge Incognito through the command line is quite simple, and you can do this efficiently using either PowerShell or Command Prompt.
Image Credits: Windowsreport.com
Leave a Reply