Microsoft Virtualization Discussions

Remove-NAVol Confirm Switch

darobbins
3,962 Views

When using the  remove-navol I always get a confirmation pop-up, even if I do not use the '-confirm'.  Is there a way around this?

1 ACCEPTED SOLUTION

ekashpureff
3,962 Views

From an earlier post:

You can simply append -Confirm:$false to your Remove-NaVol command like so;

Set-NaVol $VOL -offline | Remove-NaVol -Confirm:$False

At your service,

Eugene Kashpureff

View solution in original post

3 REPLIES 3

ekashpureff
3,963 Views

From an earlier post:

You can simply append -Confirm:$false to your Remove-NaVol command like so;

Set-NaVol $VOL -offline | Remove-NaVol -Confirm:$False

At your service,

Eugene Kashpureff

darobbins
3,962 Views

I was missing the colon, I will test tonight.  Thanks!

cknight
3,962 Views

You can also use the ConfirmPreference setting:

http://communities.netapp.com/thread/9358

Public