Microsoft Virtualization Discussions

count of disks

JSHACHER11
2,668 Views

how do I get a count of disks based on module connection?

something like this:

(Get-NaDisk 0a.*).Count | ? {$_.port -eq "A"} | fl

cheers

1 ACCEPTED SOLUTION

JSHACHER11
2,668 Views

got it:

$a = (Get-NaDisk 0a.*).Count | ? {$_.port -eq "A"}

$a.count

View solution in original post

1 REPLY 1

JSHACHER11
2,669 Views

got it:

$a = (Get-NaDisk 0a.*).Count | ? {$_.port -eq "A"}

$a.count

Public