VMware Cloud Community
krnewell2011101
Contributor
Contributor

get-patch instant crash PowerCLI 5.8

By reading some other threads I've managed to figure out that I can run the latast update manager by backing down both my powerCLI version (to 5.5 R2 patch 1) and my powershell version to 2, but is that really the most current functioning state? We're trying to build some update manager automation to synchronize dev/stage/prod tiers and it's really upsetting to see that I have to turn the clock beck a year or more in order to just run some commands. Here is the version info where I'm getting the crash:

PowerCLI Version

----------------

   VMware vSphere PowerCLI 5.8 Release 1 build 2057893

---------------

Snapin Versions

---------------

   VMWare AutoDeploy PowerCLI Component 5.5 build 1983942

   VMWare ImageBuilder PowerCLI Component 5.5 build 1983942

   VMware vCloud Director PowerCLI Component 5.8 build 2031582

   VMware License PowerCLI Component 5.5 build 1265954

   VMware Storage PowerCLI Component 5.8 build 2057894

   VMware VDS PowerCLI Component 5.8 build 2031581

   VMware vSphere PowerCLI Component 5.8 build 2031581

   VMware vSphere Update Manager PowerCLI 5.5 build 1302474

Thanks

0 Kudos
6 Replies
Zsoldier
Expert
Expert

PowerCLI for Update Manager, I've noticed it simply needs to match the version of Update Manager installed to work properly.

Chris Nakagaki (中垣浩一)
Blog: https://tech.zsoldier.com
Twitter: @zsoldier
0 Kudos
krnewell2011101
Contributor
Contributor

I agree that matched versions are one requirement, but from what I'm experiencing a second requirement is that you have to run it all in Powershell 2.0. Currently in all my production environments I use PowerCLI 5.8, but it appears now that if I want to use Update manager I have to back down to PowerCLI 5.5. Also in doing so I have to force powershell to execute in V2.0 mode which means no access to 3.0 commands. Specifically the command I'd really love to have would be out-gridview for filtering/creating baselines from patch lists.

That's why I ask,"is that really the most current functioning state?" Is the only answer that there is no version of update manager compatible with either PowerCLI 5.8 or Powershell 3.0? Ideally I'd like to have both, but at this point I'd accept powershell 3.0.

0 Kudos
Zsoldier
Expert
Expert

Hmm, yeah that does suck.  It might be a round about way, but have you considered WinRM and an admin box that hosts the update manager cmdlets and requisite powershell versions?

This way you could call and capture into a local variable from a crap vm running the old snapin.

Chris Nakagaki (中垣浩一)
Blog: https://tech.zsoldier.com
Twitter: @zsoldier
0 Kudos
alanrenouf
VMware Employee
VMware Employee

PowerCLI 5.8 R1 does support PowerShell v2 (Or use Powersehll.exe -version 2) and you are correct the PowerCLI for Update Manager only supports PowerShell v2 and the version of VUM you have installed, we know this can be an issue and causes problems and we are looking to update it in future releases.

PowerCLI 5.8 R1 Supported PS Versions: Compatibility Matrixes for vSphere PowerCLI 5.8 Release 1

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
0 Kudos
krnewell2011101
Contributor
Contributor

Do you have any idea what the timeline is on getting a 5.8 rev or Update Manager? or is it far enough out that the two will only meet again at a later revision (6.0?)

We had assumed that Update Manager would at least be compatible with Powershell 3.0 since it's been around for 2 1/2 years.

Ken

0 Kudos
alanrenouf
VMware Employee
VMware Employee

PowerCLI for VUM actually releases with VUM at the moment rather than more frequently like our core PowerCLI cmdlets, i am unable to comment on release timeframes.

If you have a TAM and are under NDA please ask them to contact me for a conversation on this.

Sorry for the pain but PowerShell v2 or running PowerShell 3/4 in v2 mode really is the only way to work with the cmdlets at the moment.

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
0 Kudos