A. Mikkelsen VMware ESX scripts, commands, tools and other nice to know things that will make your virtualization days easier!!!!

Friday, April 11, 2014

Remove ignored SSL certificates from VMware VIClient

Filed under: ESXi,Troubleshooting,Virtual Center,vSphere (ESX) — A. Mikkelsen @ 8:35 am

If you ever need to clear the list of ignored SSL certificates (hosts or vCenters) that you use from the VIclient.

  1. Open the “Registry Editor”
  2. Locate the key named “HKEY_CURRENT_USER\Software\VMware\Virtual Infrastructure Client\Preferences\UI\SSLIgnore”
  3. Delete all certificates needed.


Wednesday, June 1, 2011

vSphere Client 4.1 error…

Filed under: Errors,Virtual Center — Tags: , , , , — A. Mikkelsen @ 15:37 pm

After I upgraded vSphere vCenter & Client to 4.1 258902, I been getting an error in the vSphere Client.

A internal error occured in the vSphere Client. Details: Object reference not set to an instant object.

The solution is provided by VMware.

It’s just replacing a DLL file 🙂

The error is only with version 4.1 258902 and not 4.1 Update 1.

Wednesday, March 10, 2010

Powershell – List all vCenter client sessions & disconnect if inactive

Filed under: PowerShell,Scripting,Virtual Center — Tags: , , , — A. Mikkelsen @ 14:25 pm

Today I needed to create a list of all users connected to a vCenter sever through the Client.
And during so I created a few variants 🙂

This creates a list of all usernames connected to the vCenter server through a vCenter Client.

$svcRef = new-object VMware.Vim.ManagedObjectReference
$svcRef.Type = "ServiceInstance"
$svcRef.Value = "ServiceInstance"
$serviceInstance = get-view $svcRef
$sessMgr = get-view $serviceInstance.Content.sessionManager
foreach ($sess in $sessMgr.SessionList){
   write "$($sess.UserName)"

If you want to see a witch clients have been idle for 60 minutes try this.

$svcRef = new-object VMware.Vim.ManagedObjectReference
$svcRef.Type = "ServiceInstance"
$svcRef.Value = "ServiceInstance"
$serviceInstance = get-view $svcRef
$sessMgr = get-view $serviceInstance.Content.sessionManager
foreach ($sess in $sessMgr.SessionList){
    if (($sess.LastActiveTime).addminutes(60) -lt (Get-Date)){
        write "$($sess.UserName)"

If you the want to terminate the sessions that have been inactive  for more than 60 minute

$svcRef = new-object VMware.Vim.ManagedObjectReference
$svcRef.Type = "ServiceInstance"
$svcRef.Value = "ServiceInstance"
$serviceInstance = get-view $svcRef
$sessMgr = get-view $serviceInstance.Content.sessionManager
$oldSessions = @()
foreach ($sess in $sessMgr.SessionList){
    if (($sess.LastActiveTime).addminutes(60) -lt (Get-Date)){
        $oldSessions += $sess.Key

You can modify the hell out of this script to suit your needs and be my guest….

You can download the full script here.

The scripts are based on code found  at the PowerCLI community by LucD.

Tuesday, November 10, 2009

Running the vSphere client on Windows 7

Filed under: Microsoft,Tools,Virtual Center,vSphere (ESX) — Tags: , , , — A. Mikkelsen @ 11:21 am

Many admins have upgraded to Windows 7 and gotten into problems when trying to install the vSphere Client.

I have found a few guides to do a workaround, but the best guide is found at techhead.co.uk.

Thanks to Kiwi Si.

Tuesday, September 29, 2009

32-bit ODBC DSN required for vSphere running on 64-bit OS and MSSQL

Filed under: Errors,Microsoft,Troubleshooting,Virtual Center — Tags: , , , , , , — A. Mikkelsen @ 10:33 am

Last week I upgraded a Virtual Center server from Win2003 & MSSQL 2000 (32-bit) to Win2008 & MSSQL 2005 (64-bit).

During the installation of vCenter it asked for a 32-bit ODBC even though all the new systems was running 64-bit.
After a some time on Google i found that Windows 64-bit also includes a 32-bit version of the ODBC.

To set up a 32-bit DSN launch the 32-bit version of the Data Source Administrator. It is located at:

Also se

Friday, September 25, 2009

Quick guide for upgrading VirtualCenter database from MSSQL2000 to MSSQL2005

Filed under: ESX Migrate/Upgrade,Tools,Virtual Center,White Papers — Tags: , , , , — A. Mikkelsen @ 21:29 pm

Today when I needed to upgrade my VC database from MSSQL2000 to MSSQL 2005 i came upon these quick guides.



Wednesday, September 23, 2009

Howto add webages in vCenter

Filed under: Tools,Virtual Center — Tags: , , — A. Mikkelsen @ 15:00 pm

If you want to add a website tab to your vCenter, then here is a quick way to do it.


Thanks to Ricky over at virtualizeplanet.com

Thursday, September 17, 2009

A must have for anyone using PowerShell to control VMware

Filed under: ESXi,PowerShell,Scripting,Tools,Virtual Center,vSphere (ESX) — Tags: , , , , , , , , — A. Mikkelsen @ 12:12 pm

VMware have released a demo on YouTube that shows a “must have” for PowerShell users who automate and manage vSphere and vCenter through PowerShell.

The project is named “Onyx” and works like a middelware between the vCenter Client and the vCenter Server.
Onyx is unfortunately still in a private beta and therefore not acceble to the Public…….. 🙁

Read more on rtfm-ed.co.uk.

Or read more on the “get-scripting podcast” blog

Monday, May 4, 2009

Upgrading to vSphere

Filed under: ESX Migrate/Upgrade,Virtual Center,vSphere (ESX) — Tags: , — A. Mikkelsen @ 14:36 pm

Read this post before upgrading.

Top 10 of new VMware products in 2009

Filed under: Virtual Center,vSphere (ESX) — Tags: , — A. Mikkelsen @ 14:34 pm

Techtarget.com has released their Top 10 pick from VMware to tryout in 2009.
Read it.

Older Posts »

Powered by WordPress