Month: March 2009

Obtaining WDS server IP from WDS PXE boot

Recently, I worked on some automation related to OS recovery using WDS and in that process I needed to obtain the WDS server IP address using a script. In this scenario, I used a custom WinPE boot image and no install image. Hence, I modified startnet.bat to invoke a custom application to do OS recovery. Coming to the subject of this post, when ever we use a WinPE boot image and use WDS PXE method to boot the client, boot server information is stored in WinPE registry as HKLM\SYSTEM\CurrentControlSet\Control\PXE\BootServerReply. Presence of this key itself indicates that the system booted off a WDS server. However, this entry is a binary value and does not directly give any information about WDS server name or IP address. We need to parse the a few bytes of information to obtain the right values. Within this binary value, IP address information starts at byte offset 20. So, here is the script to do that job Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = “.” Set objReg = GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” & _ strComputer & “\root\default:StdregProv”) strKeypath …

Waz up….!

For the past few weeks, I have been a bit busy at work and not spending enough time at home to work on either Server 2008 R2 or Hyper-V v2. This is what happens to me when the family is away, I guess. I have a few things in my to-do list. I want to disintegrate HVS2008 UI in to separate script-lets and make it usable in your own scripting. Also, I want to do the same thing in PowerShell since R2 or Hyper-V v2 will have the support for PowerShell. However, there are many PowerShell scripts around on the net. So, I need to differentiate my work from all that in existence. So, keep watching this space. I will be back soon.

….and it’s a baby boy

We are blessed with a baby boy on 28th February. I was out of Bangalore for almost 20+ days to be with my wife during the delivery time. I just came back this morning and quickly posting this message. I will resume my work and writing a few posts here very soon. Here is how our junior looks