<?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: Possible bug with close-nccifssession in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140521#M5764</link>
    <description>&lt;P&gt;There is already a bug (1142906) open on this : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2018 13:33:51 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2018-05-25T13:33:51Z</dc:date>
    <item>
      <title>Possible bug with close-nccifssession</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140465#M5757</link>
      <description>&lt;P&gt;I'm not quite sure what is going on here, but this should be simple pipeline to close-nccifssession&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First we see this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\powershell&amp;gt; get-nccifssession | ? {$_.windowsuser -match "userid"} | close-nccifssession -confirm:$false&lt;BR /&gt;close-nccifssession : Parameter 'SessionId' is mandatory for Data ONTAP 9.0 and up.&lt;BR /&gt;At line:1 char:61&lt;BR /&gt;+ ... windowsuser -match "userid"} | close-nccifssession -confirm:$false&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt; + CategoryInfo : InvalidArgument: (filer:NcController) [Close-NcCifsSession], ArgumentException&lt;BR /&gt; + FullyQualifiedErrorId : SessionIdRequired,DataONTAP.C.PowerShell.SDK.Cmdlets.Cifs.CloseNcCifsSession&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PS C:\powershell&amp;gt; close-nccifssession -SessionId 13404964290887995043&lt;BR /&gt;Close-NcCifsSession : Cannot bind parameter 'SessionId'. Cannot convert value "13404964290887995043" to type "System.Int64". Error: "Value was&lt;BR /&gt;either too large or too small for an Int64."&lt;BR /&gt;At line:1 char:32&lt;BR /&gt;+ close-nccifssession -SessionId 13404964290887995043&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This has to be some sort of bug&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:41:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140465#M5757</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2025-06-04T13:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug with close-nccifssession</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140477#M5758</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:56:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140477#M5758</guid>
      <dc:creator>darraghos</dc:creator>
      <dc:date>2018-05-23T20:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug with close-nccifssession</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140519#M5762</link>
      <description>&lt;P&gt;I forgot to mention that I already knew it was 1 digit bigger than max value.&amp;nbsp; I checked that as well. That was my first run at this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Invoke-ncssh works, but is not nearly as easy as passing the pipeline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the team needs to fix this.. maybe pass as string..&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 12:46:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140519#M5762</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2018-05-25T12:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug with close-nccifssession</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140520#M5763</link>
      <description>&lt;P&gt;Perhaps the cmdlet for sessionid needs to be changed from int64 to decimal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\powershell&amp;gt; [decimal]13404964290887995043&lt;BR /&gt;13404964290887995043&lt;BR /&gt;PS C:\powershell&amp;gt; [decimal]13404964290887995043 | gm&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; TypeName: System.Decimal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:23:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140520#M5763</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2018-05-25T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug with close-nccifssession</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140521#M5764</link>
      <description>&lt;P&gt;There is already a bug (1142906) open on this : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:33:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140521#M5764</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-25T13:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug with close-nccifssession</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140523#M5766</link>
      <description>&lt;P&gt;Andrew.. How funny.. I should have searched!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Duh... Thanks for helping me search.. and was nice to meet you&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 13:39:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Possible-bug-with-close-nccifssession/m-p/140523#M5766</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2018-05-25T13:39:05Z</dc:date>
    </item>
  </channel>
</rss>

