Untitled
Install-Module -Name Commvault Connect-CVServer -Server <NombreServidor> $clientes = Get-CVClient $ultimasCopias = @() foreach ($cliente in $clientes) { $ultimaCopia = Get-CVJob -ClientId $cliente.ClientId -JobType Backup | Sort-Object -Property StartTime -Descending | Select-Object -First 1 | Select-Object ClientName, OSName, AgentType $ultimasCopias += $ultimaCopia } $ultimasCopias | Export-Csv -Path "C:\Ruta\Archivo.csv" -NoTypeInformation