Arthur
08/28/2024, 10:06 AMJames Rankin
08/28/2024, 10:09 AMArthur
08/28/2024, 10:10 AMAaron Parker
08/28/2024, 10:49 AMAaron Parker
08/28/2024, 10:49 AMJames Rankin
08/28/2024, 11:31 AMDennis
09/03/2024, 12:07 PM# Register MS Teams AppX Package for user
Add-AppPackage -Register -DisableDevelopmentMode "$ENV:TeamsVersionPath\AppXManifest.xml" -EA SilentlyContinue
# Define the json file location
$TeamsConfig = "$ENV:LocalAPPDATA\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\app_settings.json"
# Make a backup of the json file
Copy-Item -Path $TeamsConfig -Destination "$TeamsConfig.bak" -Force
# Read the content
$jsonContent = Get-Content -Path $TeamsConfig -Raw
# Replace the values
$jsonContent = $jsonContent -replace '"open_app_in_background":true', '"open_app_in_background":false'
$jsonContent = $jsonContent -replace '"keep_app_running_on_close":true', '"keep_app_running_on_close":false'
# Save the modified json file
Set-Content -Path $TeamsConfig -Value $jsonContent -Force