Microsoft Virtualization Discussions

Get-nadiskowner - feature request

JGPSHNTAP

Unless Im missing something, (totally possible)

can get-nadiskowner where disks are unowned, the value is null, which is true, b/c there is no owner, but can it be similiar to the cli where it states "not owned"

1 REPLY 1

JGPSHNTAP

The way i've gotten around this so far was the following

$a = get-nadiskowner | group owner

$globalarray = @()

$a | % {

$custom = new-object psobject

if ($_.name -eq "") { $var = "unowned"} else { $var = $_.name}

add-member -inputobject $custom -membertype noteproperty -name "Filer" -value $var

add-member -inputobject $custom -membertype noteproperty -name "# of Drives" -value $_.count

$globalarray += $custom

}

$global | ft -autosize

Filer      # of Drives

-----      -----------

filera         76

filerb         83

unowned    24

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public