Office 365 repair remotely with Powershell

You can use PS remoting to almost everything – like fixing Outlook

1
2
3
4
5
6
7
$cred = Get-Credential
Enter-PSSession *computername* -cred $cred
cd 'C:\Program Files\Microsoft Office 15\ClientX64\'
.\OfficeClickToRun.exe scenario=Repair DisplayLevel=false RepairType=quickRepair forceappshutdown=true

# if quick repair did not solve it
.\OfficeClickToRun.exe scenario=Repair DisplayLevel=false RepairType=FullRepair forceappshutdown=true