KB: Automate the adding / removing / updating of a VMware connection (Using the powershell module)
Automate VMware connections using PowerShell
In some situations you may need to manage many vCenter or Esx Hosts connections. Ordinarily you would use the "Opslogix VMware Configuration Dashboard" for adding and removing connections, however this can be very time consuming using the GUI.
Since V20.11.x.x we have shipped a Powershell module to manage connection. By using the Opslogix VMware powershell module you can add and remove connections and you are able to assign host licenses. All examples are based on adding or modifying 1 connection. But you can easily change the script to handle multiple connections if needed.
You will need already to have a valid VMware license imported using the licensing dashboard.
This module is part of the software bundle. You will need to copy and import this module on the SCOM Management server where the Collector is installed.
Example script how to add a vCenter / Esx Host connection
## Notice: needs to be executed on a SCOM server were the Opslogix VMware collector is installed. |