Forum Discussion
Todd_Lange
Jan 21, 2022Copper Contributor
How can I filter the result of Get-PhysicalDisk by both CanPool=$True and IsPartial=$False
I'm just learning PowerShell, so I'm a bit green. I want to filter the output of Get-PhysicalDisk by 'CanPool=$True and IsPartial=$False' and use that as the input argument to New-StoragePool in ...
Jonathan_Allen
Jan 31, 2022Brass Contributor
(Not got any disks I can check your parameter values on here) Does this give you a boost ?
Get-PhysicalDisk -CanPool $false |where {-not $_.ispartial }