Reply to Message

View discussion in a popup

Replying to:
dactech
Contributor
Contributor

(Hoping that this post isn't dead)

When I ran this script from the run line (as mention in the earlier post) the Powershell window came up and I was prompted to confirm the deletion of the snapshots by entering "Y" or "A" (for yes to all). After entering "A" the script completed and my snapshots were gone...

However, When I attempted to run as a scheduled task, The task hung and did not complete. I could see the Powershell app running in the Task Manager processes and the scheduled task stated "running" but since no Powershell window popped up. I'm guessing it still needed a confirmation to delete snapshots and therefore wouldn't complete.

What would be the syntax  for in the script to have the confirmation built in?

Thx for any help that can be provided.

Reply
0 Kudos