I did some further testing and it looks as if the TaskManager has no option of providing all the Tasks that the Web Client is showing.
The only way I can get those Tasks is by retrieving all TaskEvent entries with Get-VIEvent or my Get-VIEventPlus function.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
------------------------------
Original Message:
Sent: Dec 18, 2024 09:18 AM
From: ganapa2000
Subject: How to get ESXi Tasks info from all Hosts
Thank you LucD. I will wait for your update.
Original Message:
Sent: Dec 18, 2024 08:26 AM
From: LucD
Subject: How to get ESXi Tasks info from all Hosts
I observed the same.
It looks as if not all Tasks shown in the VCSA are kept under the TaskManager anymore.
I'll check if I can find how to list all tasks
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Dec 18, 2024 03:47 AM
From: ganapa2000
Subject: How to get ESXi Tasks info from all Hosts
LucD,
I called as below
Get-TaskPlus -Start (Get-Date).AddDays(-7) -MaxSamples ([int]::MaxValue) -Details | Export-Excel -Path "D:\reports\Prod_All_Tasks_Info.xlsx"
Original Message:
Sent: Dec 18, 2024 03:40 AM
From: LucD
Subject: How to get ESXi Tasks info from all Hosts
How did you call the function?
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Dec 18, 2024 02:51 AM
From: ganapa2000
Subject: How to get ESXi Tasks info from all Hosts
Hi,
How to get the Tasks and Events Informaiton of all ESXi hosts from last 7 days. I tried Get-Taskplus function, it is not showing ESX tasks related to changes made on the ESXi, HA changes, etc
Please help!!