When I began working with a new client on their Virtualization Broadcom VMware project, I encountered several ESXi servers that were already deployed and connected to vCenter servers. Since I was new to the project, I found that the root passwords for some of these ESXi servers were undocumented and…
Blog posts : "powercli"
Broadcom VMware PowerCLI based ESXi capacity planner html web portal
I had a requirement to provide a solution for monitoring ESXi servers' CPU, memory, and datastore usage to non-IT or developer users without giving them direct access to vCenter or ESXi servers. The solution needed to avoid using any additional applications or tools. Previously, I had set up a syste…
Staging vCenter Server Appliance (VCSA) updates using Rest API
This script is a another part of Upgrade vCenter Server Appliance (VCSA) with VMware PowerCLI. In this article I am using Rest API calls to update VCSA via VAMI. At the moment I am able to stage the updates, but installation of update to vCenter is not working. Once I get solution I will revise thi…
Upgrade vCenter Server Appliance (VCSA) with VMware PowerCLI
I had bunch of vCenter Server appliance (VCSA) to update/upgrade. Although the upgrade process using vCenter Server VAMI portal (5480) is fairly very simple and easy as shown in Patching update VMware vCenter Server Appliance from a zipped update bundle Web server. But I wanted it to get it automat…
VMware PowerCLI Clone VM from template with customization specs in vCenter
This is a second alternative script to VMware PowerCLI Clone and Deploy VM from template in vCenter. In earlier article I did customization of newly cloned Virtual Machine using Windows PowerShell commands which I executed using Invoke-VMscript. Here in this script I used inbuilt customization pro…
VMware PowerCLI Clone and Deploy VM from template in vCenter
This VMware PowerCLI helps cloning and deploying Virtual Machine from template in vCenter Server. I had to write OS customization for Windows 2019 server because due to some reason native customization profile was failing. Here in this script there are 3 files in the script package, first file is
PowerCLI enable or disable WBEM service on VMware ESXi server
The VMware Host Hardware (WBEM) sensor monitors information about the hardware of an ESXi server using Web-based Enterprise Management (WBEM). This script will disable and enable WBEM service using PowerCLI.
Download this Set-WbemServiceEsxi.ps1 here or it is also available on github.com/janviu…
Vmware PowerCLI Import-Module message VMware Customer Experience Improvement Program (CEIP)
When you run the command to Import-Module VMware.PowerCLI on Powershell, You might have received the below warning message regarding VMware CEIP (Customer Experience Improvement Program).
VMware's Customer Experience Improvement Program (CEIP) collects technical information from participating …
Create List or Remove VMware VM Snapshots with PowerCLi
This is very handy and useful PowerCLI script, when I do my labs or production deployment changes on VMware environment. Whenever I have multiple servers to make changes and wants to ensure no problem should occur after changes, I take temporary VMware snapshots. But working with snapshot manually i…
PowerCLi Connect-VIServer could not connect using the requested protocol
There is a common issue you might have faced while connecting to either vCenter server or Esxi Server using Vmware PowerCLI.
Connect-VIserver $esxiServer -User $user -Password $password
Connect-VIServer could not connect using the requested protocol.
Additional Information: The remote server…
PowerCLI The SSL connection could not be established see inner exception
Recently while working with Vmware PowerCLI on one of my new laptop, when connecting to esxi server and vCenter server with Connect-VIserver command, I was receiving below error.
Connect-VIServer $esxiserver -User $user -Password $password
Connect-VIServer The SSL connection could not be estab…
VMware.PowerCLI install update error - Install-Package: Authenticode issuer
I had a project to automate and upgrade VMware infrastructure. I had given few of the basic tasks to my fellow juniors to update VMware.PowerCLI modules on few servers and run script on the systems. But while upgrading VMware PowerCLI they were receiving below errors.
PackageManagement\In…
VMware PowerCLI Find vCenter server name of any inventory object
In my daily use of Vmware PowerCLI scripts while pulling inventory from vCenter Server, I always include vCenter Center name in the inventory. For example if I am fetching list of Clusters or VMs with complete information it should include a property name of vCenter Server, where the object belongs.…
PowerCLI Gather complete Virtual Distributed Switch (VDS) information from VMware vCenter
While working at different clients on their VMware infrastructure, I always gather complete inventory of a vCenter infrastructure first before doing any changes or designing a solution. This way I get to know very quick about the architecture. Here is my script which fetches all VDS (Virtual Distrib…
PowerCLI Connect-VIServer Error: Invalid server certificate. Use Set-PowerCLIConfiguration to set the value for the InvalidCertificateAction
While working with VMware PowerCLI module I was receiving below error, when connecting to vCenter or ESXi server. The system where I was working on, PowerCLI was installed for first time and I was connecting to vCenter/ESXi for first time from the system. This issue occurs due to SSL certificate ins…
Create a custom TCPIP stack on ESXi server - VMware PowerCLI GUI
While working with my VMware team we had to audit and create or delete TCP/IP network stack, Here on the ESXi server under Networking >> TCP/IP Configuration you cannot create new custom stack using vSphere client. I was able to automate almost all infrastructure using PowerCLI scripts, but few…
VMware PowerCLI esxcli namespace command elements empty no output
This article is another part and related to this VMware PowerCLI Connect-VIServer Object reference not set to an instance of an object. The resolution used in the earlier blog is applied here in this article.
The problem description is, I connected to my vCenter server after I tried to connect…
VMware PowerCLI Connect-VIServer Object reference not set to an instance of an object
While connecting to ESXi server with VMware PowerCLI from one of my server I was keep receiving below error. I wasn't able to connect to ESXi server directly from PowerCLI module.
@SERVER01 ~ Connect-VIServer ironman.vcloud-lab.com
Connect-VIServer : Object reference not set to an instanc…
Powershell GUI VMware ESXi custom patch bundle builder
Every time VMware releases ESXi patches, and I need to patch them on different projects with few modifications to patch bundle, by trimming down few driver VIBs packages or add third party driver vibs zip files packages. I do everything with PowerCLI commands. But as I wanted my colleage to perform …
VMware PowerCLI The remote server returned an error: (407) Proxy Authentication Required
"The remote server returned an error: (407) Proxy Authentication" - This is another issue I faced when working with VMware PowerCLI, Although I had already resolved another error in VMware PowerCLI Connect-VIserver Could not connect using the requested protocol, Only the difference was it was not …
Blog Search
Page Views
12406505
Archive
- December 2024 (1)
- November 2024 (2)
- October 2024 (7)
- September 2024 (12)
- August 2024 (22)
- July 2024 (11)
- June 2024 (1)
- May 2024 (3)
- April 2024 (5)
- November 2023 (1)
Comments
-
raghavendraJanuary 16, 2025 02:13PM
-
jose antonioJanuary 11, 2025 09:53PM
-
DanDecember 22, 2024 10:49PM
-
ChriSDecember 1, 2024 05:27PM
-
GoranshOctober 19, 2024 10:32AM