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

留言

這個網誌中的熱門文章

Microsoft SQL Server Express Download 下載點一覽 (2008,2012,2014,2016,2017,2019)

C# 使用 OpenFileDialog 取得檔案名稱及路徑