Can Microsoft-Edge be launched in "Private Mode" through the command line?

I'm using this shell command to launch it with a specific URL:

start microsoft-edge:www.google.com

Is there some kind of flag to lauch Edge in "Private Mode"?

I would like to run in in c#, something like:

Process.Start("microsoft-edge:www.google.com", "-privateMode");

This is not possible at present, however - something like the following in powershelkl may work for you:

& cmd /c start microsoft-edge:https://www.google.com
start-sleep -Seconds 5
[void] [System.Reflection.Assembly]::LoadWithPartialName("'Microsoft.VisualBasic")
[Microsoft.VisualBasic.Interaction]::AppActivate("Microsoft Edge")

[void] [System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")

You can create a shortcut to execute this (PowerShell.exe -File C:\users\me\desktop\thisscript.ps1) and you will have a shortcut to launch in private mode

|improve this answer|||||

Two years later, we have found a solution:

%windir%\System32\cmd.exe /c start shell:AppsFolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge -private http:\\google.com

|improve this answer|||||
  • Why bother specifying a full path for cmd?  Do you need to use backslashes in the URL? – Scott Jul 7 '19 at 3:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.