Tag: PowerCLI
I recently ran into a problem were virtual machines running Windows 8 and Server 2012 don’t ever come back from a reboot, but rather get stuck on the Windows boot splash screen. The only work around to get the machine to boot is to manually power it off and then power it on again.
Good news is, there is a solution to this crazy weirdness; and it is documented below…
Recently I needed to find if any virtual machines had been deployed or cloned on a particular day (in order to troubleshoot a storage issue).
The Tasks & Events view in the VI client only shows the last few days of events, so if you need to get events from an older date the only way is through PowerCLI.
Here is how to do get a list of events from vCenter Server using PowerCLI…
Important Update
As of September 2015, I have released version 2 of my PowerCLI Script Template, which includes a number of improvements over this version, in particular the use of the new PSLogging PowerShell module that significantly improves the creation and management of log files. This version of the template is no longer supported or maintained, so please upgrade to the new version today!
Version 2 of the template is available here – PowerCLI Script Template v2.
A while a go I posted up my PowerShell Script Template which turned out to be pretty popular with fellow PowerShellers.
I recently create another slightly modified template when working with PowerCLI, so I thought I would share it here. Here is my PowerCLI Script Template to be used for all your VMware scripts…
Recently I had to patch some ESXi hosts that weren’t being managed via Update Manager. This means that the only way was to patch them manually. The best way I find to do this is via PowerCLI which is just PowerShell cmdlets for vSphere. I thought I would make a post about it in case anyone else needed to do the same…