Windows XP Cookbook (Cookbooks)

Problem

You want to remotely install a Microsoft application to users from a central server, using Group Policy.

Solution

Create a distribution point

You first need to create a distribution point for the software:

  1. Log onto the server as an administrator.

  2. Create a shared network folder where you'll put the Microsoft Software Installer (MSI) package that you're going to distribute.

  3. Set permissions on the share to allow access to MSI package.

  4. Copy or install the MSI package to the distribution point.

Create a Group Policy Object (GPO)

Once you've created a distribution point, you need to create a Group Policy Object (GPO), which will be used to distribute the software:

  1. Run the Active Directory Users and Computers snap-in by choosing Start Programs Administrative Tools, and then choose Active Directory Users and Computers.

  2. In the console tree, right-click your domain, choose Properties, click the Group Policy tab, and click New.

  3. Type in the name that you'll call the policy and press Enter.

  4. Click Properties and then click the Security tab.

  5. Clear the Apply Group Policy checkbox for the security groups that you want to prevent from having this policy applied.

  6. Select the Apply Group Policy checkbox for the groups to which you want to apply this policy.

  7. Click OK.

Assign a package

Now you can install the software to the PCs, what's called "assigning" the package:

  1. Run the Active Directory Users and Computers snap-in by choosing Start Programs Administrative Tools, and then choose Active Directory Users and Computers.

  2. In the console tree, right-click your domain, choose Properties, click the Group Policy tab, select the Group Policy Object you've created for installing the software, and click Edit.

  3. In Computer Configuration, expand Software Settings.

  4. Right-click Software installation and choose New Package.

  5. In the Open dialog box enter full Universal Naming Convention (UNC) path to the shared folder that contains the MSI package that you're going to install, for example, \\file server\share\filename.msi. Make sure that you don't browse to the location. Instead, type in the UNC path to the shared folder.

  6. Click Open, then click assigned and click OK. You'll see the package listed in the right pane of the Group Policy window.

  7. Close the Group Policy snap-in, click OK, and then quit the Active Directory Users and Computers snap-in. When the computer onto which you've assigned the software starts, the software will be automatically installed.

Discussion

This technique is best used when you're installing Microsoft software to multiple machines, and you want to manage them from a central server. The technique is called assigning software. When you assign software with Group Policy, the software is installed when the user of the computer logs on. When the user runs the software for the first time, the installation is finalized.

You can, however, also "publish" software with Group Policy. When you do this, the software is not automatically installed when the user logs on. Instead, the software will be displayed in the Add/Remove Programs dialog box when the user first logs on. The user can then install the software from there. This choice gives the user the option of installing the software or not, while when you assign software, it is automatically installed. For details on how to publish software using Group Policy, see MS KB 314934.

See Also

Recipe 4.16 for remotely uninstalling a Microsoft application using Group Policy; Recipe 4.15 for remotely redeploying a Microsoft application using Group Policy; MS KB 314934, "Use Group Policy to Remotely Install Software in Windows 2000," and MS KB 304953, "How to deploy Office XP over a network"

Категории