Category Archives: Windows Server

TechEd Europe 2014

TechEd Europe 2014- Foundational Session

FDN03 – Optimizing Your Datacenter with Windows Server, System Center, and Microsoft Azure

Another big session that generated loads of notes in my OneNote and here are my Five Highlights..

  1. CPS- The Azure-in-your-datacentre offering. This takes all the best practice and lessons learned to provide an optimised on-premise cloud.
  2. CPS has a single point of support- Microsoft. No multi-vendor issues.
  3. Everything can be software defined these days. Network controllers, load balancers, storage……
  4. 20% of Azure workloads are Linux
  5. There’s no such thing as a happy storage customer- they always want more/faster

TEE14 Foundation Session

LDAP Paths in Active Directory

I’ve recently been involved in setting up a number of SaaS applications for my organisation which use our on-premise Active Directory to authenticate users. Whilst most of the time constructing a LDAP Distinguished Name from an AD tool such as Active Directory Users and Computers is straightforward, it’s easy to mis-spell an OU or miss out a layer in a complex hierarchy.
The right tool for the job is ADSI Edit -“Active Directory Services Interface”. This provides the full Distinguished Name for every object- be it an Organisational Unit, User, Computer, Group, Organisational Unit etc. which can be copied from the listing.


The ADSI Edit Window

For more information about ADSI Edit- visit the Microsoft TechNet Pages.

PowerShell snippet- Finding XP and Server 2003 VMs

Some PowerShell to find all the VMs in an ESX environment which are powered on and running Windows XP or Server 2003.

In my VMware ESX environment I have a number of virtual machines still running Windows XP or Server 2003- usually performing very specific tasks or allowing access to legacy applications, but still part of the production environment. With the recent End of Support for Windows XP and the upcoming one next year for Server 2003 I need to look at each of these VMs and see if they can be upgraded or decommissioned. Listing these in the GUI is fiddly at best- I want VMs with one of these two OSes, from any datacentre and I only care about VMs which are powered on. So, PowerCLI to the rescue:

get-vm |
where {$_.PowerState -eq "PoweredOn" -and
($_.Guest -like "*Windows XP*" -or $_.Guest -like "*Server 2003*")} |
get-VMGuest |
select VmName, OSFullName

Sample Output:

VmName         OSFullName
------         ----------
MyServer1      Microsoft Windows Server 2003 Standard (32-bit)
MyServer2      Microsoft Windows Server 2003 Standard (32-bit)
MyServer3      Microsoft Windows Server 2003 Standard (32-bit)
MyXPVM1        Microsoft Windows XP Professional (32-bit)
MyXPVM2        Microsoft Windows XP Professional (32-bit)

Not the most complicated piece of scripting, but it’s answered my question and I can refer back to it as upgrades continue to see what systems remain.