Tuesday, June 19, 2012

Booting up from VHD–Windows 2012 RC

As of today’s technology using Microsoft Windows 7 (Professional, Business or Ultimate), you can have wonders booting up from VHD (which means a single file) without meddling with your current working Operating Windows 7 System.

As of today I have here is a Windows Server 2008 R2 SP1 as the Operating System.   I’m going to share with you how I did it, to have the Windows Server 2012 RC boot up as VHD.

I referred to a couple of blogs and one of the blogs that I find it wonderful and informative is from Raymond Chow.

Here are the download list that needs to be downloaded before installation :

Windows 2012 RC http://technet.microsoft.com/en-US/evalcenter/hh670538.aspx?ocid&wt.mc_id=TEC_108_1_33 
Ultra ISO (if you don’t have utility to read ISO, then only you download and install) http://www.ezbsystems.com/ultraiso/
Install – WindowsImage Powershell Script http://archive.msdn.microsoft.com/InstallWindowsImage/Release/ProjectReleases.aspx?ReleaseId=2662

If you downloaded the ISO format, then it gives you the flexibility to prepare how much of Hard Disk space you would like to allocate for your Windows Server 2012 RC.  Of course there’s some preparation needs to be done before the VHD is build. 

However, if you decide to download the VHD ready format, then needs to jump to third part of this blog.

Part 1 – Preparation of Directory for PowerShell Script and VHD

Part 2 – Preparation of the ISO and getting VHD ready

Part 3 – Attaching the Windows Server 2012 VHD


Part 1 – Preparation of Directory for PowerShell Script and VHD

Step 1.1 Create a Directory to put in the PowerShell Script and also where your VHD (for the Windows Server 2012 RC) will reside in my example is D:\Windows8\VHD

Step 1.2 Using the Ultra ISO, abstract the install.wim to the D:\WINDOWS8\VHD directory


 Step 1.3 Copy the Install-WindowsImage PowerShell script  into the same directory.  The end result is :


Step 1.4 From the Server Manager, expand to the Disk Management, create the VHD.


Step 1.5 Create the VHD with Dynamic Expansion with 60GB


Step 1.6 Initialize the Disk, then have it as a New Simple Volume.

Step 1.7 Next I assign it a drive letter. In my case I assign it as “W” drive.


Step 1.8  End result should be like below :




Part 2 – Preparation of ISO and Getting Windows Install into VHD

Next is we would like to have fresh Installation of the Windows 2012 RC into the VHD assign.

Step 2.1 Launch the Command Prompt and Run as Administrator

Step 2.2 Change the directory to where the location of the VHD and script is located.  E.g. D:\Windows8\VHD.

Step 2.3 Type powershell and then hit [Enter]


Step 2.4 Execute the command as below :

Set-ExecutionPolicy Unrestricted




Step 2.5 Take note of the Index of the various versions that is available.


Step 2.6 In my scenario, I’ve choosen the Windows Server 2012 RC Datacenter (Server with a GUI), therefore the Index is 4.  The command for the PowerShell would be :

.\Install-WindowsImage.ps1 –WIM D:\Windows\VHD\install.wim –Apply –Index 4 –Destination W:

Only those that is in pink in colour are the ones that is needed to change accordingly.  In my case, the WIM is in D:\Windows\VHD directory. Then next is Index 4, cause I chose for Datacenter with GUI and the Drive letter that is assigned for this VHD is W.

Step 2.7 The result should be


Step 2.8 Open up the Windows Explorer, should be able to see the following in W Drive.  It should be populated.



Part 3 – Attaching the VHD

Step 3.1 Exit from the PowerShell

Step 3.2 Key in the command below to add into your boot menu when starting up.  Change would be in the pink colour depending on where you install.  In my example my Windows 2012 RC is installed into the W Drive.

bcdboot w:\windows

Step 3.3 To view the entry, key in as the following

bcdedit /v

The result should be


Step 3.4 Dismount the drive that was use for the Windows Server 2012 RC installation (in my case is W Drive), then reboot the computer. 

Step 3.5 When computer is boot up, you’ll be presented with the Windows Server 2012 RC as a selection.

Happy trying and hope the steps is detail enough for you to begin to explore the Windows Server 2012 RC as VHD boot.  If there’s any errors please post it in this blog …. and if it’s successful ….. do post it too <grin>.

keywords : Windows Server 2012, Windows 8 Beta, Boot from VHD, Virtual Hard Disk boot, Windows Server 2012 RC

Thursday, June 14, 2012

DPM–Deploying DPM Agent to Untrusted or Workgroup Computers

In today’s session I would like to share how you can deploy a DPM agent to a computer that is not part of your domain. 

Computer Name : SC-UNTRUST

DPM Server Name : SC-DPM2010.systemcenter.com

Firstly switch to the computer that is not part of your domain.  Then map to the DPM server using Net Use command.


Next open up the Explorer and browse to the directory of the of the mapping.


Double click on the DPMRA.msi to begin the installation.


Once it’s done, it will displayed as below. Press Enter to close the window.


Open up the command prompt in Administrator mode.  Change the directory to where the DPM agent is installed e.g.

C:\Program Files\Microsoft Data Protection Manager\DPM\bin

Then execute the command to have the computer to have the computer to pre-attach to the designated DPM server with the command :

SetDpmServer.exe –dpmservername SC-DPM2010 –isnondomainserver –username UNTRUST1

The changes will only be in pink colour according to your environment.  As shown above the SC-DPM2010 is where this untrusted computer will be attach to for the DPM backup.  As for the UNTRUST1 is a unique username.  It must be a unique username for each of the untrusted computer that will be supported by the DPM server.  You can use the unique username ONCE in the DPM server.

Once the command is executed, key in the password.  This password is needed when you attach the untrusted server in the DPM.

The end result will be as follow.


Now switch to the DPM server.  Launch the console to begin the installation of the DPM agent.


Select the Computer in a workgroup or untrusted domain and click Next.


Key in the Computer name, the unique username and the password (the same unique username and password that was created in untrusted computer earlier).  Click the Add button, then click Next.

In the Summary screen, click Attach.

Once it’s completed, click Close.


Lastly, remember to check the Password never expires in the local users in both the untrusted computer and also the DPM server.


Thank you and hope this guide is useful.

keywords : Untrusted computer in DPM,  DPM supporting untrusted computer or workgroup, workgroup computer in DPM, DPM 2007, DPM 2010, DPM 2012.

Wednesday, June 13, 2012

DPM–Data Protection Manager Client (client recovery issue)

After deploying the DPM agent into a Windows 7 Client and patch with the latest QFE, now it’s possible for the end-users to recover their files or folders on their own.  This is one of the great features.

After doing the synchronization and recovery point, I hit the error.  Below is the message when I click on the Recovery tab in the Data Protection Manager Client in the Windows 7.


Resolution :

First of all I browse to the registry using REGEDIT in the client (which mine is the Windows 7 PC that has joined to the domain)

The path is as follow


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Agent\ClientProtection

Next I create a Key.  The Key should be Multi-String Value


The Key Name should be ClientOwners


Once created, then insert the ClientOwners value in the format as below.


Once it’s done, click OK then reboot the PC.

Once the PC is rebooted, launch the Data Protection Manager Client in that particular PC. Click on the Summary tab and click Sync Now.


Once that is completed, then switch to the DPM server and then initiate a recovery point.


And when it’s completed in the DPM server, switch to the PC back.  Bring the Data Protection Manager Client, click on the Recovery tab.

In the Search for Recovery Point, click the search (just like a magnifying glass)


And now you can access the recovery from the DPM server to recover what was backup by the DPM for the client.


Thank you and hope this helps. 

Source from KB2465832

keywords : DPM found no recovery points which you are authorized to restore on the specified DPM server.  You can restore only those recovery points which you were an administrator at the time the backup was taken.  To restore other recovery points, contact your DPM administrator, or attempt to restore from another DPM. DPM 2010, DPM 2007, DPM 2012, client backup, DPM client, DPM workstation backup.