VMware Cloud Community
jvm2016
Hot Shot
Hot Shot

powercli11.2 installtion

Hi Luc ,

i want to uninstall powercli 11.2 on a system which does not have internet.

i have moved all the required modules to that system .

however i need to uninstall current version 6.5 from control pannel .its an .msi installtion.

i am getting folowing

pastedImage_0.png

is there any powershellway of uninstalling forecfullly .

Reply
0 Kudos
17 Replies
LucD
Leadership
Leadership

Have a look at Error: Uninstall An MSI And Msiexec Fails Asking For Path Of Old MSI

The 'msiexec /x' method should work, if you have the productcode


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

Thanks I m going to use it .by mistake I  used uninstalling 11.2

pits actually uninstalling 6.5 power cli .i will use what YU suggested.

Reply
0 Kudos
LucD
Leadership
Leadership

How can you uninstall 11.2.0 with the msiexec command?
That is not installed via an MSI package


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

by mistake i mentioned 11.2 .sorry about it.

i wanted to uninstall 6.5 to install 11.2 .

i was looking for some powershell command to uninstall 6.5 forcefully .

but even powershell is outdatdon this system.

everything is outdated on these systems Smiley Happy

Now iamthinking to first upgrade powershell to 6.1 and check if there is some command which can uninstall 6.5 powercli.

Reply
0 Kudos
LucD
Leadership
Leadership

If it is a PowerCLI version that is installed with a MSI, you will still need to do the uninstall with MsiExec.

You can call MsiExec from any version of PowerShell, but it will still be a MsiExec command.

See for example https://powershell.org/forums/topic/uninstall-application-with-msiexec-from-powershell-command-works...


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

it seems it is not installed by .msi

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership

Did you also try with

Get-WmiObject -Class win32_product -Filter "Name LIKE '%PowerCLI%'"


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

$app has powercli .its just that uninsatall function did not uninstall it .

if i move powercli 6.5 modules away from $pshome

and move new modules(11.2) to this location .

will it work??

Reply
0 Kudos
LucD
Leadership
Leadership

Not too sure about that, there are some .Net files that came with the installation.

They need to be dropped/removed.

You don't see anything under Programs and Features in the Control Panel?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

i will let you know as right now it should be deployed at mass level on different configuration windows machine .

desired configuration needed

powershellcore :which i tested will stay along with old powershell version and no reboot is needed .

powercli11.2:which needed uninstalltionof old powercli and that the step where iam stuck .

Reply
0 Kudos
LucD
Leadership
Leadership

Yes, on a Windows box you can have PS v5.1 and v6, side-by-side.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

i wish  it were the  case with powercli also .howeveriam unable to uninsatll powercli 6.5 .i will check again .

Reply
0 Kudos
LucD
Leadership
Leadership

Btw, that MsiExec 1612 error means that MsiExec can't find the MSI file from which the product was installed.

Could you try reinstalling that PowerCLI 6.5 version from the MSI file.
And then do the uninstall with your earlier code.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

ok i will do that i need to download that version of powercli .

Reply
0 Kudos
LucD
Leadership
Leadership

Still available here it seems.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

Thank You Sir .I will check today.

Reply
0 Kudos