I have been trying to use the “Shared Scripts” feature, but I must have something incorrect in the .ps1 file. I do have it in the Scripts folder of the host PowerCLI server. Can someone check my script if it’s correct?
param
(
[Parameter(Mandatory=$true)]
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]
$vParam
);
Get-VM | Get-VMResourceConfiguration | where {$_.CPUReservationMhz -ne ‘0’}