PowerCLI: Configuring NTP Service on ESXi Hosts

I was recently required to configure the time configuration on multiple ESXi hosts in a number of clusters, with the below requirements: Set the NTP Server(s) Enable firewall service to permit outbound connections for the NTP client. Start the NTP Daemon service Configure the NTP Daemon service startup policy to be ‘start and stop with host’ … More PowerCLI: Configuring NTP Service on ESXi Hosts

PowerCLI: Retrieve VMs where CPU or Memory Reservation has been enabled

The below script block will retrieve VMs where either or both CPU and Memory reservation has been configured and return the value by using the Get-VM cmdlet and retriving the value of both the ‘ExtensionData.ResourceConfig.CpuAllocation.Reservation’ and ‘ExtensionData.ResourceConfig.MemoryAllocation.Reservation’ properties.   $VMs = Get-VM | Where-Object {$_.ExtensionData.ResourceConfig.MemoryAllocation.Reservation -ne “0” -or $_.ExtensionData.ResourceConfig.CpuAllocation.Reservation -ne “0”} ForEach ($VM in $VMs) … More PowerCLI: Retrieve VMs where CPU or Memory Reservation has been enabled