Subscribe

Add disks to aggr with powershell

This may seem like a joke question but how do I add disks to an aggregate from powershell. From the command line I just do (aggr agg aggr1 11) if I want to add 11 disks to an aggregate. How can I script this?

Re: Add disks to aggr with powershell

Nevermind, I got it...just a brain fart.

Add-NaAggr -Name aggr0 -diskcount 11

done like dinner.