• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How-to: Create a universal windows XP image using mysysprep.exe and VM Ware

Scheduled Pinned Locked Moved
Tutorials
10
34
51.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    ssx4life
    last edited by Apr 8, 2012, 10:50 PM

    I decided to throw together a really quick video walk through of how to create a universal windows xp image using fog.

    In this demo walk through I’m using Windows XP Professional OEM + SP3 slipstreamed. I HIGHLY… [B]HIGHLY[/B] suggest that you use a vanilla OEM disk and NOT a stamped disk such as a dell / hp oem disk. These oem disks come with the hologram typically.

    It’s also important to note that you can actually sysprep an OEM vanilla image. I’m using an OEM SLP key found here - [url]http://technet.microsoft.com/en-us/library/bb457078.aspx[/url] , and runing oemscan.exe after the machine is imaged to fully activate it on oem hardware.

    To simplify things I’ve also included a copy of my sysprep folder (see below). This folder is ~50MB due to it including 2 driverpacks (mass storage / lan) for NT5 x86. It already has a pre-built sysprep.inf file you can edit and use for your own 😃

    1. Create a Virtual Machine using Virtual Box or VM Ware.
    2. Make sure that the VM you create has an [B]IDE hard drive[/B] option selected (not SCSI) and a SINGLE PROCESSOR with [B]TWO CORES[/B]. Also make sure the lan is BRIDGED
    3. Install Windows XP Pro (OEM if you don’t have a VLK), or VLK if you have that license agreement and key
    4. Run all updates on the computer, install any software, configure the OS the way you want / etc.
    5. Capture a snapshot of the OS using the software (VM Ware has this built in, as does virtualbox)
    6. Simply download sysprep.zip and unzip the file and move it to C:\sysprep (if you are using windows xp pro vlk you will need to modify the supplied key)
    7. Run spdrvscn.exe and hit box #1, #2, #5 (save) and close the application
    8. Run sysprep.exe from a command prompt as follows “sysprep.exe -bmsd” This will run sysprep and pull all the mass storage drivers and lan drivers down into the sysprep.inf file
    9. Make any last changes you want to your image (if you are using a VM I suggest that you snapshot as you go along)
    10. Install the Fog client service
    11. Manually register the host by MAC address on the fog server. You can find this by running ipconfig /all
    12. Once registered assign it to a new computer image in fog, and select “upload”
    13. On the virtual machine run setupmgr.exe and modify the sysprep.inf to your liking (change the password / name / etc.)
    14. Once saved run mysysprep.exe and tick the box that says “run mini setup” as and then “reseal”
    15. Wait about 15-20 min’s for sysprep to run and shut down the VM
    16. Turn the VM on and smash F12 on your keyboard to PXE boot the OS.
    17. FOG will now boot and capture the image. 😃 You are set! This image will now work on any model hardware you throw it at (well just about)

    The above steps are pretty cut and dry. If you have ever run sysprep.exe before on Windows XP most of this should be fairly familar to you. All that was added in this guide was we have added drivers using the sysprep driver scanner, and chanloaded mysysprep.exe instead of the standard sysprep.exe (giving us the ability to inject HAL’s into the install).

    [SIZE=4][U][B]Required Files[/B][/U][/SIZE]

    1. sysprep.zip - [URL=‘https://docs.google.com/open?id=0B6xOimbg2JqVZnhQUjRSaWFoNHM’][B]https://docs.google.com/open?id=0B6xOimbg2JqVZnhQUjRSaWFoNHM[/B][/URL]
    2. oemscan.exe (only needed on oem builds of Pro. Run the .exe as a snapin or manually + reboot. It will then be activated if run on a supported oem system (dell hp / compaq / etc.) with a supported OEM SLP key - [URL=‘https://docs.google.com/open?id=0B6xOimbg2JqVS2R6bXFad1Rka28’][B]https://docs.google.com/open?id=0B6xOimbg2JqVS2R6bXFad1Rka28[/B][/URL]

    If you have any questions let me know.

    EDIT

    Thank you Boon for re-hosting / uploading these files while I was out of the states on work.

    thanks.

    1 Reply Last reply Reply Quote 0
    • D
      danuel
      last edited by Apr 10, 2012, 4:23 PM

      Thank you!
      I will try that!!
      Best Regards!

      EDIT:
      OK SYSPREP ok.
      But a question, what chipset I use on VirtualBox? PIIX3 or ICH9?
      And what type of IDEController? PIIX3 , PIIX4 or ICH6?

      [QUOTE]Because When I deploy the image, the virtualmachine starts MySysPrep Runs… OK … system reboot… and than
      Stays a black screen with ‘stopped’ cursor. what’s mean?[/QUOTE]
      Well, I am the Impacient guy haha… I onlu need sometime, I think it’s tima to SO update configs 😮

      To finish the installation I only need put a RunOnce Command to delete the sysprep folder, or I’m wrong?

      O que está em baixo está certo!
      O que está em cima está errado!

      1 Reply Last reply Reply Quote 0
      • B
        boon
        last edited by Apr 20, 2012, 8:24 PM

        Thanks for the quick walkthrough, SSX4LIFE!

        If I wanted an image to detect ALL hardware, do I need to add all additional display/sound/etc drivers to \sysprep\drivers before running spdrvscn?

        Thanks again for your help!

        1 Reply Last reply Reply Quote 0
        • S
          ssx4life
          last edited by Apr 20, 2012, 8:50 PM

          [quote=“danuel, post: 2768, member: 628”]

          To finish the installation I only need put a RunOnce Command to delete the sysprep folder, or I’m wrong?[/quote]

          The sysprep folder auto-deletes when the computer boots for the first time. The folder, and anything inside of it auto delete

          1 Reply Last reply Reply Quote 0
          • S
            ssx4life
            last edited by Apr 20, 2012, 8:52 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • S
              ssx4life
              last edited by Apr 20, 2012, 8:56 PM

              [quote=“boon, post: 2974, member: 833”]Thanks for the quick walkthrough, SSX4LIFE!

              If I wanted an image to detect ALL hardware, do I need to add all additional display/sound/etc drivers to \sysprep\drivers before running spdrvscn?

              Thanks again for your help![/quote]

              @boon , yes in theory you could put all your needed drivers (.inf’s) into the sysprep\drivers folder and inject them into your install so all sound /etc. get auto inserted.

              HOWEVER you need to be careful when you do this.

              #1. If you load the incorrect chipset driver for the OS it could BSOD on first boot (happens mostly with older dell models).
              #2. Sysprep.inf has a file limitation size of 2047 characters. Typically you can’t throw all the needed drivers into the installation, so the way around this is to use the driverpacks method. You could place the driverpacks folder in 😄 or even use SFX Maker to encapsulate it as an .exe. Then simply use the runonce command to call the remaining drivers on first boot.

              I should note that in my sysprep folder that I included it has the driverpacks for mass storage and lan. Look here for the SAD_DP_INSTALL_TOOL script over on the driverpacks.net forums - [url]http://forum.driverpacks.net/viewtopic.php?id=5336[/url]

              Download the .7z and open the readme.txt file. It’s simple as downloading the driverpacks using a .torrent application and tossing the proper files in the x86 / x64 / nt5 folders.

              If you need more help or more info let me know, but be VERY careful of the sysprep character limitations.

              –ssx–

              1 Reply Last reply Reply Quote 0
              • M
                Mike
                last edited by Apr 25, 2012, 4:03 AM

                Where should I put the SAD2? In the 😄 folder?

                1 Reply Last reply Reply Quote 0
                • S
                  ssx4life
                  last edited by Apr 25, 2012, 12:20 PM

                  Mike thanks for the email. If you want to have full driver support for Windows XP using the SAD method you can do it once of two ways.

                  #1. Build a snapin for SAD2 using SFX Maker and push the .exe to the client computer, running the correct drivers
                  #2. Place the SAD2 folder [B]ANYWHERE[/B] but the sysprep folder. The root of 😄 would be just fine. I’ve seen people put it in C:\Drivers and then once the .cmd is run using the runonce command from sysprep they run a second script to delete the folder contents. A good example of this is andyroo on our forums who has a windows 7 walkthrough who also uses the driverpacks - [url]http://fogproject.org/forum/threads/windows-7-deployment-fog-sad2-driver-tool.380/[/url] . See his batch script below

                  [B]Delete drivers from C:[/B] (change “SAD2-111118” to what ever name you have your folder as)
                  [CODE]
                  @ECHO OFF

                  rd /s/q C:\D

                  DEL /F /S /Q /A “C:\Drivers\SAD2-111118”

                  rd /s/q C:\Drivers\SAD2-111118

                  EXIT[/CODE]

                  Don’t forget you can create this .cmd file and place it in the same location as your driverpacks, and have it be run by sysprep (runonce command) It will not only delete itself, but take out anything inside the folder as well, leaving you with a clean installation.

                  Let me know if you have any questions or need further help 😃

                  1 Reply Last reply Reply Quote 0
                  • S
                    sid
                    last edited by May 16, 2012, 3:36 PM

                    Hello

                    How do you insert the SATA driver into the image. this process will work if AHCI is disabled in the BIOS but what if it is enabled?

                    1 Reply Last reply Reply Quote 0
                    • S
                      ssx4life
                      last edited by May 16, 2012, 7:39 PM

                      It should work either way I believe. The Mass Storage drivers included in the sysprep.zip folder cover ATA and ACHI I believe.

                      Give it a shot.

                      1 Reply Last reply Reply Quote 0
                      • B
                        boon
                        last edited by May 16, 2012, 7:55 PM

                        We had to create a separate IDE image for some older devices that do not support AHCI. Otherwise we’d have to set BIOS SATA emulation to IDE on the majority of the machines.

                        1 Reply Last reply Reply Quote 0
                        • S
                          sid
                          last edited by May 23, 2012, 12:37 AM

                          here is what I did, I used nlite and integrated the sata drivers and also all the drivers into the xp installation disk, then made an ISO file,
                          using that ISO I installed windows xp on Sun Virtual Box, then I made a ghost image and tried it on 3 different machines with success, but still waiting on your link fix to sysprep.zip download to try that too.
                          thanks

                          1 Reply Last reply Reply Quote 0
                          • S
                            ssx4life
                            last edited by May 23, 2012, 2:16 AM

                            I have to dig up a copy of this file again, if I can’t i’ll have to re-create it (not hard I have a version in a VM I can use).

                            give me a bit.

                            thanks.

                            1 Reply Last reply Reply Quote 0
                            • S
                              SCSI
                              last edited by May 25, 2012, 12:25 AM

                              Great tutorial!

                              Followed your steps but having issues adding the Lan and Masstorage devices in sysprep. After steps 7 and 8 (running spdrvscn v1.3.2 and then sysprep.exe -bmsd), sysprep.inf will contain the inf from C:\Windows\inf and only these three entries from C:\sysprep\drivers. Should there be more entries?

                              **After scanning C:\sysprep\drivers with spdrvscn, it will report that there are 154 driver entries
                              **C:\sysprep\drivers contains extracted drivers from DP_MassStorage_wnt5_x86-32_1203.7z and DP_LAN_wnt5_x86-32_1202.7z

                              [CODE][SysprepMassStorage]
                              pci\ven_1000&dev_0030=c:\sysprep\drivers\m\l\lsi_scsi.inf
                              pci\ven_1000&dev_0032=c:\sysprep\drivers\m\l\lsi_scsi.inf
                              pci\ven_104b&dev_1040=c:\sysprep\drivers\m\v\vmscsi.inf[/CODE]

                              Can you please share your sysprep config? Thanks!

                              1 Reply Last reply Reply Quote 0
                              • S
                                ssx4life
                                last edited by Jun 7, 2012, 1:45 PM

                                Ok so I found my two sysprep.zip folders and I’ll have those re-uploaded shortly.

                                Sorry for the delay. Life has been busy, and I do this as a hobby on the side.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  buckITall
                                  last edited by Jun 12, 2012, 5:32 PM

                                  Thanks for your time ssx…have you been able to upload the “sysprep.zip” files yet, I can’t seem to find the posted link.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    SMoRZ3
                                    last edited by Jun 28, 2012, 3:00 PM

                                    Does anybody know where you can get an XP Pro OEM disc? I have a Dell version, but it doesn’t take the Perserving OEM Actication key thats provided by Microsoft.

                                    Basically the version I have cant be activated, so then i cant do updates which makes using the VM useless as far as saving time…

                                    Thanks

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      ssx4life
                                      last edited by Jun 28, 2012, 4:52 PM

                                      [quote=“buckITall, post: 4074, member: 101”]Thanks for your time ssx…have you been able to upload the “sysprep.zip” files yet, I can’t seem to find the posted link.[/quote]

                                      @sid @buck @scsi

                                      I have been out of the states on work for the last 3 weeks. I won’t be back till the 2nd week in July.

                                      I tried to wake on lan my pc at home, but the packet isn’t getting to my server for some reason, and I can’t remotely turn it on any other way.

                                      Once back I’ll re-host these files.

                                      Thanks for being patient, I’ll get back to you shortly on this.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        ssx4life
                                        last edited by Jun 28, 2012, 4:57 PM

                                        [quote=“SMoRZ3, post: 4430, member: 1375”]Does anybody know where you can get an XP Pro OEM disc? I have a Dell version, but it doesn’t take the Perserving OEM Actication key thats provided by Microsoft.

                                        Basically the version I have cant be activated, so then i cant do updates which makes using the VM useless as far as saving time…

                                        Thanks[/quote]

                                        Legally we can’t distribute these due to copyright law.

                                        Please post your MGADIAG.exe logs so we can better help you 😃

                                        [url]http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CFIQFjAA&url=http%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D52012&ei=qYzsT_L_O9L1qAH_lLzOBQ&usg=AFQjCNH5Zcs6VID448dqfDkoyf9nzmkx7w&sig2=RpxaEKLIe4K0Q8fzL-_D2Q[/url]

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          danuel
                                          last edited by Jul 3, 2012, 4:37 PM

                                          [quote=“ssx4life, post: 2754, member: 268”]
                                          [SIZE=4][U][B]Required Files[/B][/U][/SIZE]

                                          1. sysprep.zip - [url]http://asapload.com/info?id=132110[/url]
                                          2. oemscan.exe (only needed on oem builds of Pro. Run the .exe as a snapin or manually + reboot. It will then be activated if run on a supported oem system (dell hp / compaq / etc.) with a supported OEM SLP key - [url]http://asapload.com/info?id=132109[/url]
                                            [/quote]

                                          Hi This links don’t open, can upload files again please?

                                          Regards

                                          O que está em baixo está certo!
                                          O que está em cima está errado!

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post

                                          265

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project