Active IQ Unified Manager Discussions

prevent Remove-Navol asking for confirmation

francoisbnc

Command Remove-Navol ask for confirmation and stop the workflow with this error

Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available

Is there a way to bypass that.

Help apprecied

francois

1 ACCEPTED SOLUTION

sharu

Hi Francois,

Please use:

Remove-navol -Name <volume name>  -Confirm:0

Please make sure you make the volume offline before you remove it by doing the following:

Set-NaVol  <volume name> -Offline

-Sharu

View solution in original post

2 REPLIES 2

kandati

Hi,

Please follow the below standard syntax when removing the volume,

Set-NaVol -Name <vol-name> -Offline -ErrorAction stop

Remove-NaVol -Name  <vol-name> -Confirm:$false -ErrorAction stop

Warm Regards

Sivaprasad K

sharu

Hi Francois,

Please use:

Remove-navol -Name <volume name>  -Confirm:0

Please make sure you make the volume offline before you remove it by doing the following:

Set-NaVol  <volume name> -Offline

-Sharu

View solution in original post

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public