Skip to content

Instantly share code, notes, and snippets.

@prom3theu5
Created May 24, 2022 17:48
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 prom3theu5/02c3610bfda6d87674a74aebcda98abc to your computer and use it in GitHub Desktop.
Save prom3theu5/02c3610bfda6d87674a74aebcda98abc to your computer and use it in GitHub Desktop.
2nd instance of teams
@ECHO OFF
REM Uses the file name as the profile name
SET MSTEAMS_PROFILE=%~n0
ECHO - Using profile "%MSTEAMS_PROFILE%"
SET "OLD_USERPROFILE=%USERPROFILE%"
SET "USERPROFILE=%LOCALAPPDATA%\Microsoft\Teams\CustomProfiles\%MSTEAMS_PROFILE%"
ECHO - Launching MS Teams with profile %MSTEAMS_PROFILE%
cd "%OLD_USERPROFILE%\AppData\Local\Microsoft\Teams"
"%OLD_USERPROFILE%\AppData\Local\Microsoft\Teams\Update.exe" --processStart "Teams.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment