PowerShell VMware PowerCLI (不定期更新)
連線到VIServer
Connect-VIServer –Server IP –User username –Password password
取得所有VM_IP
Get-VM | Get-VMGuest | Format-Table VM, IPAddress
取得myVM 的 VM IP
Get-VM myVM | Get-VMGuest | Format-Table VM, IPAddress
取得該主機下的VM
Get-VMHost HOSTNAME | Get-VM
留言
張貼留言