Quantcast
Channel: VMware Communities : Popular Discussions - VMware ESX 4
Viewing all articles
Browse latest Browse all 36074

Auto-delete snapshots via script

$
0
0

Hi Guys,

 

I would like to configure a script in Windows Task Scheduler to automatically delete VM snapshot(s) older than 3 days. I copied the script here (credits to the folks who posted it). Then, I configured the task by following this great post. So I got this script (see attached) and I have these settings on the task that I've created (see attached zip containing the images).

 

Program/script: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe

Add arguments (optional): -PSConsoleFile "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" "& "C:\auto_delete.psc1""

 

Now, I'm not sure what could be wrong as the task seems to be being held up as I have check the running tasks. I even tried running the task manually and the same thing happens. It just created instance that wont finish (see attached). Can you let me know guys what I could be missing here to get this working properly?

 

Thanks advanced!

 

Arnel


Viewing all articles
Browse latest Browse all 36074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>