Creating a "Works on Anything" Windows XP SP2 Workstation Image
Novell Cool Solutions: Trench
By Andrew White
Reader Rating
from 26 ratings
|
Digg This -
Slashdot This
Updated: 26 Oct 2005 |
Note: Freshly updated with a new suggestion.
This is the procedure I used to create our "works on anything" WXPSP2 ZENworks 6.5 workstation image.
- Find the oldest PC you can (in our case, a PIII450 with 256Mb RAM and an Intel 810 motherboard, for reasons to be explained later).
- Install XP Pro. (Reboot.)
- Install SP2. (Reboot).
- Run Windows Update. (Reboot.)
- Install the following NetWare client and ZENworks files:
- b2nc491.exe (although I see beta3 is out now) (No reboot.)
- Contextless Login
- ZfDAgent.msi English agent from zfd65u2.exe (No reboot.)
- nipp.exe from nipp312.exe (Reboot.)
- Login locally and tidy the PC up (delete temp files, unwanted menu items, etc).
- Run services.msc and turn off the following unused services (your site may/will vary especially if you use Active Directory and please backup first...).
- Sysprep and the answer wizard:
- Download the latest XP2 sysprep client from here
- Extract the files to c:\windows\sysprep
- Run Setupmgr.exe in the c:\windows\sysprep folder
- At the Welcome to the Windows Setup Manager Wizard screen, click Next.
- At the New or Existing Answer File screen, ensure that the Create a new answer file radio button is selected and click Next.
- At the Product to Install screen select the Sysprep Install radio button and click Next. At this point, setup the answer wizard according to your organisation's needs.
- At the end of the wizard, save the answer file as sysprep.inf and make a note of its path.
- Making the sysprep image run on any PC
- Open the recently saved sysprep.inf in notepad
- At the end of the file, add the following
[SysPrep]
BuildMassStorageSection=Yes
[SysprepMassStorage]
Save the file
(Basically what you are doing here is telling XP to take every disk driver it has and ensure that it is part of the image, thus avoiding the accursed BSoD, boot disk not found. We have found that the older the PC we use, the more sucessful this process is!) - Seal the workstation
- Copy C:\WINDOWS\Sysprep\FACTORY.EXE, SETUPCL.EXE, SYSPREP.EXE and SYSPREP.INF to c:\SYSPREP
- Run c:\sysprep\sysprep.exe
- Click on OK
- At the System Preparation Tool window enable the MiniSetup and Pre-activated tick-boxes. Ensure that Shutdown is selected from the Shutdown drop-down menu and click Reseal.
- At the prompt to continue with current settings and regenerate the SIDs click OK.
(At this point sysprep will do its magic and shutdown the PC when it's finished. Because you are using an old PC and the BuildMassStorageSection=Yes switch, this can take up to an hour to complete. Keep the faith as it hasn't hung....) - Image the PC using your imaging software of choice
| From | To | |
| Computer Browser | Automatic | Disabled |
| Distributed Link Tracking Client | Automatic | Manual |
| Error Reporting Service | Automatic | Disabled |
| Help and Support | Automatic | Manual |
| Indexing Service | Manual | Disabled |
| Logical Disk Manager | Automatic | Manual |
| Net Logon | Manual | Disabled |
| NetMeeting Remote Desktop Sharing | Manual | Disabled |
| Network Location Awareness | Manual | Disabled |
| Network Provisioning Service | Manual | Disabled |
| Performance Logs and Alerts | Manual | Disabled |
| Portable Media Serial Number | Manual | Disabled |
| QoS RSVP | Manual | Disabled |
| Remote Desktop Help Session Manager | Manual | Disabled |
| Remote Registry Service | Automatic | Disabled |
| Secondary Logon | Automatic | Disabled |
| Security Center | Automatic | Disabled |
| Server | Automatic | Disabled |
| Smart Card | Manual | Disabled |
| SSDP Discovery Service | Manual | Disabled |
| System Restore Service | Automatic | Disabled |
| TCP/IP NetBIOS Helper Service | Automatic | Disabled |
| Telnet | Manual | Disabled |
| Uninterruptible Power Supply | Manual | Disabled |
| Universal Plug and Play Device Host | Manual | Disabled |
| WebClient | Automatic | Disabled |
| Windows Time | Automatic | Disabled |
| Wireless Zero Configuration | Automatic | Disabled |
(For a full explanation of what does what, www.blackviper.com is an excellent reference site.)
This image "should" work on just about anything. We use it on everything from PIII340 up to the latest P4's, laptops and so far it's never failed to boot. You may need to have some drivers disks handy (sound and graphics are usually not found by default).
Related Reading
Check out Andrew's other XP SP2 article: Windows XP SP2 Registry Keys for Student PCs
(And for more Windows XP SP2 tips, see this article.)
Other Suggestions
Frank Peters
ENVIRONMENT: Windows-XP, 2000
MS knowledgebase article 271965
PROBLEM: Moving a standard XP installation to other hardware causes problems when booting XP on the new hardware.
"STOPL 0x0000007B..... Inaccessible_boot_device
SOLUTION: When XP setup starts it will ask the user to press F6 to install other device drivers. At that moment hit the F5 key. You can then change the hal-type XP will use. Choose 'ACPI-PC (Advanced Configuration and Power Interface). Finish the installation. Then follow the instructions in ms-kb271965. MS states that the reg file might work, but in fact it will work.
After this you can move the XP installation almost to any hardware you want. I created a installation on an P4, i810 chipset. This same installation also works fine on a P2 with i440 chipset. I even got it to work on an P2 with a VIA chipset. It also runs on a Celeron processor.
If you have any questions you may contact Frank at frank.peters@dtzc.nl
Reader Comments
- The sysprep I use automatically launches a wizard and then requires the Server service to be running. You show Server service as disabled. I figured out how to install the extra audio/video drivers but I can't figure out how to prevent mini-install from re-installing MSClient and/or MS File and Printer sharing. Any ideas?
- Contextless login should be used with caution in a large tree environment with slow WAN links. This 'universal' image process does not take into accout different HALs, and will not work on ALL workstations.
- We use a process something like this but donot install the clent. instaead we add a batchfile to the [guirunonce] section this batch file can then be added to a "Client.zmg" addon Image to install whatever client you want so that when you update the clent all that is required is to update this addon image and not the main base image. As for the Hal s, You can create a non ACPI image that works on most machines but they wont poweroff at shutdown. We found that in practice anythig that was up to running XP was ACPI and so worked. I would Also recoment creating a winnt.cif file from sysprep so that next time you create a base image (XP SP2??) you dont have to answer all the dumb questions.
- Excellent Article !
- With regards to the service question, yes, you're quite right. It was an error in my notes that I keep forgetting to change. If you have the Server service disabled when you run sysprep, you get the following error "There is an incompatibility between this tool and the Current Operating System" To fix this, you must have the Server service running, even if it's only while sysprep is running. With regards to the HAL comment, yes, I expect it to fail on something soon, but so far (at least on site here) every hardware configuration we've used has imaged and booted. I'm sure there is hardware out there this won't work on, but personally, I've yet to run into that problem. Cheers Andrew
- A wrong HAL can seriously destabilize a system. Fast P4s can become really slow or unresponsive. We've made a large imaging script in which a hardware/motherboard detection is included and we copy the right HAL to the PC after the base image has been put on the machine (all is based on Zen-imaging).
- Very descriptive! Very cool!
- You have to do a sysprep -bmsd before the mass storage section of the sysprep.inf file will be populated....this tidbit is missing.
- In regards to the query on how to prevent MSClient and MS File and Printer sharing from re-installing, the solution is to delete the following files from the path C:\Windows\INF: netmscli.inf netserv.inf If you want to prevent NetBIOS from being re-installed too, the file is: netnb.inf Of course, removing the above INF files also prevent these components from being manually installed in the future.
- Total lifesaver. i had been trying to get some images (made with Ghost for linux) to run on different hardware for days now. the steps here worked perfectly i was even able to go from an old gateway to an old dell to a newer laptop with one image! Awesome article.
- Another approach to the Windows Client re-intallation by sysprep is to use the 'netset' tool from the Windows Server Resource Kit. Run it from the 'cmdlines' post-sysprep file and give it a fairly empty netset.inf - it will pull off the MS Client again for you. netset.inf: [Identification] JoinWorkgroup=NONE [Networking] [NetAdapters] Adapter01=Params.Adapter01 [Params.Adapter01] InfID=* [NetProtocols] MS_TCPIP=Params.MS_TCPIP [Params.MS_TCPIP] AdapterSections=params.TCPIP.Adapter01 [params.TCPIP.Adapter01] SpecificTo=adapter01 DHCP=yes EnableLMHosts=Yes [NetServices] MS_Psched=params.MS_Psched [Params.MS_Psched]
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
