Categories
PowerShell Scripts theVESI Virtualisation VMware vSphere

VMware Tools Status report

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 -Password PASSWORD $vms = Get-VM | Sort Name $on = 0 $toolsOk […]

Categories
ESXi PowerShell Scripts theVESI Virtualisation VMware vSphere

Show WWN of FC devices

First 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”} | %{$_.Device}))}}, @{N=”FC WWN”;E={[string]::Join(“,”,(($_ | Get-View).Config.StorageDevice.HostBusAdapter | where{$_.GetType().Name -eq “HostFibreChannelHba”} | %{“{0:x}” -f $_.NodeWorldWideName}))}} Disconnect-VIServer -Server VCENTERIP -Force -Confirm:$false

Categories
ESXi PowerShell Scripts theVESI Virtualisation VMware vSphere

Function to rename the local datastore of a new installed ESXi

This 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 }

Categories
PowerShell Scripts theVESI Virtualisation VMware vSphere

Get VM information as Script node for the Virtualization EcoShell

This 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 { ######################################################################## # Code Generated By: SAPIEN Technologies PrimalForms (Community Edition) […]