Export (0) Print
Expand All
3 out of 3 rated this helpful - Rate this topic

Preparing Windows XP SP2 Files

Published : September 1, 2004

Download Word Version

Before you can begin using this paper to deploy Windows XP SP2, you must do the following:

  • Create the XPSP2.mof query.

  • Obtain the Windows XP SP2 source file (XPSP2.exe) and extract it.

  • Obtain the XPProSP2.sms package definition file.

You should place all files listed previously to a single folder on the site server, C:\Xpsp2\ for example.

important.gif  Important
If are using this technical paper to deploy Windows XP SP2 clients in an SMS 2003 site without a service pack, then the Microsoft updates 832860 and 832862 are also required for the clients. For more information about these Microsoft updates, see Applying Microsoft Updates for SMS 2003.

Use the following procedure to create a Managed Object Format (MOF) file, which is used to create a query. The following code is a sample query that identifies SMS Advanced Client computers with sufficient hardware to support an upgrade to Windows XP SP2. You will use the query in subsequent steps as a membership rule for a collection of computers that receive the Windows XP SP2 upgrade advertisement.

Without using the query, you could advertise the upgrade to computers that cannot successfully run the upgrade, resulting in a failed Windows XP SP2 upgrade deployment. However, you can also create your own query using different criteria that identify computers that you can upgrade to Windows XP SP2.

note.gif  Notes

  • Complete the following procedure only on the SMS 2003 primary site server.

  • For an SMS 2.0 site, you must either manually create a query using the basic logic in the code same below, or skip this procedure if you already have an appropriate collection to advertise the upgrade to.

To create the XPSP2.mof query file to import

  1. Copy the following code and then paste it into Notepad.

    Note: Some of the lines have been displayed on multiple lines for better readability but they should be entered on a single line.

    // *****************************************************
    //
    //        Created by SMS Export object wizard
    //
    //        Monday, August 09, 2004 created
    //
    //        File Name: XPSP2.mof
    //
    // Comments :
    // This query finds all SMS client computers running 
    // Windows XP with atleast 1500  MB of free disk space.
    //
    // *****************************************************
     
    // ***** Class : SMS_Query *****
    [SecurityVerbs(140551)]
    instance of SMS_Query
    {
    Comments = "All Windows XP clients that have enough
    disk space to upgrade to Windows XP SP2";
    Expression = "select SMS_R_System.Name, 
    SMS_R_System.SMSInstalledSites, 
    SMS_G_System_OPERATING_SYSTEM.Caption, 
    SMS_G_System_OPERATING_SYSTEM.CSDVersion, 
    SMS_G_System_LOGICAL_DISK.FreeSpace from  
    SMS_R_System inner join 
    SMS_G_System_LOGICAL_DISK on 
    SMS_G_System_LOGICAL_DISK.ResourceID = 
    SMS_R_System.ResourceId inner join 
    SMS_G_System_OPERATING_SYSTEM on 
    SMS_G_System_OPERATING_SYSTEM.ResourceID = 
    SMS_R_System.ResourceId where 
    SMS_G_System_LOGICAL_DISK.FreeSpace >= 1500 and 
    SMS_G_System_LOGICAL_DISK.DeviceID = \"C:\" and 
    SMS_R_System.OperatingSystemNameandVersion like \
    "Microsoft Windows NT Workstation 5.1\"";
        LimitToCollectionID = "";
        Name = "Clients ready for Windows XP SP2 Upgrade";
        QueryID = "";
        TargetClassName = "SMS_R_System";
    };
    // ***** End *****
  2. Save the file in a folder named C:\Xpsp2\, with the file name XPSP2.mof.

In the following procedure, you obtain the Windows XP SP2 source file from the Microsoft Download Center or your can use the XPSP2.exe file available on the Microsoft Windows XP Service Pack 2 CD. This CD is available free from Microsoft. For information about how to order the CD, see the Order Windows XP Service Pack 2 on CD Web page.

note.gif  Note
These files are approximately 266 MB each.

To obtain the Windows XP SP2 source file and extract it

  1. Download WindowsXP-KB835935-SP2-ENU.exe to c:\Xpsp2\

  2. Run c:\xpsp2\WindowsXP-KB835935-SP2-ENU.exe -x.

    -Or-

  3. Copy XPSP2.exe from the Windows XP Service Pack2 CD to c:\Xpsp2\

  4. Run c:\xpsp2\XPSP2.exe -x.

All Windows XP SP2 source files are extracted to c:\xpsp2\i386\. The \i386 folder is created when the file is extracted.

note.gif  Note
Complete the following procedure from an SMS 2.0 or SMS 2003 primary site server.

To obtain the Windows XP SP2 package definition file

  1. Go to the Windows XP Service Pack 2 SMS Files Web page on the Microsoft Download Center.

  2. Download XPSP2sms.exe to C:\Xpsp2\

  3. Open XPSP2sms.exe and extract the XPProSP2.sms package definition file to C:\Xpsp2\

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.