Created
May 19, 2020 12:47
-
-
Save kungfux/a870fa3ac806391b47a2d72804910925 to your computer and use it in GitHub Desktop.
Run second copy of Microsoft Teams to use different account on the same PC
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
| @ECHO OFF | |
| REM Use filename as Teams 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