NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

prevent Remove-Navol asking for confirmation

francoisbnc
4,944 Views

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
4,944 Views

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

sharu
4,945 Views

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

kandati
4,944 Views

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

Public