Need Help with Office Uninstallation and Reinstallation Scripts

0
7
Asked By TechGuru007 On

Hey everyone! I'm part of the PC vulnerabilities management team, and we often deal with numerous security updates for Office. To address these vulnerabilities, we have to remote into users' machines and uninstall Office, then reinstall it. I'm looking for some PowerShell scripts that can help me automate this process. Any guidance on how to do this would be really appreciated!

5 Answers

Answered By OfficeNerd123 On

If you're looking for a concrete example, here's how to set up your uninstall process:

1. For uninstallation, you can use this command: `Setup.exe /configure uninstall.xml`.
2. Your `uninstall.xml` would look something like this:
```xml

``` Just make sure your Office version matches what you're using.

Answered By ScriptMaster99 On

You might want to check out Microsoft's Office Deployment Tool. It lets you create a configuration XML file including a command to uninstall Office before reinstalling it with `Remove ALL=true`. Once you set that up and share your Office install files, you can use `Copy-Item` to place the necessary files on the user's machine and `Invoke-Command` to kick off the installation remotely.

Answered By PowerShellPro On

Before you dive in, remember that how you uninstall software often hinges on how it was originally installed. If we don't know that, we might not get anywhere. Also, the issue probably isn’t just about PowerShell, you'll need the right setup.

Answered By ChocoWizard On

If you're comfortable with package managers, using Chocolatey could simplify the process for you. It streamlines installations and can manage dependencies well.

Answered By DeploymentDude On

It’s crucial to know which version of Office you have. If it’s Click-to-Run, the Office Deployment Tool and a proper XML file should cover both uninstalling and reinstalling without much hassle. Just bear in mind that you typically need to follow the uninstall with a reboot, although it's often not strictly necessary.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.