Does anyone know if there is a way to view all Scheduled Tasks of all VMs from vCenter? Is there potentially a PowerCLI command that could be used to gather this information?
Hello,
Am not good with powercli but i found this if it is helpful for you.
Task/Events for a ESX or VM: PowerCLI script
Thanks,
MS
In PowerCLI you can accomplish this with a Get-View of the ScheduledTaskManager object like so.
(Get-View ScheduledTaskManager).ScheduledTask | %{(Get-View $_).Info} | Select Name,NextRunTime
It will return for any object in the system. For example, if I schedule two power on tasks for a couple of VMs, I can run this pipeline without specifying those individual objects.
very helpful
Thanks,
Hi
how i can delete this scheduled tasks by PowerCLI?
Best Regards
Guessing you no longer need the remove script, but it was posted here a month later
modify or remove where{$_.Info.Name -match 'PRE WSUS'}
Moderator: Moved to PowerCLI Discussions