VMware Cloud Community
piercj2
Enthusiast
Enthusiast
Jump to solution

PowerShell ISE crashes when using Get-Compliance

Hi Guys,

Has anyone come across the following and if so, any solution.

If I run the following command it crashed the PowerShell ISE

"Get-VMHost hostname | Get-Compliance"

I'm running the following on Windows 7 64-bit

PowerCLI Version

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

   VMware vSphere PowerCLI 5.5 Release 1 build 1295336

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

Snapin Versions

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

   VMWare AutoDeploy PowerCLI Component 5.5 build 1262826

   VMWare ImageBuilder PowerCLI Component 5.5 build 1262826

   VMware License PowerCLI Component 5.5 build 1265954

   VMware VDS PowerCLI Component 5.5 build 1295334

   VMware vSphere PowerCLI Component 5.5 build 1295334

   VMware vSphere Update Manager PowerCLI 5.5 build 1302474

My goal is identify installed updates/patches on a wide range of ESXi5.5 Hosts as the Get-VMHostPatch command doesn't seem to work with ESXi5.5

Thanks,

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Have a look at Get-Compliance crashes Powershell

But the problem is that for the ISE there is no Version parameter available, it only works for PowerShell command line.


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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Have a look at Get-Compliance crashes Powershell

But the problem is that for the ISE there is no Version parameter available, it only works for PowerShell command line.


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

Reply
0 Kudos
piercj2
Enthusiast
Enthusiast
Jump to solution

Thanks Luc,

That worked perfectly.

I had an issue at first when running the command on the PowerShell window, the "Get-VMHost hostname | Get-Compliance" still caused Power to frash, returning the error

"Process is Terminated due to StackOverflowException".

I read the detail in the URL you provided again and, changed to "Powershell -version 2".

I then ran "Get-VMHost hostname | Get-Compliance" again and bingo Smiley Happy

Got the results I needed :smileygrin:

Thanks again,

Jason


Reply
0 Kudos