PowerCLI

 View Only
  • 1.  View all Scheduled Tasks of VMs

    Posted Nov 13, 2017 06:13 PM

    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?



  • 2.  RE: View all Scheduled Tasks of VMs

    Posted Nov 13, 2017 06:54 PM

    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



  • 3.  RE: View all Scheduled Tasks of VMs

    Posted Nov 13, 2017 07:15 PM

    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.



  • 4.  RE: View all Scheduled Tasks of VMs

    Posted Jan 02, 2019 09:31 AM

    very helpful

    Thanks,



  • 5.  RE: View all Scheduled Tasks of VMs

    Posted Jul 20, 2020 07:21 AM

    Hi

    how i can delete this scheduled tasks by PowerCLI?

    Best Regards



  • 6.  RE: View all Scheduled Tasks of VMs

    Posted Dec 23, 2020 09:27 PM

    Guessing you no longer need the remove script, but it was posted here a month later 

    https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/vSphere-6-7-VCSA-Cannot-Edit-Scheduled-tasks-through-GUI-need-to/td-p/2313569

     

    modify or remove  where{$_.Info.Name -match 'PRE WSUS'} 



  • 7.  RE: View all Scheduled Tasks of VMs

    Posted Dec 23, 2020 11:35 PM

     

    Moderator: Moved to PowerCLI Discussions