Using Software Distribution to Deploy the Service Pack

Published : September 1, 2004

In this section you perform the following actions using software distribution features in the SMS Administrator console to deploy the service pack.

  1. Import the query from the MOF file you created in the previous section for SMS 2003 sites

  2. Create a collection from the query and use it to generate the membership rule for a collection of computers that are ready to be upgraded to Windows XP SP2 for SMS 2003 sites

    -Or-

    Ensure you already have a collection to advertise to for SMS 2.0 sites

  3. Create the necessary objects, such as the package and program and advertise the upgrade program

  4. Verify the package configuration

  5. View the package status

  6. Check the advertisement status

In the following procedure, you import the query from the MOF file that you created previously.  The resulting query is used later as a membership rule for a collection of computers that are ready to be upgraded to Windows XP SP2.

note.gif  Notes
If the MOF query based on the sample MOF files does not return any results, ensure that hardware inventory is enabled for the site. This sample query determines how much disk free space is available, which is obtained from reported hardware inventory.
Complete the following procedure only from the SMS 2003 primary site server.

To import the query

  1. Click Start, and then click SMS Administrator Console.

  2. In the console tree, expand Site Database, and then click Queries.

  3. On the Action menu, point to All Tasks, and then click Import Objects to open the Welcome to the Import Objects Wizard dialog box.

  4. Click Next to open the Import Objects Wizard MOF File dialog box, where you select the MOF file containing the object to import.

  5. Click Browse, and then open XPSP2.mof from C:\Xpsp2\ to open the Import Objects Wizard MOF File dialog box, where you specify the path of the mof file to open.

  6. Click Next to open the Import Objects Wizard Objects dialog box, which displays information about the query and the SMS security rights you must have to successfully import the query.

  7. Click Next to open the Import Objects Wizard Comment dialog box, which displays the comment for the query to be imported.

  8. Click Next to open the Completing the Import Objects Wizard dialog box, which indicates the wizard is ready to import the query.

  9. Click Finish and then refresh the list of queries.

  10. The list of queries appears in the details pane. Notice the new query titled Clients ready for Windows XP SP2 upgrade.

  11. In the console tree, expand Queries, and then click Clients ready for Windows XP SP2 upgrade.

  12. On the Action menu, click Run Query.

    The systems that meet the criteria for upgrading to Windows XP SP2 are displayed in the details pane. Verify that your Windows XP client computer appears in the results pane.

In the following procedure, you create the collection used to target the Windows XP SP2 upgrade. For SMS 2003 sites, this collection uses the query that you created previously. For SMS 2.0 sites, you must manually create your own collection or use a predefined collection.

To create the collection

  1. In the console tree, click Collections.

  2. On the Action menu, point to New, and then click Collection to open the Collection Properties dialog box, which displays General settings for the new collection.

  3. In the Name field, type Clients Ready for Windows XP SP2

    note.gif  Note
    The name of the query and the name of the corresponding collection do not to be identical.

  4. In the Comment box, type All SMS 2003 clients with sufficient hardware resources to upgrade to Windows XP SP2 and then click the Membership Rules tab.

  5. Click New Query Rule to open the Query Rule Properties dialog box.

  6. Click Import Query Statement.

  7. Click Clients ready for Windows XP SP2 upgrade, and then click OK.

  8. In the Name box, type Clients Ready for Windows XP SP2

  9. Under the Collection limiting options, click Limit to collection, and then click Browse.

  10. Click All Windows XP Systems, and then click OK to open the Query Rule Properties dialog box, where the All Windows XP Systems collection is listed as the limiting collection.

    note.gif  Note
    Limiting the collection to members of the All Windows XP Systems collection ensures that only Windows XP clients are targeted for the upgrade. Though the query was limited to Windows XP as the client operating system, this process adds an additional verification step.

  11. Click OK to open the Collection Properties dialog box, which displays the new membership rule as a query.

  12. Verify that Update this collection on a schedule is selected, and then click OK.

  13. In the console tree, expand Collections.

  14. In the console tree, click Clients Ready for Windows XP SP2, and then on the Action menu, click Refresh.

    The collection members appear in the details pane. The collection should include the same computers as the Clients ready for Windows XP SP2 upgrade query does. Verify that this collection contains at least one member before proceeding to the next section.

In the following procedure, you create a package and program to advertise to all computers in the target collection. You then assign distribution points for the package, and create the advertisement for the package. This is accomplished using the Distribute Software Wizard.

To create the necessary objects and advertise the upgrade program

  1. In the console tree, click the Clients Ready for Windows XP SP2 collection, and then on the Action menu, point to All Tasks.

  2. Click Distribute Software to open the Distribute Software Wizard dialog box.

  3. Click Next to open the Distribute Software to Collection Wizard Package dialog box, where you choose options for package distribution.

  4. Select Create a new package from a definition, and then click Next to open the Distribute Software to Collection Wizard Package Definition dialog box, where you select the package definition file to use.

  5. Click Browse, and then open C:\Xpsp2\XPProSP2.sms, which opens the Distribute Software to Collection Wizard Package Definition dialog box.

    Notice that WinXP Pro SP2 has been added to the list.

  6. Under Package definition, verify that WinXP Pro SP2 is selected, and then click Next to open the Distribute Software to Collection Wizard Source Files dialog box, which prompts for source file handling instructions.

  7. Click Always obtain files from a source directory, and then click Next.

  8. In the Distribute Software to Collection Wizard Source Directory dialog box, click Local drive on site server, and then click Browse.

  9. In the Browse for Folder dialog box, click C:\XPSP2\I386, and then click OK.

    important.gif  Important
    Make sure you select C:\XPSP2\i386. If you select another directory, the size of the resulting package might double in size.

  10. In the Distribute Software to Collection Wizard Source Directory dialog box, click Next.

  11. In the Distribute Software to Collection Wizard Distribution Points dialog box, under Distribution Points, select your local distribution point, and then click Next.

  12. In the Distribute Software to Collection Wizard Select a Program to Advertise dialog box, under Programs, click Automated upgrade from XP or XPSP1, and then click Next.

  13. This step applies to SMS 2.0, only. In the Distribute Software Wizard Advertisement Target dialog box, select Advertise the program to an existing collection, and then click Browse.

  14. This step applies to SMS 2.0, only. In the Browse Collection dialog box, select the collection to advertise to, then click OK.

  15. This step applies to SMS 2.0, only. In the Distribute Software Wizard Advertisement Target dialog box, click Next.

  16. In the Distribute Software to Collection Wizard Advertisement Name dialog box, click Next to accept the default advertisement name.

  17. In the Distribute Software to Collection Wizard Advertise to Subcollections dialog box, select Advertise the program only to members of the specified collection, and then click Next.

  18. In the Distribute Software to Collection Wizard Advertisement Schedule dialog box, verify that the current date and time is for the Advertise the program after item.

  19. Verify that No. This advertisement never expires is selected, and then click Next.

  20. In the Distribute Software to Collection Wizard Assign Program dialog box, select Yes. Assign the program, and then in the Assign after box, verify that the current time is listed.

  21. Click Next.

  22. In the Distribute Software to Collection Wizard dialog box, click Finish.

In the following procedure, you verify the configuration of the package, program, and advertisement created by the Distribute Software to Collection Wizard.

To verify package configuration

  1. In the console tree, expand Packages.

    note.gif  Note
    You may need to refresh the display to see the new package.

  2. In the console tree, expand Microsoft WinXP Pro SP2 English.

  3. In the console tree, click Programs.

  4. In the details pane, click Automated upgrade from XP or XPSP1, and then on the Action menu, click Properties.

    note.gif  Note
    The Automated upgrade from XP or XPSP1 Program Properties dialog box displays general settings for the program. Notice that the command line is:
    Update\update.exe /q /f /forcerestart
    This command performs an unattended upgrade and restarts the computer when the upgrade is complete.

  5. Click the Requirements tab.

  6. On the Requirements tab, in Maximum allowed run time, type 60 to indicate the time in minutes required to run the program.

    The Maximum allowed run time is labeled Estimated run time in SMS 2.0.

  7. Select This program can run only on specified client platforms, and then select both x86 Windows XP Professional original release and x86 Windows XP Professional Service Pack 1.

    note.gif  Note
    SMS 2.0 might not include Windows XP in its client platform list.

  8. Click the Environment tab to note that the default setting specifies that the program requires administrative permissions to run, and then click OK.

  9. In the console tree, click Distribution Points to note that the distribution points for the package appear in the details pane where only the local site server is listed.

  10. In the console tree, click Advertisements.

    note.gif  Note
    You may need to refresh the display to see the new advertisement.

  11. This step applies to SMS 2003, only. In the details pane, click WinXP Pro SP2, and then on the Action menu, click Properties.

  12. This step applies to SMS 2003, only. In the WinXP Pro SP2 Advertisement Properties dialog box click the Advanced Client tab to see how Advanced Clients interact with the advertisement, and then click Cancel.

    important.gif  Important
    Using the settings in this step prevents clients in remote boundaries from installing the program and ensures that clients run from the distribution point. If necessary, change settings specified in the WinXP Pro SP2 Advertisement Properties dialog box on the Advanced Client tab.

In the following procedure, you verify that the advertised program is available by viewing the package status in the SMS Administrator console.

To view the package status

  1. In the console tree, expand System Status, and then expand Package Status.

  2. Under Package Status, click Microsoft WinXP Pro SP2 English.

  3. In the details pane, click the local site code , and then, on the Action menu, point to Show Messages.

  4. Click All.

  5. In the Status Messages: Set Viewing Period dialog box, click Skip to view all messages.

  6. In the SMS Status Message Viewer for local site code, expand the Description column to view more detail on the description.

  7. Note the following message IDs that result and their significance

    Message ID

    Description

    30000

    package creation

    30003

    program creation (multiple instances)

    30009

    distribution point assignment

    30006

    advertisement creation

    2300, 2301

    package processing

    30004

    program modification

  8. Close SMS Status Message Viewer for local site code.

In the following procedure, you verify that the advertised program is available by viewing the advertisement status in the SMS Administrator console.

To check the advertisement status

  1. In the console tree, expand Advertisement Status.

  2. Under Advertisement Status, click WinXP Pro SP2.

  3. In the details pane, click the local site code , and then on the Action menu, point to Show Messages.

  4. Click All.

  5. In SMS Status Message Viewer for local site code , expand the Description column to view more detail on the description.

    Notice that message ID 30006 indicates advertisement creation and message ID 3900 indicates that Offer Manager successfully processed the new advertisement.

  6. Close SMS Status Message Viewer for local site code.

    note.gif  Note
    It takes a few minutes for the package to be copied the distribution point. Remain at this point until the package status indicates the package has been copied to the distribution point. You need to manually refresh the package status.