<?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 Question about close-nccifssession and maybe a bug in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Question-about-close-nccifssession-and-maybe-a-bug/m-p/132940#M5427</link>
    <description>&lt;P&gt;I am getting sporadic wierd results with get-nccifssession and piping it to close-nccifssession. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Half of the time, it works fine, and I checked close-nccifsession and it acceptions pipeline input from sessionID, but the other half of the time, I'm getting errors&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TerminatingError(Close-NcCifsSession): "Parameter 'SessionId' is mandatory for Data ONTAP 9.0 and up."&lt;BR /&gt;close-nccifssession : Parameter 'SessionId' is mandatory for Data ONTAP 9.0 and up.&lt;BR /&gt;At C:script.ps1:925 char:62&lt;BR /&gt;+ ... {$_.windowsuser -match $user} | close-nccifssession -confirm:$false&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidArgument: (svm1:NcController) [Close-NcCifsSession], ArgumentException&lt;BR /&gt;+ FullyQualifiedErrorId : SessionIdRequired,DataONTAP.C.PowerShell.SDK.Cmdlets.Cifs.CloseNcCifsSession&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone else seeing this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using 4.3.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:49:20 GMT</pubDate>
    <dc:creator>JGPSHNTAP</dc:creator>
    <dc:date>2025-06-04T14:49:20Z</dc:date>
    <item>
      <title>Question about close-nccifssession and maybe a bug</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Question-about-close-nccifssession-and-maybe-a-bug/m-p/132940#M5427</link>
      <description>&lt;P&gt;I am getting sporadic wierd results with get-nccifssession and piping it to close-nccifssession. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Half of the time, it works fine, and I checked close-nccifsession and it acceptions pipeline input from sessionID, but the other half of the time, I'm getting errors&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TerminatingError(Close-NcCifsSession): "Parameter 'SessionId' is mandatory for Data ONTAP 9.0 and up."&lt;BR /&gt;close-nccifssession : Parameter 'SessionId' is mandatory for Data ONTAP 9.0 and up.&lt;BR /&gt;At C:script.ps1:925 char:62&lt;BR /&gt;+ ... {$_.windowsuser -match $user} | close-nccifssession -confirm:$false&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidArgument: (svm1:NcController) [Close-NcCifsSession], ArgumentException&lt;BR /&gt;+ FullyQualifiedErrorId : SessionIdRequired,DataONTAP.C.PowerShell.SDK.Cmdlets.Cifs.CloseNcCifsSession&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone else seeing this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using 4.3.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:49:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Question-about-close-nccifssession-and-maybe-a-bug/m-p/132940#M5427</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2025-06-04T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question about close-nccifssession and maybe a bug</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Question-about-close-nccifssession-and-maybe-a-bug/m-p/140478#M5759</link>
      <description>Too big to convert I'm afraid:

PS C:\WINDOWS\system32&amp;gt; [int64]::MaxValue
9223372036854775807


13404964290887995043 is longer by 1 char and exceeds the range. POwershell is working fine but it seems like the cmdlet has not accounted for the sessionID being longer. One way around it would likely be to use powershell with one of the invoke cmdlets to run the command at the cluster head.</description>
      <pubDate>Wed, 23 May 2018 20:57:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Question-about-close-nccifssession-and-maybe-a-bug/m-p/140478#M5759</guid>
      <dc:creator>darraghos</dc:creator>
      <dc:date>2018-05-23T20:57:33Z</dc:date>
    </item>
  </channel>
</rss>

