Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Intune
  • GitHub
  • Windows 11
  • About the author
CCMEXEC.COM – Enterprise Mobility

Deploying a second OS using SCCM 2007

Posted on July 17, 2010July 17, 2010 by Jörgen Nilsson

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.
  • Configuration Manager
  • 3 thoughts on “Deploying a second OS using SCCM 2007”

    1. Christian says:
      June 8, 2011 at 3:54 am

      How would one after deploying the image to a second partition, boot to is using sccm to install software on it as part of a TS?

      Reply
      1. Jörgen Nilsson says:
        June 8, 2011 at 9:20 pm

        Hi,
        That will be a hard nut to crack. The SCCM server will see that it is the same hardware ID and make the old SCCM object obsolete..

        Reply
    2. Bryan says:
      February 6, 2013 at 9:12 pm

      Hi, Jörgen Nilsson. Thanks for the great tips. I have a problem that bcdedit script does not active 2nd partition bootable. I confirmed that every single line is executed but it does not seem the command lines work successfully. When I run the same script, it does work. Am I missing something here? I assume it is something with permission or the way sccm execute scripting…

      Reply

    Leave a Reply Cancel reply

    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.

    My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
    All code is provided "AS-IS" with no warranties.

    Tweets by ccmexec

    Recent Posts

    • Configuring MS Edge Security Baseline v107 using Settings Catalog
    • Configuring Desktop App Installer using CSP and script?!
    • Customizing Taskbar and Start in Windows 11 22h2 with PowerShell
    • MMUGSE – physical event 2022-10-19 @Microsoft Reactor Stockholm.
    • Switch to Private Firewall profile on AAD joined when connected to specific network.

    ©2023 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
    This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
    Privacy & Cookies Policy

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
    Non-necessary
    Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
    SAVE & ACCEPT