Virtu-Al.Net

Virtually everything is poshable

June, 2009

PowerCLI: vProfiles

Following my recent post, Easy vSwitch & PortGroup Setup I thought I would give PrimalForms a go and create a quick GUI, PrimalForms is a great app from Sapien which allows you create form based windows for which it gives you the PowerShell code, this means no install and yet the users still get a [...]

, , ,

PowerCLI: Easy vSwitch & PortGroup Setup

To get VMotion working the networking setup plays a big part, any of the following could cause you big issues: A spelling mistake in a PortGroup name A missing PortGroup A PortGroup configured incorrectly A non-existing PortGroup on one of your hosts etc This is why automation and PowerCLI is key to the setup of [...]

, ,

PowerCLI: More One Liners

On my previous post where we counted how many VMs were on each host and the cluster they were in I was asked a couple of questions: 1.  How about listing the number of VMs per Resource Pool? 2.  How can we extend this to get the templates as well ? Ok, easy stuff (I [...]

, ,

PowerCLI: Folder Name Mismatch

Isn’t it annoying when you are looking for a VM on your datastore and you cant find it because the folder name is not the same as the VM, use the below script and you will never have that problem again. This script will compare the name of the VM to the folder it is [...]

, ,

PowerCLI: SnapReminder

SnapReminder

Fed up of chasing those people who constantly create snapshots and leave them hanging around for weeks or even months on end ? You no longer have to do the chasing, just use the following script to automatically find the offending snapshot, find the person who created it, get their email address from AD and [...]

, ,

Unofficial Online VMware User Group #2

Following the success of the first UOVMUG the second will be held on 29th June at 08:00 PM BST / 03:00 PM EDT, hopefully it will be more interactive as we should be running it through webex, make sure you have visited the webex site before the meeting so that everything is installed and working [...]

One Liner: How many VMs ?

Ever wondered how many VM’s you have on each Host? You could manually check it or then again you could let powershell do the work for you: Get-VMHost | Select @{N=“Cluster“;E={Get-Cluster -VMHost $_}}, Name, @{N=“NumVM“;E={($_ | Get-VM).Count}} | Sort Cluster, Name | Export-Csv -NoTypeInformation c:\clu-host-numvm.csv

, ,

Vote for Freedom vote for me (please)

My only chance of getting to VMworld this year is to win a all expenses paid trip, luckly enough Veeam have launched a competition which I have entered and first prize is a all expenses trip to San Francisco -VMworld 2009. I always add my scripts to this blog for free and now Im hoping [...]

vSphere permissions: export & import – Part 1

Short security principles intro One aspect of your vSphere environment that shouldn’t be ignored is the built-in security feature that allows you to control who can do what with which vSphere entity. Internally this is controlled from the AuthorizationManager. This object contains all the properties and methods you need to configure and manage the built-in [...]

, ,

vSphere permissions: export & import – Part 2

In Part1 of this article we had all the roles and permissions exported to an XML file. It’s now time to import the roles and permissions into a Virtual Center. The script does in fact the reverse of what the script in Part 1 did. But there were a few “gotchas“ that had to be [...]

, ,

Previous Posts