Validating connection result of Connect-VIServer is trick since VMware doesn’t use the standard way of throwing errors.
There are plenty of scripts to find tagged ESXi hosts. But what if you want to find out all ESXi hosts not be tagged? Following is a simple script: Compare-Object ((Get-VMHost | Get-TagAssignment).Entity | select -uniq) (Get-VMHost) The output is similar like following: InputObject SideIndicator ———– ————- esx1 => esx2 => esx3 => […]
Reporting is important to management. To be a IT Pro, you may need to run regular reports for management. Some reports may be generated time consume. vRealize Operations Manager is an alternative to create customized reports. It’s a powerful product to organize data and create PDF or CSV files on scheduled intervals. I recommend have […]
I wrote an article to introducing how to integrate PowerCLI with PowerShell and PowerShell ISE. VMware just released PowerCLI 6.5 R1, it includes lot of new features and modules. And somehow my way doesn’t work. Following is new way to integrate PowerCLI 6.5 with PowerShell and PowerShell ISE in Windows 10. PowerShell and PowerShell ISE […]
It’s frustration to check RDM information, you have to check across all ESXi hosts to make sure configuration is aligned. I just figured out two line commands to get path selection policy (aka PSP).
I always treat virtual machine snapshots like a big risk. It caused several outages in our infrastructure. Please check out Best practices for virtual machine snapshots in the VMware to understand how it impacts production. 虚拟机快照对我来说绝对是个大威胁，已经在我的生产环境里发生过好几次由此引发的故障了。如果你要了解快照对生产环境的影响可以看看：Best practices for virtual machine snapshots in the VMware
I wrote a post about how to integrate PowerCLI with PowerShell manually. I rebuilt my computer few days ago, need to integrate PowerCLI again. I used to scripting by PowerGUI, but something always lead to PowerGUI lost menu, it frustrated me a long time. I cannot figured out what’s the root cause. So I wondered […]