Tag: Script
-
“The terminal process terminated with exit code: 1” in Visual Studio Code when open PowerShell file
in ScriptWhen you open a PowerShell file in Visual Studio Code, you may see following error: The terminal process terminated with exit code: 1 The issue usually occurred on new provisioned system or enterprise environment with restricted security policy. The reason and solution are same like my other post: “Timed out waiting for the PowerShell extension…
-
Authentication failed when clone git repository on Windows for Bitbucket
Authentication failed for git repository clone
-
Validating Connection Result of Connect-VIServer
Validating connection result of Connect-VIServer is trick since VMware doesn’t use the standard way of throwing errors.
-
Show CDP Neighbor of Cisco UCS Uplinks
There are two ways to know which network switch ports the network uplinks of Cisco UCS Fabric Interconnects are connected to. By CLI SSH to the Cisco UCS Manager. Connect to FI-A. # connect nxos a Show neighbor of network uplinks. # show cdp neighbor interface ethernet <port num> By PowerShell Make sure Cisco PowerTool…
-
How To Find Non-tagged ESXi Hosts
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 =>…
-
Automatic vSphere Capacity Report in PPT
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…
-
How to Integrate PowerCLI 6.5 with PowerShell and PowerShell ISE
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…
-
How to retrieve or set Path Selection Policy by vCLI
First of all, this article is nothing related to PowerCLI. You probably know how to set Path Selection Policy (PSP) by vSphere Client, but how you can set up 100 LUNs manually? We have some script can make your life easy.