How to start Microsoft Edge in private mode by PowerShell


This sample provides a script for IT pro or windows customers to quickly start Microsoft Edge in private mode by PowerShell.


Related Samples: 


IE, FireFox, Chrome, Opera and almost every browser lets you start in a private mode by default. Why not try it on Edge? Now you can call this script to start Microsoft Edge in private mode.


Just input the name of the script and Microsoft Edge will start in the private mode.



Here are some code snippets for your reference.


Start-Process -FilePath ($Env:WinDir + "\explorer.exe"-ArgumentList "shell:Appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" 
    Start-Sleep -Seconds 1 

Additional Resources

Converting the Windows Script Host SendKeys Method



Microsoft All-In-One Script Framework is an automation script sample library for IT Professionals. The key value that All-In-One Script Framework is trying to deliver is Scenario-Focused Script Samples driven by IT Pros' real-world pains and needs. The team is monitoring all TechNet forums, IT Pros' support calls to Microsoft, and script requests submitted to TechNet Script Repository. We collect frequently asked IT scenarios, and create script samples to automate the tasks and save some time for IT Pros. The team of All-In-One Script Framework sincerely hope that these customer-driven automation script samples can help our IT community in this script-centric move.