<?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 Get-NcAntivirusLog : not authorized for that command in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167775#M6408</link>
    <description>&lt;P&gt;When attempting to run Get-NcAntivirusLog, for the purposes of building a report, this error is returned.&lt;BR /&gt;Get-NcAntivirusLog : not authorized for that command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Help does not show any additional command required for this cmdlet. I am assuming it requires advanced privileges (set -privilege advanced), but I have not found a way to set those within Powershell.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 10:21:58 GMT</pubDate>
    <dc:creator>jbattista</dc:creator>
    <dc:date>2025-06-04T10:21:58Z</dc:date>
    <item>
      <title>Get-NcAntivirusLog : not authorized for that command</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167775#M6408</link>
      <description>&lt;P&gt;When attempting to run Get-NcAntivirusLog, for the purposes of building a report, this error is returned.&lt;BR /&gt;Get-NcAntivirusLog : not authorized for that command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Help does not show any additional command required for this cmdlet. I am assuming it requires advanced privileges (set -privilege advanced), but I have not found a way to set those within Powershell.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:21:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167775#M6408</guid>
      <dc:creator>jbattista</dc:creator>
      <dc:date>2025-06-04T10:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcAntivirusLog : not authorized for that command</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167789#M6409</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which version of Ontap are you running and what user are you using to connect to the storage?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 06:52:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167789#M6409</guid>
      <dc:creator>hmoubara</dc:creator>
      <dc:date>2021-06-15T06:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcAntivirusLog : not authorized for that command</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167797#M6410</link>
      <description>&lt;P&gt;Just to be sure while logged in as the same user you are connecting with in powershell, set privilege to advanced and try to run the "&lt;SPAN class="ph cmd"&gt;&lt;SPAN class="div_linebreak"&gt;vserver vscan show-events&lt;/SPAN&gt;&lt;/SPAN&gt;".&amp;nbsp;&amp;nbsp; Then move on to the script. I looked at some other scripts so maybe something like &lt;STRONG&gt;Invoke-NcSsh -Command "set -privilege advanced;vserver vscan show-events"&lt;/STRONG&gt; will work for you. Let me know if this helps or if we need to try again.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 10:17:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167797#M6410</guid>
      <dc:creator>NetApp_SR</dc:creator>
      <dc:date>2021-06-15T10:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcAntivirusLog : not authorized for that command</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167813#M6411</link>
      <description>&lt;P&gt;I actually posted that same solution yesterday after I posted my question. It seems to have gone missing.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:25:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167813#M6411</guid>
      <dc:creator>jbattista</dc:creator>
      <dc:date>2021-06-15T14:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcAntivirusLog : not authorized for that command</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167814#M6412</link>
      <description>&lt;P&gt;I believe have figured out how to run the cmdlet in question.&lt;/P&gt;&lt;P&gt;Invoke-NcSsh -Command "set -privilege advanced -confirmations off" | Get-NcVscanEvents&lt;/P&gt;&lt;P&gt;Since the command is a PowerShell call to "vserver vscan show-events", and to be able to use that command, set -privilege advanced needs to be called, putting the command into the Invoke-NcSsh cmdlet and piping the reset to the Get-NCAntiVirusLog cmdlet, works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do think that the Get-NcVscanEvents should be a standalone, and not require this addition to make it work. I think the advanced privilege should be either in the Connect-NcController or the Get-NcVscanEvents or Get-NcAntiVirusLog.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:29:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcAntivirusLog-not-authorized-for-that-command/m-p/167814#M6412</guid>
      <dc:creator>jbattista</dc:creator>
      <dc:date>2021-06-15T14:29:47Z</dc:date>
    </item>
  </channel>
</rss>

