The text of a spec sheet · part 12 of 26
Implementing Asset ID: Chapter 4. Integration with LCCM and SDA, pages 88 to 96
Pages 88 to 96 of 206, from Implementing Asset ID
The original document is the PDF (3.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the HID AMH100
Page 88
deployment. Sysprep and its associated utilities can be found in the DEPLOY.CAB file. Basically, here is how Sysprep is designed to work: 1. Install Windows 2000 on a donor client. 2. Configure the donor system to your specifications. This may include installing common applications such as Lotus SmartSuite or Microsoft Office. Test your image extensively to ensure everything functions as you planned. 3. Optionally, create a SYSPREP.INF file if you want little-to-no user intervention when you reboot the system after the image is loaded. The SYSPREP.INF file responds to many questions and populates these pieces of information in Windows 2000. If you don’t create a SYSPREP.INF, the system will prompt the user for various pieces of information. As described in 4.1.9, “Creating the final profile in LCCM” on page 83, we will be automating the creation-unique SYSPREP.INF files for each client as part of our LCCM deployment process. 4. Run SYSPREP.EXE on your donor machine. Sysprep will make the machine generic by stripping machine-unique attributes such as computer name, domain name, SIDs, etc. Sysprep will then shut down the machine. 5. Once the machine is powered off, use a third-party imaging tool such as Norton Ghost or PowerQuest Drive Image Pro to make an image of the operating system in this state. 6. Deploy (clone) this new image to systems that are similar to your donor machine. 7. When the newly cloned machine starts up for the first time, a setup wizard will appear prompting the user for information such as product key, domain name, computer name, etc. If the SYSPREP.INF file exists in C:\SYSPREP, the information is automatically provided for the user. The SYSPREP.INF file is not unique for each machine, since this is located on the donor machine at the time it is cloned. Microsoft suggests a unique SYSPREP.INF (which may contain a unique computer name, domain name, etc) file on a diskette for each new machine that is to be deployed. With Asset ID, we can create a unique SYSPREP.INF file locally on the client without the need for a diskette. We can use LCCM to change the generic SYSPREP.INF file remotely and automatically. The information will be extracted from the Asset ID EEPROM, then entered into SYSPREP.INF. The
76
Implementing Asset ID
Page 89
end result is that the process is automated and does not require a physical visit to each PC. For more information on Sysprep, see: http://www.microsoft.com/windows2000/library/planning/incremental/sysprep.asp For the most recent version of Sysprep (Version 1.1 at time of this book) see: http://www.microsoft.com/windows2000/downloads/deployment/sysprep/license.asp Do the following to prepare the image for cloning: 1. Before beginning, we strongly advise that a snapshot of your current PC and operating system be taken before any changes are made. With the snapshot we can always go back to a known good point in time. We could always do another unattended install to bring us back to this point in time but that unattended install process will take an hour or more where as the clone process takes considerably less time. a. Ensure that the targeted client is powered off. b. Start LCCM. Drag and drop the client that just had Windows 2000 deployed to it to Remote Ghost Capture. c. Click Process. d. The targeted client machine will wake up and the Ghost capture will begin. Now that the image is successfully captured, we can experiment and Sysprep our image. 2. Turn on your donor machine (in our case this is CLNT1). Logon as an administrator and then press Enter, since the password is null. (Since we didn’t specify a password in our Windows 2000 Professional profile, the password is blank.) 3. Optionally, install any common applications onto the client PC. Refer to 4.2, “Integrating Software Delivery Assistant with Asset ID” on page 87. You may also have to install the appropriate video drivers and audio drivers, because these may not be in the Windows 2000 Professional hardware database. Similarly if you are working on a ThinkPad you may want to install ThinkPad-specific utilities and swap your floppy and CD-ROM or DVD drive so the operating system recognizes it. 4. For Sysprep to work properly you must verify that on the client PC: – Your administrator account has a null password. – The PC is part of workgroup and not a domain.
Chapter 4. Integration with LCCM and SDA
77
Page 90
These were the settings we chose when we created our profile (in 4.1.3, “Creating a Windows 2000 Professional profile” on page 61) so the settings should be correct. 5. We will use SetupMgr to create the initial SYSPREP.INF file, then we will manually modify it. SetupMgr and the associated files need to be extracted from a CAB file and downloaded from Microsoft: a. Create the directory C:\SYSPREP on the client PC. b. Locate the DEPLOY.CAB file from your Windows 2000 CD-ROM. c. Copy the DEPLOY.CAB file into the SYSPREP folder. d. Double click DEPLOY.CAB. This should give you a list of the files in the CAB file. Note: The SYSPREP.EXE file in DEPLOY.CAB is Version 1.0. We will be downloading Version 1.1 from the Microsoft URL noted previously. e. Right-click SETUPMGR.EXE and extract this to C:\SYSPREP. f. Right-click SETUPMGX.DLL and extract this to C:\SYSPREP. g. Go to the Microsoft Sysprep download page and obtain the SYSPREP.EXE and SETUPCL.EXE files and copy these to the C:\SYSPREP. http://www.microsoft.com/windows2000/downloads/deployment/sysprep /license.asp 6. Double-click SETUPMGR.EXE in the C:\SYSPREP directory. 7. Click Next. 8. Click Next so we can create a new answer file. 9. Choose Sysprep Install and then click Next. 10.Click Next since we are using Windows 2000 Professional. 11.Choose Yes to fully automate the install. Click Next. 12.Enter your company name and organization. Click Next. We have entered IBM and ITSO. 13.For computer name, type in pcsysprep. Click Next. 14.Type in an administrator password. Click Next. This will be the local administrator password for this machine. 15.Click Next. We will leave the default display settings. 16.Click Next. We will use the typical network settings.
78
Implementing Asset ID
Page 91
Figure 53. Setup Manager, creating a computer account on the domain
17.Choose Windows Server domain and type your domain name. We used our ITSO domain as shown in Figure 53. 18.Check Create a computer account in the domain. Enter the appropriate admin account to create a computer account in the domain. For additional security, you may want to create an account for your domain that only has rights to create computer accounts and use this account here. Click Next. 19.Choose the appropriate time zone and click Next. 20.Choose No to not edit the additional settings. Click Next. 21.Choose Yes to create or modify the Sysprep folder. Click Next. 22.Click Next. We will not add any additional commands to run. 23.Click Next. We will skip the OEM branding. 24.Click Next. We will not use any additional files or folders. 25.You may be asked to specify the location of the SYSPREP.EXE and SETUPCL.EXE files. Point to the C:\SYSPREP directory. Click Next. 26.Click Next. We will not be using the OEM Duplicator String. 27.Click Next. The default location of C:\SYSPREP\SETUP.INF is fine. 28.Click Finish.
Chapter 4. Integration with LCCM and SDA
79
Page 92
29.Copy the SETUP.INF file to a floppy as a backup. Note that there are newly created files and folder in the Sysprep folder. 30.Double-click SYSPREP.INF to open the file in Notepad. Edit the file as shown in Figure 54. Note: If you have installed Windows 2000 from a Microsoft Select CD, you can use ProductID=string; otherwise, enter your product key. Please refer to your licensing agreements. [Unattended] OemSkipEula=Yes [GuiUnattended] AdminPassword=ibm OEMSkipRegional=1 TimeZone=35 OemSkipWelcome=1 [UserData] FullName=IBM OrgName=ITSO ComputerName=%FIELD1% productid=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx [Identification] JoinDomain=%FIELD2% DomainAdmin=administrator DomainAdminPassword=ibm
These variables will be replaced at runtime by the values in the Asset ID EEPROM.
Enter your product key here or “string” if you have a Microsoft Select CD.
[Networking] InstallDefaultComponents=Yes Figure 54. SYSPREP.INF after changes
31.Once you’ve made the changes, close Notepad then rename SYSPREP.INF to SYSPREP.ORG. 32.Now we need to delete some unnecessary files. These files and the Sysprep directory will get deleted once the PC is deployed and has been started for the first time. However, we will delete these files as it will make
80
Implementing Asset ID
Page 93
it easier to determine if a new SYSPREP.INF file is copied over to the Sysprep directory. Issue the following commands in the Sysprep directory: del setupm*.* del sysprep.bat attrib -r deploy.cab del *.cab
33.Move (not copy) the SYSPREP.ORG file from C:\Sysprep to a diskette. 34.At this point, there should be only two files and a subdirectory in C:\Sysprep: – I386 [DIR] – SYSPREP.EXE – SETUPCL.EXE 35.Remove the floppy and label it SYSPREP.ORG. 36.Make any last-minute configurations and close any open windows except your command prompt windows. The state you leave the system is how it will be cloned, so now is the last time you can make these changes. 37.Optionally, if you want an NTFS file system, at the prompt type in: convert c: /fs:ntfs You will be prompted that this will take place on the next reboot. Type in Y and press Enter. If you want to understand the reasoning why we are using this process, refer to Knowledge Base article Q259303, which explains some known bugs with Sysprep and converting to NTFS partitions: http://support.microsoft.com/support/kb/articles/q259/3/03.asp 38.We now want to run Sysprep to make the PC generic. Do this by running the following command from C:\SYSPREP: sysprep This command will strip the unique components out of Windows 2000 and shut down the machine. In our lab we have found that the shutdown was not always graceful when using a IBM PC 300PL Model 6862, 300PL 6565, or NetVista S40 6645. We would receive blue backgrounds with no activity. Ultimately we used Task Manager and the power button to shut down the machine. This
Chapter 4. Integration with LCCM and SDA
81
Page 94
appears to be a bug in Sysprep. We recommend you use the following command instead: sysprep -reboot Tip
We recommend you shut down the machine and take a ghost image of your client system (using the Remote Ghost Capture profile as described in 4.1.6, “Automating the use of a cloning tool with LCCM” on page 73) just before you run the sysprep command. This way, if the sysprep command fails, you can simply use the Remote Ghost Clone profile to reload that same image. 39.Read the next step before continuing with this step. Choose OK or press Enter to continue.
Figure 55. Sysprep warning message
40.When the machine reboots and you see the Intel boot agent prompt or IBM logo whichever comes first (assuming the prompts are enabled), immediately power off the machine so it does not boot into Windows 2000. It is critical that the machine not boot back into Windows 2000; otherwise, the Sysprep Mini Setup Wizard will start. If this happens and you did not take a ghost image of the system just before the sysprep command, you must go back to step 1 on page 77 and redo these steps.
4.1.8 Creating the ghost image Now the client PC is ready to be used as a donor for the clone image. 1. The cloning profile we created in LCCM (see 4.1.6, “Automating the use of a cloning tool with LCCM” on page 73) saves the image to GHSTCAP.GHO. Since we want to keep this image, rename it to PRE_SPRP.GHO.
82
Implementing Asset ID
Page 95
2. Drag and drop the client you have just prepared in 4.1.7, “Sysprep: preparing the client for cloning” on page 75 (in our case it is CLNT1) to the Remote Ghost Capture profile and then click Process. 3. Rename GHSTCAP.GHO to W2KGOLD.GHO.
4.1.9 Creating the final profile in LCCM We now have a ghost image ready to be deployed to clients via an LCCM profile that uses Asset ID, Ghost, and Sysprep. This profile will remotely deploy the Ghost image, then pull the unique variables out from the Asset ID area on this remote PC, and populate these variables in a SYSPREP.INF file on the PC. When the PC is booted for the first time it will go through an automated configuration without any user intervention. Now that we have our final image we create an LCCM profile so that it pushes the image to the client and then copies a machine-specific SYSPREP.INF file to that machine. 1. In the C:\LCCM\CLNTFILE directory, make a copy of GHSTDMP.LCI and name it PUSHW2K.LCP. 2. Edit PUSHW2K.LCP with a text editor and change ghstcap.gho to w2kgold.gho, so that it looks like Figure 56: net use x: \\itsosa8\ghost x: ghost -clone,mode=load,src=x:\w2kgold.gho,dst=1,sze1=f -sure -fx
Figure 56. PUSHW2K.LCP
3. Create a text file SPRPCSTM.LCI file in the C:\LCCM\CLNTFILE directory to customize SYSPREP.INF on the remote client by pulling out the variables from the Asset ID area. The file should contain:
Chapter 4. Integration with LCCM and SDA
83
Page 96
path=s:\; s: fat32 T: CD\ MD %CSERIAL% CD\%CSERIAL% aiaread USERDEVICE /S >NETCON.BAT aiaread OWNERDATA /S >>NETCON.BAT echo lccustom s:\sysprep.org sysprep.inf >>NETCON.BAT echo copy sysprep.inf e:\sysprep >>NETCON.BAT NETCON.BAT Figure 57. SPRPCSTM.LCI - Sysprep customize
Note: E: is the primary active partition on the client system. 4. Copy the SYSPREP.ORG file that was saved on diskette back to the C:\LCCM\CLNTFILE directory. 5. You should now have the following files in C:\LCCM\CLNTFILE: – PUSHW2K.LCP – SPRPCSTM.LCI – SYSPREP.ORG 6. Start LCCM if it is not already running. 7. Click Profile > Create New. 8. Select Manually with the Profile Notebook then click OK. 9. On the Details tab: a. In the Name field enter in W2K with Asset ID Deployment. b. Select Operating System Clone under Type. c. Ensure the Enable Client assignment wizard is checked. 10.Click the Software tab.
84
Implementing Asset ID