<?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 Error When creating Flexclone through PS in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-When-creating-Flexclone-through-PS/m-p/45838#M2164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;$Filer = "netappfiler2"&lt;BR /&gt;$narootpasswd = "randompass"&lt;BR /&gt;################################&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$password = ConvertTo-SecureString "randompass" -AsPlainText -Force&lt;BR /&gt;$Cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "root",$password&lt;BR /&gt;Connect-NaController netappfiler2 -Credential $Cred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New-NaVolClone -ParentVolume /vol/aspdbdtvdr2 -CloneVolume /vol/eqxdbdr01_newb -Controller $Filer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error I receive, its seems the controller connects but something else is going&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;New-NaVolClone : Incorrect credentials for netappfiler2.&lt;BR /&gt;At C:\Users\bhilyer\Desktop\script.ps1:11 char:15&lt;BR /&gt;+ New-NaVolClone &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; -ParentVolume /vol/aspdbdtvdr2 -CloneVolume /vol/eqxdbdr01_newb -Controller $Filer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (NetApp.Ontapi.Filer.NaController:NaController) [New-NaVolClone], NaAuthException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Volume.NewNaVolClone&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 07:06:44 GMT</pubDate>
    <dc:creator>brandon_hilyer</dc:creator>
    <dc:date>2025-06-05T07:06:44Z</dc:date>
    <item>
      <title>Error When creating Flexclone through PS</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-When-creating-Flexclone-through-PS/m-p/45838#M2164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;$Filer = "netappfiler2"&lt;BR /&gt;$narootpasswd = "randompass"&lt;BR /&gt;################################&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$password = ConvertTo-SecureString "randompass" -AsPlainText -Force&lt;BR /&gt;$Cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "root",$password&lt;BR /&gt;Connect-NaController netappfiler2 -Credential $Cred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New-NaVolClone -ParentVolume /vol/aspdbdtvdr2 -CloneVolume /vol/eqxdbdr01_newb -Controller $Filer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error I receive, its seems the controller connects but something else is going&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;New-NaVolClone : Incorrect credentials for netappfiler2.&lt;BR /&gt;At C:\Users\bhilyer\Desktop\script.ps1:11 char:15&lt;BR /&gt;+ New-NaVolClone &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; -ParentVolume /vol/aspdbdtvdr2 -CloneVolume /vol/eqxdbdr01_newb -Controller $Filer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (NetApp.Ontapi.Filer.NaController:NaController) [New-NaVolClone], NaAuthException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Volume.NewNaVolClone&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:06:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-When-creating-Flexclone-through-PS/m-p/45838#M2164</guid>
      <dc:creator>brandon_hilyer</dc:creator>
      <dc:date>2025-06-05T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error When creating Flexclone through PS</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-When-creating-Flexclone-through-PS/m-p/45843#M2166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Brandon.&amp;nbsp; The value of $Filer in your code is just a string, which isn't what the -Controller argument of Toolkit cmdlets expects.&amp;nbsp; See &lt;A _jive_internal="true" href="https://community.netapp.com/thread/11509" target="_blank"&gt;this post&lt;/A&gt; for examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something more like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier; "&gt;&lt;SPAN style="color: #ff0000;"&gt;$FilerName&lt;/SPAN&gt; = "netappfiler2"&lt;BR /&gt;$narootpasswd = "randompass"&lt;BR /&gt;################################&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier; "&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier; "&gt;$password = ConvertTo-SecureString "randompass" -AsPlainText -Force&lt;BR /&gt;$Cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "root",$password&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;$Filer&lt;/SPAN&gt; = Connect-NaController &lt;SPAN style="color: #ff0000;"&gt;$FilerName &lt;/SPAN&gt;-Credential $Cred&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier; "&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier; "&gt;New-NaVolClone -ParentVolume /vol/aspdbdtvdr2 -CloneVolume /vol/eqxdbdr01_newb -Controller $Filer&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 19:56:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-When-creating-Flexclone-through-PS/m-p/45843#M2166</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2010-10-21T19:56:00Z</dc:date>
    </item>
  </channel>
</rss>

