VMware PowerCLI
March 23, 2020 at 1:25 pm Leave a comment
In this post , I am going to cover the PowerCLI module for VMware. Whenever, I came across a new cmd-let , I will update this post.
First things first, You need to install the PowerCLI. Now , the Windows Powershell have the VMware PowerCLI module. So you could simply install it by.
PS> Install-Module -Name VMware.PowerCLI
Then import it before using the Power CLI.
# To verify the version:
PS> Get-PowerCLIVersion
# To login to VCenter
PS> Connect-VIServer -Server “vcenterhostname”
# To Suppress the Certificate Warning/Error
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
#To list the VM’s with their creation date.
Get-VM | fl Name,CreateDate
Entry filed under: VMware.
Trackback this post | Subscribe to the comments via RSS Feed