File open Preference set "open in app" for all users

Sarah 21 Reputation points
2022-01-26T21:58:16.627+00:00

Hi all,

MSTeams has a setting for File open Preference. The setting allows the option to "Always open Word, Powerpoint, and Excel files in:" 1) Teams, 2) Desktop App and 3) Browser.

Is there a Group Policy or PowerShell command which can set this for "All Users" to open in the "Desktop App"?

Thanks in advance,

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,213 questions
{count} votes

Accepted answer
  1. Yuki Sun-MSFT 40,871 Reputation points
    2022-01-27T07:46:46.98+00:00

    Hi @Sarah ,

    Is there a Group Policy or PowerShell command which can set this for "All Users" to open in the "Desktop App"?

    I am afriad no, as indicated in this document, this is a user preference setting, so per my understanding it can only be controlled by users themselves.

    Below is a blog which mentioned about this:
    New Option to Control How Teams Clients Open Office Documents
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. EBJL 10 Reputation points
    2024-03-13T14:33:02.98+00:00

    Bit of a necro, but thanks to @Vincent Lafond I managed to find this for New Teams as well. In %localappdata%\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams there is a app_settings.json file that stores this setting. Close Teams and run the following Powershell script in user context:

    # Set the working directory  
    Set-Location -Path "$env:localappdata\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams"  
      
    # Load the JSON file  
    $json = Get-Content 'app_settings.json' | ConvertFrom-Json  
      
    # Modify the JSON file  
    $json.open_file_in_desktop_app = $true  
      
    # Save the changes back to the JSON file  
    $json | ConvertTo-Json -Depth 20 | Set-Content 'app_settings.json' 
    
    

    Start teams again and the setting will be set to "Desktop App".

    2 people found this answer helpful.