locked
How to start Microsoft Edge in private mode from command line RRS feed

  • Question

  • How to start Microsoft Edge in private mode from command line?
    Monday, August 31, 2015 5:54 AM

Answers

  • © ウィンドウズスクリプトプログラマ - Windows Script Programmer 2018
    FYI
    C:\Windows\System32\cmd.exe /c start shell:AppsFolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge -private https://answers.microsoft.com/ja-jp/edge/forum/edge_extension-edge_win10/microsoft/800a518a-5fec-4dc1-ab3c-867fc51a7b6a#LastReply

    • Marked as answer by jha.amit6666 Saturday, February 3, 2018 7:46 AM
    Sunday, January 21, 2018 3:40 PM

All replies

  • Hi jha.amit6666,

    As far as I know Microsoft Edge in private mode is not available currently. You could look in the following article as they are for other browser you could try with edge to look that works or not. Hope this helps you.

    1. IE Command-Line Options

    https://msdn.microsoft.com/en-us/library/hh826025%28v=vs.85%29.aspx

    2. You could try doing following:

    > Right click on the Edge icon on task bar

    > Select properties

    > GoTo Shortcut tab

    > In "Target" after the file location add on of the following

               "-private"

               "-incognito"

               "-newprivatetab"

    Example: "C:\Program FIles\Internet Explorer\iexplore.exe" -private

    Thanks,

    Sabah Shariq

    Thursday, September 10, 2015 3:48 PM
  • Friday, September 11, 2015 6:50 AM
  • © ウィンドウズスクリプトプログラマ - Windows Script Programmer 2018
    FYI
    C:\Windows\System32\cmd.exe /c start shell:AppsFolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge -private https://answers.microsoft.com/ja-jp/edge/forum/edge_extension-edge_win10/microsoft/800a518a-5fec-4dc1-ab3c-867fc51a7b6a#LastReply

    • Marked as answer by jha.amit6666 Saturday, February 3, 2018 7:46 AM
    Sunday, January 21, 2018 3:40 PM
  • No, it didn't work.
    Friday, January 26, 2018 11:27 AM
  • © ウィンドウズスクリプトプログラマ - Windows Script Programmer 2018

    It opens

    Friday, January 26, 2018 4:49 PM
  • Worked great for me. Thanks
    Monday, January 29, 2018 12:57 PM
  • Updated my windows. Now it worked.
    Saturday, February 3, 2018 7:46 AM
  • Thanks!  This will be a big help when trying to launch Edge from Visual Studio.
    Thursday, March 15, 2018 2:38 PM
  • Or else, we can also have it as shortcut, or in taskbar...
    Sunday, March 18, 2018 6:33 PM
  • Running Microsoft Edge from command line does not seem to work when trying to connect to an SSO-enabled HTTPS site and needing to run as a different user.  

    Scenario:

    My organization uses separate accounts for elevated privileged actions.  It is not practical for me to login to Windows as that separate account.  Therefore, I'm attempting to run as a different user to perform administrative-actions.  I've been following the below process using Microsoft Internet Explorer 11 without issue.  However, I cannot make this work when using Microsoft Edge.

    Process I'm following:

    Running PowerShell as a different user than the one logged into Windows.

    Run 'Start-Process PowerShell -Verb RunAs' to open a PowerShell window with Administrator-level access as that different user.

    Enter the following command:

    C:\Windows\System32\cmd.exe /c start shell:AppsFolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge -private https://portal.azure.com

    This results in Microsoft Edge automatically logging me in as my Windows account, not the different user account I need.  

    As I mentioned before, if I enter the following command using IE 11, it works:

    "C:\Program Files\Internet Explorer\iexplore.exe" "https://portal.azure.com"

    Suggestions on how to get this to work using Microsoft Edge?


    • Edited by 2c00L Wednesday, June 27, 2018 4:51 PM
    Wednesday, June 27, 2018 4:50 PM
  • When I enter the above in my win10 October 2018 1809 (OS Build 17764.194) install it takes me to a new tab in my existing running instance of edge with my default search engine returning results for "-private". Is this still working for others?
    Wednesday, December 12, 2018 5:30 PM
  • its changed now in 1809 build
    Sunday, December 30, 2018 10:42 AM
  • © ウィンドウズスクリプトプログラマ - Windows Script Programmer 2019

    1809 start command has bugs.

    The following edge-private.vbs does not use start command. It is not tested on 1809 because my pc is still 1803.
    Call CreateObject("Shell.Application").ShellExecute("shell:appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge","-private https://support.microsoft.com/ja-jp",Null,"open",1)

    Wednesday, February 27, 2019 2:31 AM
  • I just tried the above vbs Shell.Application ShellExecute option on the current windows 10 1904, aka april 2019 update, build 18346.1 environment and it works. Thanks.
    • Edited by myusrn Wednesday, February 27, 2019 4:24 AM
    Wednesday, February 27, 2019 4:23 AM
  • © ウィンドウズスクリプトプログラマ - Windows Script Programmer 2019
    Thanks.

    This edge-private-lnk.vbs makes a shortcut(.lnk) file to open edge private mode.

    Set wShell=CreateObject("WScript.Shell")
    Set Link=wShell.CreateShortCut("Edge -private.LNK")
    Link.TargetPath="shell:appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge"
    Link.Arguments="-private https://support.microsoft.com/ja-jp"
    Link.Save

    Wednesday, February 27, 2019 6:52 AM
  • ability to create InPrivate shortcut nice option as well, thanks.
    Wednesday, February 27, 2019 7:58 PM