How to Repair Office
Question
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.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Answer ( 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?