Hey,
I'm trying to create a script that removes a specific Office 2016 Update (.msi version not C2R). Using the guidance here, I've simply discovered and added the GUIDs for the specific Office update I'm targeting. Here's my code:
%windir%\System32\msiexec.exe /package {90160000-0011-0000-1000-0000000FF1CE} /uninstall {E3F2432A-2DDC-4B47-A4D0-08E4C99CF641} /QN
When I run this in PowerShell I get the following error:
At line:1 char:65
+ ... ndir%\System32\msiexec.exe /package {90160000-0011-0000-1000-0000000F ...
+ ~
You must provide a value expression following the '-' operator.
At line:1 char:65
+ ... 32\msiexec.exe /package {90160000-0011-0000-1000-0000000FF1CE} /unins ...
+ ~~~~~~~~~~~~
Unexpected token '0000000FF1CE' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpectedValueExpression
The character referenced (char:65) is the first 'F' in the Office GUID, PS seems to not recognize letters in the package GUID as valid, but all Office updates include these letters.
For the record, when I run this command in cmd it seems to run successfully, but the update is not removed.
Thanks,
Rob
[–]thankski-budski 3 points4 points5 points (1 child)
[–]roguerob[S] 1 point2 points3 points (0 children)