Hi,
In my script I want to remove a list of volumes, and I want to do so without it prompting me with the "Are you sure you want to destroy..." message.
Here's the section of the script I am referring to:
foreach ($VOL in $vol_list)
{
Set-NaVol $VOL -offline | Remove-NaVol
}
However when I run this it prompts with the "Are you sure you want to destroy volume ..." and you need to answer "Y" or hit enter to continue, and again for every volume in the list. How can I force this to just happen without user intervention?
Thanks,
Corey