How to Repair Office


Is there any way to initiate office repair using a cmd line?
Which we can push through SCCM?

Kindly Let me know anyone? asked Jakeer Syed.

solved 0
HowToManage Devices 2022-02-10T12:54:35+05:30 1 Answer 125 views 0

Answer ( 1 )

  1. Answered by Zaheer Iqbal

    $command64 = @’
    cmd.exe /C “C:\Program Files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe” scenario=Repair platform=x64 culture=en-us RepairType=QuickRepair forceappshutdown=True DisplayLevel=False
    $command86 = @’
    cmd.exe /C “C:\Program Files\Microsoft Office 15\ClientX86\OfficeClickToRun.exe” scenario=Repair platform=x86 culture=en-us RepairType=QuickRepair forceappshutdown=True DisplayLevel=False
    if(Test-Path -Path “C:\Program Files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe”){
    Invoke-Expression -Command:$command64
    } elseif(Test-PAth -Path “C:\Program Files\Microsoft Office 15\ClientX32\OfficeClickToRun.exe”){
    Invoke-Expression -Command:$command86

    If you deployed Office as an application It is also acceptable to put the repair command under the deployment type and users can trigger the repair – Jason Santoro?

    Best answer

Leave an answer

Sorry, you do not have a permission to answer to this question .