Arnim van Lieshout Rotating Header Image

Posts Tagged ‘PowerShell’

List HBA WWPNs and LUNs using Powershell

Lately I’m moving around my VMs and storage luns between my ESX clusters a lot to accomplish a complete redesign of my Virtual Infrastructure. At some point I got lost and didn’t had the complete overview anymore. Which luns were attached to which cluster? To remove(unpresent) a lun from an ESX host/cluster on the storage [...]

Export and import customization profiles using Powershell

One great thing in the automation of VM deployments is the use of customization profiles. These profiles are stored inside the vCenter Server database. However, when you loose the database, you also loose your customization profiles. Having customization profiles exported as xml files is always useful as a backup and luckily you can export and [...]

Reconnect ESX hosts using PowerShell

This week I ran into problems with vCenter server and almost all of my VMs were orphaned in vCenter. To resolve this issue I needed to disconnect/connect each ESX host. Because I hate doing repetitive tasks I created a little PowerShell script that I wanted to share with you.

# Variables
$VCServer = “vcserver.yourdomain.local”
$password = “rootPassword”

#Connect to [...]

Setting custom attributes with VMware PowerCLI

Last week I wanted to extend my vCenter with some extra custom attributes on my VMs. This would extend the usability of the Export List feature for reporting purposes. So together with Hal Rottenberg’s “Managing VMware Infrastructure with Windows PowerShell TFM” book in my hand, I took a dive into VMware PowerCLI (formerly known as [...]

Virtualization links for this week

I’ve been really busy this week

patching my ESX hosts
troubleshooting ballooning problems
moving ESX hosts to other SAN switches
troubleshooting network/vlan problems
putting some effort in helping people out on the VMTN forum. Hey, I even got a top 5 ranking this week
AND reading all those magnificent articles I found out this week

Whenever you are seriously interested in VMware [...]

Bulk change your ESX root password

Have you ever been facing your security department demanding you to change your ESX root password?
Well I did. At the current site there’s a strict security policy where passwords must change every 2 months. Offcourse as a good administrator I changed the ESX root account …. ehm …. well …. ehm …. never.
Because we have over [...]