Some Basic #PowerCLI using foreach to modify #NTP and do #ESXi host backups #vExpert
You will have seen my earlier post about learning PowerShell, and now I am using what I think is one of the best things about PowerShell……The foreach loop. I have seen it used many times, and never fully understood it, I kind of got what it did, but now I am getting it into my head and I have been using it to try and various things. So I have been doing more bits in PowerCLI to help improve my scripting skills and just to see if I can make my life easier. Modifying NTP settings on multiple ESXi hosts There is a known bug in PowerCLI 10 where Remove-VMHostNtpServer looks like it has worked, but does not actually do […]