Quick script to change VLAN on VMs

After rebuildning our network at my work I had to change VLAN on some Virtual Machines. Instead of doing it manually I wrote a simple PowerCLI script that changes the VLAN on all VMs in a specific folder.


    #Vlan change for VMs
    #Config variables
    $folder = "the folder you store the specific VMS in"
    $vlan = "thenameofthevlan in vSpheere, like clients"


    #Gets VMs from folders and select the name of the VM
    $vms = get-folder $folder | Get-VM | Select-object Name


    #Loops thru every VM, get the network adapater and set the new VLAN
    foreach($vms in $vms)
    {
    Get-NetworkAdapter -VM $vms.Name | Set-NetworkAdapter -Networkname $vlan -Confirm:$false
    }

VMworld and direction on VMware

I had decided first to write a long article about my VMworld experience the first thing I did when I got back home about seminars etc, however I decided I would wait and gather my thoughts a bit. This is my take of the experience I have from VMworld where VMware see our tech evolving.
Read more »

VMworld so far

has been awesome. The VMworld takes place in Bella Center Copenhagen.

I attended quite a few session, I might cover this more in dept later on but a few note worthy things have been

  1. PowerCLIman storming in first PowerCLI session, saving the lecturer from doing a manual thing.
  2. Real good walk thru of DRS indept and DPM, really cool concept to power down unused hosts to save power.
  3. Interesting talk to Veam people about backup virtual machines in a interesting way.
  4. and much more!

Overall the experince so far been really pleasant with good and interesting lectures, relevant techical information and awesome service provided by both bella center and vmware personell!

VMworld Copenhagen

Going to VMworld today (well starting tomorrow). I am really excited to see what it is like since I not been to a VMware convention before. One thing is certain at least, it is going to be much cool things discussed, hopefully not to mcuh sale pitch talks.

I will try to get some blogpost during the time to share and for my own sake to remember the things I hear.

You can also follow me on twitter

Active Directory Migration and the forming of a new company part I

I took part of a AD migration project a few months back and wanted to write down my experince of this before I forget it all. First part will handle the techical design view of the problem and the other part will talk more about the human side of things. A little background to start out with.

Background
A branch of a big company had decided they will create their own company. In the big company they shared many resources, IT being one of many, but also same head office and on some places same remote offices. The brake out company consist about 1700 employees mostly in Europe but also a presence in North America, South America and South East Asia. Each country had their own IT people (all from one hired gun to whole in-house IT with several people involved), with their own servers but ultimately the main Office hosted many centralized servers. To make the migration project possible without their own centralized IT (the centralized IT stayed in the big company) they decided to outsource it to a company I worked for at the time being.
Read more »