I think you can use something like that in powerCLI. And add a loop foreach if it works.
You can look at the configuration IP for your VM MyVMName.
$MyVM = "MyVMName"
Dismount-Tools -VM $MyVM
Mount-Tools -VM $MyVM
$Credential = Get-Credential -Message "Credential for this VM ($MyVM)"
$MyScript = @'
$Output = Invoke-VMScript -vm $MyVM -guestUser $Credential.UserName -guestpassword $Credential.Password -scripttype powershell -scripttext $MyScript
But Did you try to upgrade with VUM ?
Forgive my incompetence, I'm new to scripting. I don't see how this helps me run "setup /c" on all my VMs...
My goal is to uninstall vmware tools on these machines specifically with the "/c" switch.
I'm wondering how to best go about in accomplishing this. And how go get it working.
So far I haven't been able to run "setup /c" remotely on any VM. And as previously mentioned I think that is because this results in a popup requiring a manual "OK"-click. I want to know if there is a way to run "setup /c" remotely.
Thanks in advance
Have you contacted VMware support to see if anyone knows of the old vmware-tools installer and whether or not it has a silent uninstall switch?
Unfortunately, as far as I know, the only way to write a script that will handle a popup window and be able to pass it would be VB and require that you run the script while logged in so File Explorer can work properly.
If it's a setup.msi and not .exe, you can always try out the Universal Silent Switch Finder to see if it can pull anything out of the setup, but it's doubtful. Universal Silent Switch Finder Download (Softpedia)
Yes, but since the tools version is so old you cannot upgrade to the latest. The issue might be due to the original installation files missing in the path it's looking for.