Skip to content

Instantly share code, notes, and snippets.

@Tyrrrz
Created September 26, 2022 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tyrrrz/1a3331965e5cde6122aa27a79b5b9bf5 to your computer and use it in GitHub Desktop.
Save Tyrrrz/1a3331965e5cde6122aa27a79b5b9bf5 to your computer and use it in GitHub Desktop.
Start Google Chrome with a disposable profile
$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