vSphere 5.0 Security Hardening Recommended VM Settings Check Script


#Uncomment if this SnapIn has not been added#Add-PSSnapIn VMware.VimAutomation.Core CLS $a = "<style>"$a = $a + "BODY{background-color:peachpuff;}"$a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"$a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}"$a = $a + "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:palegoldenrod}"$a = $a + "</style>" $creds = Get-VICredentialStoreItem -file “C:\powercli\credfile.xml”Connect-viserver -Server $creds.Host -User $creds.User -Password … Continue reading vSphere 5.0 Security Hardening Recommended VM Settings Check Script

PowerShell: Check VMware Tools Status


To ensure the VMware Tools is running or not out of date, we have to periodically check it. The following PowerShell script can generate a VMware Tools status report in csv format. #Uncomment if this SnapIn has not been added #Add-PSSnapIn VMware.VimAutomation.Core CLS $creds = Get-VICredentialStoreItem -file “C:\powercli\credfile.xml” Connect-viserver -Server $creds.Host -User $creds.User -Password $creds.Password … Continue reading PowerShell: Check VMware Tools Status

ESXi 5.0 Command: Change Storage Path Selection


1) Run ‘esxcli storage nmp device list | grep ^naa.’ to list the current connected storages. 2) Run ‘esxcli storage nmp device set –d <DEVICE_ ID> –P <PSP_NAME>’ to change the path selection policy. e.g. esxcli storage nmp device set -d naa.60050768028081713c0000000000003a  -P VMW_PSP_RR 3) Additionally, you can run ‘esxcli storage nmp satp list’ to … Continue reading ESXi 5.0 Command: Change Storage Path Selection

ESXi 5.0 Command: Create Standard Switch


Here is a example of using esxi command to create a virtual standard switch, and add the vMotion port group (vlan 100). ##Standard vSwitch Settings esxcli network vswitch standard add -v vSwitch1 esxcli network vswitch standard uplink add -v vSwitch1 -u vmnic3   esxcli network vswitch standard uplink add -v vSwitch1 -u vmnic4esxcli network vswitch standard … Continue reading ESXi 5.0 Command: Create Standard Switch