Powershell for usage
# Input and Output Configuration $ServerList = Get-Content -Path "C:\ServerList.txt" # Replace with your server list file path $OutputFile = "C:\VM_Resource_Usage_Report.csv" # Replace with desired output file path $MaxThreads = 20 # Adjust number of concurrent threads based on system capacity $Interval = 15 # Interval in minutes for pending replication size # Define Runspace Pool $RunspacePool = [runspacefactory]::CreateRunspacePool(1, $MaxThreads) $RunspacePool.Open() $Jobs = @() # Function to Get Resource Usage for a VM Function Get-VMResourceUsage { param($Server) try { $Results = @() Invoke-Command -ComputerName ...