<?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: Powershell DataONTAP cmdlet New-NcDirectory in Simulator Discussions</title>
    <link>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/128219#M2100</link>
    <description>&lt;P&gt;Did you try enclosing the path in quotes? Perhaps it's not parsing the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;New-NcDirectory "/vol/vol_home1/$ShareName/xyz" -Permission 0755 -Controller $global:CurrentNcController -VserverContext $Vserver&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 04:52:39 GMT</pubDate>
    <dc:creator>JohnChampion</dc:creator>
    <dc:date>2017-02-17T04:52:39Z</dc:date>
    <item>
      <title>Powershell DataONTAP cmdlet New-NcDirectory</title>
      <link>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/102331#M1473</link>
      <description>&lt;P&gt;&amp;nbsp;Can we create directory inside the share which has been created already inside the volume using New-NcDirectory Command?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 10:48:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/102331#M1473</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2015-03-26T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell DataONTAP cmdlet New-NcDirectory</title>
      <link>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/102333#M1474</link>
      <description>&lt;P&gt;$Cluster="10.10.10.10";&lt;BR /&gt;$ShareName= "netapp";&lt;BR /&gt;$dirname="rutulshah";&lt;BR /&gt;$VolumeName="vol_home1";&lt;BR /&gt;$path="/"+"$VolumeName"+"/";&lt;BR /&gt;$Vserver="vser_cifs";&lt;/P&gt;&lt;P&gt;$username="admin";&lt;BR /&gt;$password="netapp123";&lt;BR /&gt;$PWord = ConvertTo-SecureString –String $password –AsPlainText -Force&lt;BR /&gt;$credential=New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $username, $PWord&lt;BR /&gt;Connect-NcController $Cluster -Credential $credential;&lt;BR /&gt;Add-NcCifsShare -Name $ShareName -Path $Path -VserverContext $Vserver;&lt;/P&gt;&lt;P&gt;New-NcDirectory /vol/vol_home1/$ShareName/xyz -Permission 0755 -Controller $global:CurrentNcController -VserverContext $Vserver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote above script it is creating the folder inside share but giving error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New-NcDirectory : No such file or directory&lt;BR /&gt;At line:15 char:1&lt;BR /&gt;+ New-NcDirectory /vol/vol_home1/$ShareName/rutulshah -Permission 0755 -Controller ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (10.63.52.69:NcController) [New-NcDirectory], EONTAPI_ENOENT&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.File.NewNcDirectory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 11:24:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/102333#M1474</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2015-03-26T11:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell DataONTAP cmdlet New-NcDirectory</title>
      <link>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/128214#M2099</link>
      <description>&lt;P&gt;I know this is quite an old topic I am replying to, but in case any one else searching for a similar solution, here is the PowerShell command I got to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PS D:\&amp;gt; New-NcDirectory -VserverContext SVM_NAME &amp;nbsp;-Permission 777 /vol/root_volp/folder1/folder2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the absense of a trailing '/' in the path. Like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/6820iCB107E1D5AA8E787/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 22:12:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/128214#M2099</guid>
      <dc:creator>chvvkumar</dc:creator>
      <dc:date>2017-02-16T22:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell DataONTAP cmdlet New-NcDirectory</title>
      <link>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/128219#M2100</link>
      <description>&lt;P&gt;Did you try enclosing the path in quotes? Perhaps it's not parsing the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;New-NcDirectory "/vol/vol_home1/$ShareName/xyz" -Permission 0755 -Controller $global:CurrentNcController -VserverContext $Vserver&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 04:52:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/m-p/128219#M2100</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2017-02-17T04:52:39Z</dc:date>
    </item>
  </channel>
</rss>

