Powershell – Check if a service is running

By | June 22, 2010

If you ever have experienced that after your vCenter server reboots – due to Windows updates, the “VMware VirtualCenter Server” service is not starting? I have seen it a few times and every time it’s during a weekend 🙁 So to make sure your vCenter service (or other) is always running you could use this… Read More »

Powershell – Configure NTP server list

By | June 17, 2010

If you want to configure a hosts NTP server list through PowerCLI you have a few cmdlet at your disposal. Get-VMHostNtpServer Remove-VMHostNtpServer Add-VMHostNtpServer Get-VMHostService Set-VMHostService Get-VmhostFirewallException Restart-VMHostService Get a list of NTP servers on a host. To remove a specific NTP server from a host NTP server list. To remove all NTP servers on a… Read More »

Playing with the vRanger 4.5 vAPI (Powershell :-))

By | June 22, 2010

Since Vizioncore came out with vRanger 4.x, last year, I been working on porting the VBS script “vRanger Script version 2.0” to Powershell. During this time I have found several bugs/missing functionality in the vAPI. Vizioncore have corrected the bugs with new releases of vRanger. The first vRanger version where all vAPI cmdlets worked in… Read More »

Smart and simple backup script with PowerCLI

By | May 24, 2010

A friend on the Danish VMUG pointed me towards this simple backup script, from GestaltIT.com. http://gestaltit.com/all/tech/virtualization/simon/vmware-backup-powercli-script/ The script creates a snapshot of a VM (from a CSV file) and creates a Thin Provisioned clone based on the snapshot, on a specified datastore (from the CSV file). This a smart and simple way to create a… Read More »

vSphere 4.0 Hardening Guide Released

By | May 11, 2010

VMware has released their hardening guide for vSphere 4.0. There is more than 100 guidelines to choose from, divided between Introduction Virtual Machines Host (both ESXi and ESX) vNetwork vCenter Console OS (for ESX only) http://blogs.vmware.com/security/2010/04/vsphere-40-hardening-guide-released.html

Time keeping in a virtual enviroment

By | April 12, 2010

Time keeping in a virtual environment can be a challenge to setup. To help you, VMware has maintained a KB on the subject. http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1318 The KB presents best practices for achieving accurate timekeeping in Windows Guest operating systems. These recommendations include a suggested configuration for timesynchronization in the guest and on the host. A more… Read More »

New layout

By | March 15, 2010

Today I had to change the theme because the old theme, wasn’t compatible with the latest version of WordPress.org. I hope you like it, I’ll try to personalize it during the next couple of weeks :-).

Powershell – List all vCenter client sessions & disconnect if inactive

By | March 10, 2010

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 =… Read More »