Find all snapshots within your vCenter environment using PowerCLI
Find all snapshots within your vCenter environment using PowerCLI $snaplist = Get-View -ViewType VirtualMachine -Filter @{"snapshot"="$snaplist"} $snaplist | select name
View ArticleList the Hostname, Cluster Name, Memory Size, CPU Sckets and CPU Cores of...
List the Hostname, Cluster Name, Memory Size, CPU Sckets and CPU Cores of each ESX host using PowerCLI $myCol = @() ForEach ($Cluster in Get-Cluster) { ForEach ($vmhost in ($cluster | Get-VMHost)) {...
View ArticleReset the vSphere Memory Limit using PowerCLI
If you’ve ever migrated clusters or joined VM’s from a different cluster, I’m sure you’ve run into the bug where memory limits are set on the VM’s automatically. To remove this, simply use the powerful...
View ArticleList the Path and Path State for every vSphere Datastore using PowerCLI
List the Path and Path State for every vSphere Datastore and then output to CSV using PowerCLI $initalTime = Get-Date $filepath = "C:\tmp" $filename = "LunPathState" $date = Get-Date ($initalTime)...
View ArticleList the vMotion IP Address and Subnet mask for each vSphere ESX host using...
I ran into a couple misconfigurations, so I wrote a quick online to audit all of my host configurations without having to use the dreaded host profiles get-vmhost | % {(get-view...
View ArticleUpdate the DNS Suffix on your cluster of ESX hosts using PowerCLI
Using PowerCLI, you can quickly update the DNS Suffix on the hosts in your cluster using this short one-liner. get-cluster "LabManager" | get-vmhost | get-vmhostnetwork | set-vmhostnetwork...
View ArticleConfigure Syslog on ESXi using PowerShell and PowerCLI
Using powershell, I was able to configure all the hosts in my vCenter instance First, I needed to configure the syslog host get-vmhost| Set-VMHostAdvancedConfiguration -NameValue...
View ArticleAutomating the Cisco UCS build using Cisco PowerTool
After installing Cisco UCS and performing the initial setup of the UCS Fabric Interconnects; there is a lot of work that needs to be completed prior to configuring the blade Service Profiles. This can...
View ArticleFinding orphaned VMDK’s using PowerCLI
Here is a PowerCLI script I use to find all orphaned VMDK’s in my vCenter environment. $arrayVC = "virtualcenter2" Foreach ($strVC in $arrayVC) { Connect-VIServer $strVC $arrUsedDisks = Get-VM |...
View ArticleUsing PowerCLI to remotely execute esxcli commands
First, make sure you’re using a version of PowerCLI that supports the get-esxcli cmdlet. In this case, I used a fresh install of PowerCLI 5.5. First, get-esxcli needs to be run against a single host...
View Article
More Pages to Explore .....