- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
View all Scheduled Tasks of VMs
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
very helpful
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
how i can delete this scheduled tasks by PowerCLI?
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Moderator: Moved to PowerCLI Discussions
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog