<?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: OnTAP 9..3x Powershell in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143999#M31877</link>
    <description>&lt;P&gt;Hi Tas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it would be nice if there was a PS provider for an ONTAP file system similar to browsing the registry or AD etc, unfortunatley that's not the case. The set-location cmdlet can't be used to browse the file system. The only way to achieve this via PowerShell is to recursivley call Read-NcDirectory within a function or use the "file-list-directory-iter" ZAPI. I wouldn't recommend doing this on a large volume with a high file count though as you might impact CIFS latency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S: I didn't mark this thread as answered. The forum is moderated (not by me)&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 22:32:46 GMT</pubDate>
    <dc:creator>mbeattie</dc:creator>
    <dc:date>2018-10-16T22:32:46Z</dc:date>
    <item>
      <title>OnTAP 9..3x Powershell</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143430#M31845</link>
      <description>&lt;P&gt;Does the Powershell toolkit support the set-location cmdlet?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be nice to be able to get a directory listing via PS, without creating a CIFS share or exporting and NFS mount.&amp;nbsp; Especially when searching for files recursively.&amp;nbsp; I am surprised that the toolkit does not support the set-location and PSDrives to OnTap shares.&lt;/P&gt;
&lt;P&gt;Or... does it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And BTW, where is the PS community for ONTAP?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:14:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143430#M31845</guid>
      <dc:creator>Tas</dc:creator>
      <dc:date>2025-06-04T13:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: OnTAP 9..3x Powershell</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143435#M31846</link>
      <description>&lt;P&gt;Hi Tas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to use the "Read-NcDirectory" cmdlet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PS C:\Scripts\PowerShell\Projects\WFA\ReversionWFA&amp;gt; get-help Read-NcDirectory

NAME
    Read-NcDirectory

SYNOPSIS
    List the contents of a directory.


SYNTAX
    Read-NcDirectory [-Path] &amp;lt;String&amp;gt; [-Attributes &amp;lt;FileInfo&amp;gt;] [-VserverContext &amp;lt;String&amp;gt;] [-Controller &amp;lt;NcController[]&amp;gt;] [-ZapiRetryCount &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]

    Read-NcDirectory -Template [-VserverContext &amp;lt;String&amp;gt;] [-Controller &amp;lt;NcController[]&amp;gt;] [-ZapiRetryCount &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]


DESCRIPTION
    List the contents of a directory.&lt;/PRE&gt;
&lt;P&gt;For example...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PS C:\&amp;gt; get-help Read-NcDirectory -examples

NAME
    Read-NcDirectory

SYNOPSIS
    List the contents of a directory.


    --------------  Example 1 --------------

    C:\PS&amp;gt;Read-NcDirectory /vol/vol1

    List the contents of volume 'vol1'.

    Name      Type      Size    Created   Modified Owner Group Perm Empty
    ----      ----      ----    -------   -------- ----- ----- ---- -----
    .         directory 4 KB 11/14/2011 11/14/2011     0     1  700 False
    ..        directory 4 KB  10/3/2011 11/14/2011     0     1  777 False
    .snapshot directory 4 KB 11/14/2011 11/14/2011     0     0  777 False
    hosts     file         0 11/14/2011 11/14/2011     0     0  644
    users     directory 4 KB 11/14/2011 11/14/2011     0     0  755 False
&lt;/PRE&gt;
&lt;P&gt;hope that helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 01:10:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143435#M31846</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-10-10T01:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: OnTAP 9..3x Powershell</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143469#M31847</link>
      <description>&lt;P&gt;Yes, thank you, I can use the read-ncdirectory.&amp;nbsp; However, that cmdlet does not have a recursive option, which I was able to find.&amp;nbsp; It would be great to be able to run file system queries such as the ones I can get from 'XCP', 'du', or 'dir', via PS.&amp;nbsp; I think the PSprovider would be the best place to put it, but I don't know how hard that would be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;TasP&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 12:32:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143469#M31847</guid>
      <dc:creator>Tas</dc:creator>
      <dc:date>2018-10-10T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: OnTAP 9..3x Powershell, and NetApp now marking threads as SOLVED?</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143988#M31874</link>
      <description>&lt;P&gt;So, who is marking conversation as Solved, when I have not done so myself?&amp;nbsp; I certainly hope it isn't NetApp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am very disappointed with the direction of the Community forums.&amp;nbsp; They are becoming less helpful with each re-structuring.&amp;nbsp; And honestly, why would someone mark a conversation as SOLVED, when I clearly stated in my response, that it was not.&amp;nbsp; That is not the way to foster participation in the Community, that is the way to have customers looking at other vendors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tas P.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:52:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143988#M31874</guid>
      <dc:creator>Tas</dc:creator>
      <dc:date>2018-10-16T14:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: OnTAP 9..3x Powershell</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143999#M31877</link>
      <description>&lt;P&gt;Hi Tas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it would be nice if there was a PS provider for an ONTAP file system similar to browsing the registry or AD etc, unfortunatley that's not the case. The set-location cmdlet can't be used to browse the file system. The only way to achieve this via PowerShell is to recursivley call Read-NcDirectory within a function or use the "file-list-directory-iter" ZAPI. I wouldn't recommend doing this on a large volume with a high file count though as you might impact CIFS latency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S: I didn't mark this thread as answered. The forum is moderated (not by me)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 22:32:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/OnTAP-9-3x-Powershell/m-p/143999#M31877</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-10-16T22:32:46Z</dc:date>
    </item>
  </channel>
</rss>

