<?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: Set-NaDiskOwner in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39061#M1773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Anton.&amp;nbsp; You can specify the disks in various ways, including using wildcards:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;All disks&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;One disk&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk 0c.89 | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;All disks on a channel&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk 0c.* | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Multiple specific disks&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk 0c.89 1c.61 | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Unowned disks&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDiskOwner -OwnershipType unowned | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you suggest, you could also create a text file with disk names, import that into a string array, and pipe the array into &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 20:18:43 GMT</pubDate>
    <dc:creator>cknight</dc:creator>
    <dc:date>2010-10-21T20:18:43Z</dc:date>
    <item>
      <title>Set-NaDiskOwner</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39048#M1771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks, I am experimenting with the powershell and I wanted to set an owner on a bunch of disks. &lt;/P&gt;&lt;P&gt;I have about 12 disks I want to set owner to one of the controllers, so how I can put it in a script ?&lt;/P&gt;&lt;P&gt;should i use a text file and just include the disk ID's there, like 0c.89 and 1c.61 etc.... and then pass the file through the Set-NaDiskOwner cmdlet&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Anton&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/Set-NaDiskOwner/m-p/39048#M1771</guid>
      <dc:creator>lebedevanton</dc:creator>
      <dc:date>2025-06-05T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set-NaDiskOwner</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39052#M1772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Who owns them now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the -Name parameter expects a string.&amp;nbsp; You could create an array and pipe that to set-nadiskowner.&amp;nbsp; It's possible to be a bit more creative as well depending on what you're trying to do.&amp;nbsp; Get-nadiskowner returns objects that include a -Name property, a string, which is the name of the disk.&amp;nbsp; On set-nadiskowner, the -Name parameter accpts pipeling input bypropertyname...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say that I add a new shelf and want to assign all the disks to a&amp;nbsp; specific controller, controller1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$controller1=get-nacontroller controller1&lt;/P&gt;&lt;P&gt;get-nadiskowner -OwnershipType unowned | set-nadiskowner -Controller $controller1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or perhaps I have a shelf that came from another controller and have now attached it to controller1 and wish to take ownership of all the disks with unknown ownership and assign them to controller1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$controller1=get-nacontroller controller1&lt;/P&gt;&lt;P&gt;get-nadiskowner -OwnershipType Unknown | set-nadiskowner -Controller $controller1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 19:09:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39052#M1772</guid>
      <dc:creator>fjohn</dc:creator>
      <dc:date>2010-10-21T19:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set-NaDiskOwner</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39061#M1773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Anton.&amp;nbsp; You can specify the disks in various ways, including using wildcards:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;All disks&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;One disk&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk 0c.89 | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;All disks on a channel&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk 0c.* | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Multiple specific disks&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk 0c.89 1c.61 | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Unowned disks&lt;/SPAN&gt;:&amp;nbsp; &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDiskOwner -OwnershipType unowned | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you suggest, you could also create a text file with disk names, import that into a string array, and pipe the array into &lt;SPAN style="font-family: courier new,courier;"&gt;Get-NaDisk&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 20:18:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39061#M1773</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2010-10-21T20:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set-NaDiskOwner</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39070#M1774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is perfect, thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 16:56:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39070#M1774</guid>
      <dc:creator>lebedevanton</dc:creator>
      <dc:date>2010-10-28T16:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set-NaDiskOwner</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39074#M1775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(I am not in front of my NetApp at this time &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be equal to this command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;disk assign -n 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: 'courier new', courier; background-color: #ffffff;"&gt;Get-NADisk | Select -First 8 | Set-NaDiskOwner $controllerName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to assign all of the disks in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 21:03:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39074#M1775</guid>
      <dc:creator>OMARR1124</dc:creator>
      <dc:date>2012-03-19T21:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set-NaDiskOwner</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39078#M1776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Omarr, that should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 20:25:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Set-NaDiskOwner/m-p/39078#M1776</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2012-03-20T20:25:32Z</dc:date>
    </item>
  </channel>
</rss>

