Created
September 26, 2022 20:44
-
-
Save Tyrrrz/1a3331965e5cde6122aa27a79b5b9bf5 to your computer and use it in GitHub Desktop.
Start Google Chrome with a disposable profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$profileDirPath = New-TemporaryFile | %{ Remove-Item $_; New-Item -ItemType Directory $_ } | |
Start-Process "c:/Program Files/Google/Chrome/Application/chrome" -ArgumentList "--user-data-dir=$profileDirPath" -Wait | |
Remove-Item $profileDirPath -Recurse -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment