Powershell Command to Add VMHost to Vcenter Server
- Powershell has been so much part of life that almost all products provide powershell cmdlets to there products
- one such popular product is VmWare.
- Today we will see how to Add a Host to the Vcenter Server.
- For this first you need to download the vSphere PowerCLI 6.0 and install it.
- You can download it here --> Click here
- To Add a Host use the below Command
$VIServer = Connect-VIserver -server <IP of your vcenter server>
Add-VMHost -Server $VIServer -Name VMHost1 -Location <Datacenter location> -User <Vmadmin user> -Password <VMAdmin Password>
No comments:
Post a Comment