<?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: Using Get-Compliance run in script with a service account in vSphere Update Manager PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Using-Get-Compliance-run-in-script-with-a-service-account/m-p/1702223#M397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I stumped the band.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have resolved this issue, details forthcoming.&amp;nbsp; As soon as I get the details from the administrator I will post them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T. Reid&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 21:49:33 GMT</pubDate>
    <dc:creator>TimReidCA</dc:creator>
    <dc:date>2012-11-14T21:49:33Z</dc:date>
    <item>
      <title>Using Get-Compliance run in script with a service account</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Using-Get-Compliance-run-in-script-with-a-service-account/m-p/1702222#M396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have failed to determine the proper rights required for a service account to run a script to report on ESX Patch levels using Get-Compliance.&amp;nbsp; We made an attempt to add all VUM rights in a vSphere group that our service account is a member of, in addition to some read-only rights.&amp;nbsp; The Get-Compliance will not work in this way.&amp;nbsp; I am forced to ask the VMware administrator to run this script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have a list of rights that can be applied to a read-only service account to run Get-Compliance from a PowerCLI script?&lt;/P&gt;&lt;P&gt;This is an example of the security error that I am getting with the service account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-Compliance : 11/6/2012 2:30:55 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; Get-Compliance&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fault.SecurityError.summary&lt;BR /&gt;At C:\vmware\ESX_Patch_Host_V5_stakd.ps1:125 char:53&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach($baseline in (Get-Compliance &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; -Entity $esx -Detailed))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [Get-Compliance], VimException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VumAutomation.Commands.GetCompliance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Tim&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 00:21:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Using-Get-Compliance-run-in-script-with-a-service-account/m-p/1702222#M396</guid>
      <dc:creator>TimReidCA</dc:creator>
      <dc:date>2012-11-07T00:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Get-Compliance run in script with a service account</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Using-Get-Compliance-run-in-script-with-a-service-account/m-p/1702223#M397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I stumped the band.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have resolved this issue, details forthcoming.&amp;nbsp; As soon as I get the details from the administrator I will post them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T. Reid&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 21:49:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Using-Get-Compliance-run-in-script-with-a-service-account/m-p/1702223#M397</guid>
      <dc:creator>TimReidCA</dc:creator>
      <dc:date>2012-11-14T21:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Get-Compliance run in script giving error.</title>
      <link>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Using-Get-Compliance-run-in-script-with-a-service-account/m-p/2909911#M698</link>
      <description>&lt;P&gt;$comStatus2 = Get-Compliance -Entity $Cluster -Baseline $NonCriticalBaseline -ComplianceStatus Compliant&lt;BR /&gt;if($comstatus2.Status -like "Compliant")&lt;/P&gt;&lt;P&gt;for the above line i am getting this error. Please help me on.&lt;/P&gt;&lt;P&gt;Get-Compliance : 5/18/2022 7:56:37 PM Get-Compliance&lt;BR /&gt;fault.SecurityError.summary&lt;BR /&gt;At C:\vmwtest\work\vum\VMware-testware\vmqa\scripts\new3.ps1:38 char:17&lt;BR /&gt;+ ... omStatus2 = Get-Compliance -Entity $Cluster -Baseline $NonCriticalBas ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Get-Compliance], VimException&lt;BR /&gt;+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VumAutomatio&lt;BR /&gt;n.Commands.GetCompliance&lt;/P&gt;&lt;P&gt;Get-Compliance : 5/18/2022 7:56:37 PM Get-Compliance&lt;BR /&gt;fault.SecurityError.summary&lt;BR /&gt;At C:\vmwtest\work\vum\VMware-testware\vmqa\scripts\new3.ps1:38 char:17&lt;BR /&gt;+ ... omStatus2 = Get-Compliance -Entity $Cluster -Baseline $NonCriticalBas ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Get-Compliance], VimException&lt;BR /&gt;+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VumAutomatio&lt;BR /&gt;n.Commands.GetCompliance&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 06:23:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Update-Manager-PowerCLI/Using-Get-Compliance-run-in-script-with-a-service-account/m-p/2909911#M698</guid>
      <dc:creator>tmithilesh</dc:creator>
      <dc:date>2022-05-19T06:23:37Z</dc:date>
    </item>
  </channel>
</rss>

