VMware Cloud Community
nary4484
Enthusiast
Enthusiast

Help creating a process to restart or refresh only available VM's in a specific pool

Pretty new to administering Horizon View and haven't used much of CLI (nor powershell).  I am wanting to create a process that will either restart, delete, or recompose all available VM's in a particular pool and every 8-12 hours.

I'm sure there is a way to automate this process.  Could anyone point me some resources to this specific task?  Or possibly give me a head start?

0 Kudos
1 Reply
LucD
Leadership
Leadership

To schedule this script, you can have a look at the Windows Task Scheduler.

That should allow you to run the script every 12 hours.

For example have a look at Create Scheduled Tasks with PowerCLI to Call PowerShell Scripts.

To restart the VMs, have a look at Automating VMware Horizon 7 with VMware PowerCLI 6.5


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos