Deploying a second OS using SCCM 2007

In some scenarios where the users have need of running say Windows 7 and Windows Vista/Windows 7 locally on different partitions it is fully possible to do this using Configuration Manager 2007. The user could be local admin on the second partition, useful for software developers, engineers e.t.c. However you will not be able to manage the second installation as the configuration manager client already is installed on the other Windows installation and will obsolete/overwrite the second installations client.

To do this I found a cmd file to modify the bcd store somewhere on the web(sorry couldn’t find it again) and used that to start with. I assume in this case that there is a second formatted partition if you need to create it use Diskpart and the shrink command if you want to shrink the existing partition. The CMD file (will post a vbscript when I have the time to complete it) I use looks like this:

——————————————————–

REM CMD file used to add
for /F “tokens=3 delims= ” %%i in (‘bcdedit /create /d “Windows 7 -Second” /application osloader’) do set NEWGUID=%%i
bcdedit /set %NEWGUID% device partition=D:
bcdedit /set %NEWGUID% OSdevice partition=D:
bcdedit /set %NEWGUID% path \windows\system32\winload.exe
bcdedit /set %NEWGUID% nx OptIn
bcdedit /set %NEWGUID% locale en-US
bcdedit /set %NEWGUID% inherit {bootloadersettings}
bcdedit /set %NEWGUID% systemroot \Windows
bcdedit /displayorder %NEWGUID% /addlast
REM CMD file used to add
for /F “tokens=3 delims= ” %%i in (‘bcdedit /create /d “Windows 7 -Second” /application osloader’) do set NEWGUID=%%i
bcdedit /set %NEWGUID% device partition=D:
bcdedit /set %NEWGUID% OSdevice partition=D:
bcdedit /set %NEWGUID% path \windows\system32\winload.exe
bcdedit /set %NEWGUID% nx OptIn
bcdedit /set %NEWGUID% locale en-US
bcdedit /set %NEWGUID% inherit {bootloadersettings}
bcdedit /set %NEWGUID% systemroot \Windows
bcdedit /displayorder %NEWGUID% /addlast
———————————————–
I created a Task Sequence containing the following steps:
  1. Reboot to Winpe
  2. Apply the data image
  3. Reboot to the already installed and managed Primary OS
  4. Modify the BCD store using the script and the “Run Command line” step to make it possible to boot the the second OSdataimageTS1
Some small modifications will make it possible to deploy a VHD file and add the necessary entries in the BCD store.
3 Comments

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.