How to launch Edge -inprivate by default

IE, FireFox, Chrome, Opera and almost every other browser lets you start in a private mode by default. Why not Edge? Well there is an app for that. Download Autohotkey and save the below script as Edge-InPrivate.ahk:

; Run MSEdge, sleep 1s, press ctrl+shift+p to open inprivate window, sleep 1s, close original window 
Menu, Tray, Icon, %windir%\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe
Run, %windir%\explorer.exe shell:Appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge
Sleep, 1000
Send, ^+p
Sleep, 1000
WinClose, New tab

Now you can just double-click the .ahk file to start Edge with inprivate mode. Or right-click the .ahk file and in the menu choose “compile script”. Then drag the resulting .exe to the taskbar to pin it. If an extra Edge Windows stays open when running the .exe., change your Edge settings as follows:

  • click the ellipsis icon (…) in top-right corner
  • click Settings
  • click the “Open Microsoft Edge with” drop-down box and select “New tab page”

If you find the delay until the inprivate window is active too long, try changing the “1000” milliseconds in the script to “500”. Slower systems need a longer delay; so if you find the Edge window disappearing, try setting it to “1500”.

I wasn’t able to get the ahk2exe compiler to include the proper Edge icon by default and found the default big green H icon a little ugly. So I created a pretty Edge icon on the taskbar as follows:

  • right-click the newly created .exe file and choose “create shortcut”
  • edit the shortcut to have an Edge icon instead of an ugly green H
    • right-click the new shortcut and goto “Properties”
    • Click “Change Icon…”
    • In the dialog box, paste: %windir%\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe
    • Click OK
    • Click OK again
  • drag the new shortcut onto the taskbar
  • right-click the old edge taskbar icon and select “Unpin from taskbar”

Thanks to Gemwag for the original idea behind this article.


One thought on “How to launch Edge -inprivate by default

Add yours

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a website or blog at

Up ↑

%d bloggers like this: