Microsoft Virtualization Discussions

Problem using Powershell to delete QTrees without prompting for confirmation

wschon
5,446 Views

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!

1 ACCEPTED SOLUTION

cknight
5,446 Views

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

View solution in original post

3 REPLIES 3

cknight
5,447 Views

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

wschon
5,446 Views

Hello Clinton,

Thank you soooo much!!  That worked perfectly!!

Thanks again!

Walter

wschon
5,446 Views

Hello Clinton,

Thank you soooo much!! That worked perfectly!!

Have a great day!

Thanks again!

Walter

Public