Use below script to generate data store utilization report cluster wise : $report = @() foreach($cluster in Get-Cluster){ Get-VMHost -Location $cluster | Get-Datastore | %{ $info = “”…
Category: PowerCLI Snippets
PowerCLI Snippets Tutorial
Configuration Import/Export vCenter Roles #Export Role $role = Get-VIRole -Name “MyRole” |Get-VIPrivilege; $role.id -join “,” #Import Role (Use the output from the command above) New-VIRole -Name “MyRole” -Privilege (Get-VIPrivilege -Id…