Monthly Archives: September 2015

Day 2 Day PowerCli scripts @Work

PowerCLi OneLiners :- Please test before you run in production.¬† #Find HA restarted VM’s Get-Cluster “Cluster-name” | Get-VM | Get-VIEvent | where {$_.FullFormattedMessage -match “vSphere HA restarted virtual machine”} | select ObjectName,CreatedTime,FullFormattedMessage¬†   #Update NTP Servers Get-Cluster “Cluster-Name” | Get-VMHost | Sort Name | %{ $_ | Remove-VMHostNtpServer -NtpServer ($_ | Get-VMHostNtpServer) -Confirm:$false $_ |

Read More