Microsoft Virtualization Discussions

Problem using Powershell to delete QTrees without prompting for confirmation

wschon

Hello, I am trying to use PowerShell to remove hundreds of qtrees, but it keeps prompting me to confirm for each qtree.  I am using "Remove-NaQtree -Force /vol/vol2/XXX".  I have tried using the "-Confirm", but cannot find much info on that switch, even in the full man page.

Any ideas would be greatly appreciated.

Thank you!

3 REPLIES 3

Re: Problem using Powershell to delete QTrees without prompting for confirmation

cknight

Try this:  Remove-NaQtree -Force /vol/vol2/XXX -Confirm:$false

View solution in original post

Re: Problem using Powershell to delete QTrees without prompting for confirmation

wschon

Hello Clinton,

Thank you soooo much!!  That worked perfectly!!

Thanks again!

Walter

Re: Problem using Powershell to delete QTrees without prompting for confirmation

wschon

Hello Clinton,

Thank you soooo much!! That worked perfectly!!

Have a great day!

Thanks again!

Walter

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public