New Teams prompting "The parameter is incorrect" error.

Anonymous
2023-11-28T13:43:19+00:00

New Teams has been advertising itself to many of my users. Majority of the company has made the switch, but others are running into a parameter error. Strange bit is, I can get it to work for about 5 days. Afterwards, I'm guessing an update takes place, and New Teams refuses to open and throws a parameter error. I've tried reinstalling the application multiple times and downloading the app installer. Nothing seems to work.

C:\ProgramFiles\WindowsApps\MSTeams_23285.3607.2535.937_x64__8wekyb3d8bbwe\ms-teams.exe

The parameter is incorrect.

Microsoft Teams | Microsoft Teams for business | Meetings and calls | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

56 answers

Sort by: Oldest
  1. Anonymous
    2024-04-29T13:32:04+00:00

    No real solution. The error has mostly gone away, although it does return on occasion. We updated to the latest version of New Teams. I would say that for the most part, THIS error has gone away. There are other issues that continue, but this is mostly gone.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-04-30T11:28:32+00:00

    To resolve this, I typically delete the Teams Machine-Wide Installer and then reinstall it. Once I've completed the reinstallation process, I install it again. This method has consistently resolved the issue for me.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-05-02T12:53:06+00:00

    For anyone with this issue, there is a fix you can apply until Microsoft pull their finger out.

    This parameter it is referring to is the "autostart teams" checkbox. Even unticking it (if it even lets you as most of the time you cannot even interact with it) will not work and it instead needs to be done via regedit.

    I have made a GPO that does two things, the first being amending or deleting the following keys and folders:

    REGISTRY

    COMPUTER LEVEL

    DELETE

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32

    Value name: Teams

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32

    Value name: TeamsMachineInstaller

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\StartupFolder

    Value name: Microsoft Teams (work or school).lnk

    USER LEVEL

    UPDATE

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run

    Value name: com.squirrel.Teams.Teams

    Value type: REG_BINARY

    Value data: 01100000a9a989ca3496da01

    HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\MSTeams_8wekyb3d8bbwe\TeamsTfwStartupTask

    Value name: state

    Value type: REG_DWORD

    Value data: 0

    FOLDERS

    DELETE

    Folder path: %userprofile%\AppData\Roaming\Microsoft\Teams

    Folder path: %userprofile%\AppData\Roaming\Microsoft\MsTeams

    The second being running a powershell script OnLogon, you may need to amend it to match your specific environment setup:

    # Define the path to the WindowsApps folder
    $windowsAppsPath = "C:\Program Files\WindowsApps"
     
    # Get all folders in the WindowsApps directory starting with "MSTeams_"
    $teamsFolders = Get-ChildItem -Path $windowsAppsPath -Directory -Filter "MSTeams_*"
     
    # Initialize variables to hold the highest version number and corresponding folder
    $highestVersion = "0.0.0.0"
    $latestFolder = $null
     
    # Loop through each folder
    foreach ($folder in $teamsFolders) {
        # Extract the version number from the folder name
        $version = [System.Version]::new(($folder.Name -split "_")[1])
     
        # Compare the version number with the highest version found so far
        if ($version -gt $highestVersion) {
            $highestVersion = $version
            $latestFolder = $folder.FullName
        }
    }
     
    # Output the path of the folder with the highest version number
    if ($latestFolder -ne $null) {
        $exePath = Join-Path -Path $latestFolder -ChildPath "ms-teams.exe"
        if (Test-Path $exePath) {
            Start-Process -FilePath $exePath
            Write-Output "Microsoft Teams launched."
     
            # Get the current user's desktop folder
            $desktopPath = [Environment]::GetFolderPath("Desktop")
            # Define the shortcut file path
            $shortcutPath = Join-Path -Path $desktopPath -ChildPath "Microsoft Teams.lnk"
            # Check if the shortcut already exists
            if (Test-Path $shortcutPath) {
                # If exists, delete the existing shortcut
                Remove-Item $shortcutPath -Force
                Write-Output "Existing shortcut replaced."
            } else {
                Write-Output "Shortcut created."
            }
            # Create the new shortcut
            $WScriptShell = New-Object -ComObject WScript.Shell
            $Shortcut = $WScriptShell.CreateShortcut($shortcutPath)
            $Shortcut.TargetPath = $exePath
            $Shortcut.Save()
            Write-Output "Shortcut created on desktop."
        } else {
            Write-Output "ms-teams.exe not found in the latest folder."
        }
    } else {
        Write-Output "No Teams folder found."
    }
    

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-05-02T17:03:36+00:00

    For everyone's benefit, the only way to address this issue "the parameter is incorrect" at the root, is to use FSLogix Hotfix 4, which is now planned for GA on May 14th:

    https://techcommunity.microsoft.com/t5/fslogix-blog/announcing-release-date-for-fslogix-2210-hotfix-4/ba-p/4129512

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-05-06T14:33:37+00:00

    For everyone's benefit, the only way to address this issue "the parameter is incorrect" at the root, is to use FSLogix Hotfix 4, which is now planned for GA on May 14th:

    https://techcommunity.microsoft.com/t5/fslogix-blog/announcing-release-date-for-fslogix-2210-hotfix-4/ba-p/4129512

    Hi Fernando,

    This may be a bit of a longshot asking this here, but would this fix, or a parallel version, available to be implemented in Citrix’s profile management solution?

    Many thanks from a previous colleague.

    Steve

    Was this answer helpful?

    0 comments No comments