<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get-Compliance crashes Powershell in vSphere Update Manager PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310427#M329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked for me as well. Thanks, Luc!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2014 17:26:48 GMT</pubDate>
    <dc:creator>squebel</dc:creator>
    <dc:date>2014-12-29T17:26:48Z</dc:date>
    <item>
      <title>Get-Compliance crashes Powershell</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310422#M324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been trying to run Get-Compliance to get information from our Update Manager 5.1 U2. When I execute the command it crashes Powershell. Are these versions not compatible?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All module versions are listed here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS C:\Windows\system32&amp;gt; Get-PowerCLIVersion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PowerCLI Version&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;VMware vSphere PowerCLI 5.1 Release 1 build 793510&lt;/P&gt;&lt;P&gt;---------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Snapin Versions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;---------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; VMWare AutoDeploy PowerCLI Component 5.1 build 768137&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; VMWare ImageBuilder PowerCLI Component 5.1 build 768137&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; VMware License PowerCLI Component 5.1 build 669840&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; VMware vSphere PowerCLI Component 5.1 build 793489&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; VMware vSphere Update Manager PowerCLI 5.1 build 782803&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Powershell Version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Major&amp;nbsp; Minor&amp;nbsp; Build&amp;nbsp; Revision&lt;/P&gt;&lt;P&gt;-----&amp;nbsp; -----&amp;nbsp; -----&amp;nbsp; --------&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 16:36:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310422#M324</guid>
      <dc:creator>bvi1006</dc:creator>
      <dc:date>2014-10-20T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get-Compliance crashes Powershell</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310423#M325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try starting PowerShell with&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;powershell -version 2&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 16:43:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310423#M325</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-10-20T16:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get-Compliance crashes Powershell</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310424#M326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Luc. I'm not even sure where I'd find 2.0 at this point..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had .NET 4.5.1 installed and have now upgraded to 4.5.2. In the release notes(&lt;A href="http://support.microsoft.com/kb/2909958" title="http://support.microsoft.com/kb/2909958"&gt;Exceptions in Windows PowerShell, other dynamic languages, and dynamically executed C# code when code that targets the .…&lt;/A&gt;) it suggests to do the following if your still have issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a cast to &lt;STRONG&gt;System.Type&lt;/STRONG&gt; within the call to method &lt;STRONG&gt;SizeOf&lt;/STRONG&gt; or method &lt;STRONG&gt;PtrToStructure&lt;/STRONG&gt;. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="kb_codecontent"&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE class="code"&gt;&lt;CODE&gt;$size = [System.Runtime.InteropServices.Marshal]::SizeOf([System.Type] $type)&lt;BR /&gt;&lt;BR /&gt;$obj = [System.Runtime.InteropServices.Marshal]::PtrToStructure($ptr, [System.Type] $type)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trouble is, I have no idea what this is :smileyconfused: ... do you ?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 19:06:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310424#M326</guid>
      <dc:creator>bvi1006</dc:creator>
      <dc:date>2014-10-20T19:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get-Compliance crashes Powershell</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310425#M327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you have installed PowerShell v3 or V4, you can run it in version 2 mode.&lt;/P&gt;&lt;P&gt;From a command prompt, just type&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;powershell -version 2&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 19:11:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310425#M327</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2014-10-20T19:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get-Compliance crashes Powershell</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310426#M328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@DCF4E2F7991292CEECF250394DB2C2BC/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@DCF4E2F7991292CEECF250394DB2C2BC/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@DCF4E2F7991292CEECF250394DB2C2BC/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 19:23:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310426#M328</guid>
      <dc:creator>bvi1006</dc:creator>
      <dc:date>2014-10-20T19:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get-Compliance crashes Powershell</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310427#M329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked for me as well. Thanks, Luc!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 17:26:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310427#M329</guid>
      <dc:creator>squebel</dc:creator>
      <dc:date>2014-12-29T17:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get-Compliance crashes Powershell</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310428#M330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this works,but is there a fix in the works for this. I have to re-write some of my script to get it to work in version 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 15:44:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Get-Compliance-crashes-Powershell/m-p/1310428#M330</guid>
      <dc:creator>sprowe73</dc:creator>
      <dc:date>2015-01-26T15:44:34Z</dc:date>
    </item>
  </channel>
</rss>

