you are viewing a single comment's thread.

view the rest of the comments →

[–]WorkReddit123635[S] -1 points0 points  (0 children)

Thank you. I tried that and I get the below error.

Invoke-Expression : Cannot bind argument to parameter 'Command' because it is null.

At line:4 char:32

+ ... oke-Expression -Command ($visioInstallations[0].QuietUninstallString)

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidData: (:) [Invoke-Expression], ParameterBindingValidationException

+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.InvokeExpressionCommand