#Requires -Version 5.1 <# JbTecWiz Support Centre -- read-only diagnostic Fault : The Teams Meeting button is missing from Outlook Source: https://jbtecwiz.com/support/win-office-teams-addin This script CHANGES NOTHING. It runs only the inspection commands from the write-up -- the Get-, Test- and Resolve- calls that establish which cause is in play -- and prints what each returned. Anything that writes, deletes, starts or stops is excluded by construction, not by judgement. Read the output alongside the write-up, then pick the fix that matches. Each fix has its own script on the same page. #> [CmdletBinding()] param([switch]$Transcript) $ErrorActionPreference = 'Continue' if ($Transcript) { $log = Join-Path $env:USERPROFILE ("jbtecwiz-win-office-teams-addin-" + (Get-Date -Format yyyyMMdd-HHmmss) + ".txt") Start-Transcript -Path $log | Out-Null Write-Host (' Saving a transcript to ' + $log) } function Write-Rule { param([string]$Text) Write-Host '' Write-Host ('-' * 70) -ForegroundColor DarkGray if ($Text) { Write-Host $Text -ForegroundColor Cyan } } function Probe { param([string]$Label, [string]$Fix, [scriptblock]$Command) Write-Rule (" " + $Label) Write-Host (" from: " + $Fix) -ForegroundColor DarkGray Write-Host '' foreach ($l in ($Command.ToString().Trim() -split "`n")) { Write-Host (" " + $l.Trim()) -ForegroundColor DarkGreen } Write-Host '' try { $out = & $Command 2>&1 | Out-String if ([string]::IsNullOrWhiteSpace($out)) { Write-Host ' (returned nothing)' -ForegroundColor DarkGray } else { foreach ($l in ($out.TrimEnd() -split "`n")) { Write-Host (" " + $l.TrimEnd()) } } } catch { Write-Host (" could not run: " + $_.Exception.Message) -ForegroundColor Yellow } } Write-Rule Write-Host ' The Teams Meeting button is missing from Outlook' -ForegroundColor White Write-Host ' Read-only diagnostic -- nothing is changed.' -ForegroundColor Green Write-Rule Probe -Label 'Confirm Outlook is not running elevated. An Outlook started as administrator will not load an add-in registered for the standard user.' -Fix 'Rule out the three conditions that silently prevent it loading' -Command { Get-Process OUTLOOK -IncludeUserName -ErrorAction SilentlyContinue | Select-Object Name, UserName } Probe -Label 'Confirm Teams and Office are the same architecture. A 32-bit Teams add-in will not load into 64-bit Outlook.' -Fix 'Rule out the three conditions that silently prevent it loading' -Command { Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration' | Select-Object Platform } Probe -Label 'Read the current LoadBehavior.' -Fix 'Re-enable an add-in that is listed but inactive' -Command { Get-ItemProperty 'HKCU:\Software\Microsoft\Office\Outlook\Addins\TeamsAddin.FastConnect' -ErrorAction SilentlyContinue | Select-Object LoadBehavior, Description } Probe -Label 'Verify: LoadBehavior still reads 3 after two restarts, and the button is present.' -Fix 'Re-enable an add-in that is listed but inactive' -Command { Get-ItemProperty 'HKCU:\Software\Microsoft\Office\Outlook\Addins\TeamsAddin.FastConnect' | Select-Object LoadBehavior } Probe -Label 'Check whether the add-in files are present before assuming they need reinstalling.' -Fix 'Make Teams register the add-in again' -Command { Get-ChildItem "$env:LOCALAPPDATA\Microsoft\TeamsMeetingAddin" -Recurse -Filter '*.dll' -ErrorAction SilentlyContinue | Select-Object FullName, LastWriteTime } Write-Rule Write-Host ' Diagnostic finished. Nothing was changed.' -ForegroundColor Green Write-Host '' Write-Host ' Compare the output above with the write-up, then run the' Write-Host ' script for the fix that matches:' Write-Host ' https://jbtecwiz.com/support/win-office-teams-addin' Write-Rule if ($Transcript) { Stop-Transcript | Out-Null }