Script to create a report about the VMware Tools status: Sample Output: Total VMs: 527 Total powered on: 474 Total powered off: 53 ToolsOK: 140 ToolsOld: 227 ToolsNotInstalled: 106 DisConnect from Virtual Center Set-PSDebug -Strict $VIServer = "VCENTERIP" Connect-VIServer -server $VIServer -User USERNAME …
Read MoreFirst you need to connect to a vCenter: Connect-VIServer -Server VCENTERIP -User USERNAME -Password PASSWORD Get-VMHost | Sort | Select Name, @{N="FC Device";E={[string]::Join(",",(($_ | Get-View).Config.StorageDevice.HostBusAdapter | where{$_.GetType().Name -eq "HostFibreChannelHba"} | …
Read MoreThis is a small function to rename the local datastore of a fresh installed ESXi server from datastore1 to SERVERNAME-local. $ServerIP="192.168.4.3" function renameds { $vmHost = Get-VMHost -Name $ServerIP $dsname = $vmHost + "-local" Get-Datastore -Name datastore* | Set-Datastore -Name $dsname }
Read MoreThis script node will open a small window with a drop down menu with all your VM’s listed. Select one and click on OK. The script will collect some information and then display them. Script node: if ($global:defaultviservers) { #Generated Form Function function GenerateForm { …
Read More