Microsoft KB Archive/328326

= How to use the Set Program Access and Defaults feature in Windows XP Service Pack 1 =

Article ID: 328326

Article Last Modified on 10/29/2007

-

APPLIES TO


 * Microsoft Windows XP 64-Bit Edition SP1
 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-



This article was previously published under Q328326





For a Microsoft Windows 2000 version of this article, see 327931.

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SUMMARY
This article describes how to use the Set Program Access and Defaults feature that is included with Windows XP Service Pack 1 (SP1) to perform the following tasks:


 * Choose the default programs that run activities such as browsing the Web, sending e-mail, or playing media.
 * Remove access to Microsoft Windows programs.
 * Administer the two policies that control the Set Program Access and Defaults feature. One policy removes the icon from the Start menu, and one policy hides the Set Program Access and Defaults section in the Add or Remove Programs tool in Control Panel.
 * Troubleshoot known problems with the Set Program Access and Defaults feature.

IN THIS TASK

 * INTRODUCTION
 * Specify default programs
 * Remove access to Microsoft Windows programs
 * Use an unattended installation
 * Use the Sysprep tool or the Factory tool after installation
 * Administrative policies for Set Program Access and Defaults
 * Remove Set Program Access and Defaults icon from the Start menu
 * Hide Set Program Access and Defaults in Add or Remove Programs
 * Troubleshooting
 * REFERENCES



INTRODUCTION
This article describes how to use the Set Program Access and Defaults feature that is included with Windows XP Service Pack 1 (SP1). This information is intended for advanced users and IT professionals. For more information including basic information about the Set Program Access and Defaults feature in Windows XP SP1, click the following article number to view the article in the Microsoft Knowledge Base:

332003 How to change your default programs and enable or remove access to Microsoft Windows and non-Microsoft programs

Note For programs to appear in Set Program Access and Defaults, they must be registered. For information about how software vendors can register their programs, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/aa969350.aspx

back to the top

Specify default programs
The Set Program Access and Defaults icon is located on the Start menu and in the Add or Remove Programs tool in Control Panel. If you are a computer administrator, you can use the Set Program Access and Defaults feature to specify the default program for certain activities, such as browsing the Web, sending e-mail messages, or playing media. You can also control how the program's icons, shortcuts, and menu entries appear.

For more information about how to specify default programs, click the following article number to view the article in the Microsoft Knowledge Base:

332003 How to change your default programs and enable or remove access to Microsoft Windows and non-Microsoft programs

Note Microsoft Windows Messenger, Microsoft Windows Media Player, and the Microsoft virtual machine (VM) are not included with Windows XP 64-bit Edition. These programs do not appear in the Set Program Access and Defaults feature in Windows XP 64-bit Edition.

back to the top

Remove access to Microsoft Windows programs
To remove access to programs such as Microsoft Internet Explorer, Microsoft Outlook Express, Windows Media Player, or Windows Messenger if you are a computer administrator (or member of the Administrators groups), you can use either Control Panel (as described earlier), an unattended Setup procedure, or the Sysprep tool or the Factory tool after you run the Setup program.

When you use these methods to remove access to programs, the standard shortcuts and program icons for these programs are removed from the Start menu, the desktop, and other locations. These methods do not remove the executable files (.exe or .dll files) for these programs or disable any file and protocol associations that the program may have registered for itself. To associate the appropriate file types and protocols with another program, configure it as the default program. If the program is not registered in Set Program Access and Defaults, contact the vendor for information about how to make this program the default program or to associate file types and protocols with the program.

back to the top

Use an unattended installation
If you are an administrator, you can remove access to Internet Explorer, Outlook Express, Windows Media Player, or Windows Messenger as part of an unattended Setup procedure or after the Setup runs by using the Sysprep tool or the Factory tool. These methods assume you are using the integrated installation method. This method allows you to install Windows XP and the service pack at the same time.

To remove access to Internet Explorer, Outlook Express, Windows Media Player, and Windows Messenger during unattended Setup or during Sysprep, add a [Components] section to the Unattend.txt file that contains the following options:

[Components] IEAccess = Off OEAccess = Off WMPOCM = Off WMAccess = Off

For additional information about this method, obtain the Deploy.cab file. This file is a compressed file that contains a collection of tools. The Deploy.cab file is located in the Support\Tools folder on the Windows XP SP1 CD. For information about the deployment tools, see the &quot;Microsoft Windows Corporate Deployment Tools User's Guide&quot; Help file (Deploy.chm). This file is included in Deploy.cab. This Help file provides a list of tools, instructions for how to use them, and additional information about how to preinstall, customize, and deploy the service pack.

back to the top

Use the Sysprep tool or the Factory tool after installation
To remove access to Internet Explorer, Outlook Express, Windows Media Player, or Windows Messenger after you have already installed Windows, complete one of the methods that is described in this section.

To remove access by using Sysprep

To remove access to Internet Explorer, Outlook Express, Windows Media Player, and Windows Messenger by using Sysprep:  Add a [Components] section to the Unattend.txt file that contains the following options:

[Components] IEAccess = Off OEAccess = Off WMPOCM = Off WMAccess = Off

 Add the following command line to the [GuiRunOnce] section of Sysprep.inf before you run Sysprep:

[GuiRunOnce]

sysocmgr /i:%windir%\inf\sysoc.inf /u:unattend.txt /q /r /c /x



To remove access by using the Winbom.ini file and the Factory tool  Create a Winbom.ini file that has the entries that are described earlier in the [Components] section.  Add the following command line to the [GuiRunOnce] section of Sysprep.inf before you run sysprep -factory: [GuiRunOnce] sysocmgr /i:%windir%\inf\sysoc.inf /u:winbom.ini /q /r /c /x </ol>

For additional information about this method, obtain the Deploy.cab file. This file is a compressed file that contains a collection of tools. The Deploy.cab file is located in the Support\Tools folder on the Windows XP SP1 CD. For information about the deployment tools, see the &quot;Microsoft Windows Corporate Deployment Tools User's Guide&quot; Help file (Deploy.chm). This file is included in Deploy.cab. This Help file provides a list of tools, instructions for how to use them, and additional information about how to preinstall, customize, and deploy the service pack.

back to the top

Administrative policies for Set Program Access and Defaults
There are two administrative policies to control the Set Program Access and Defaults feature. One policy removes the icon from the Start menu, and one policy hides the Set Program Access and Defaults section in the Add or Remove Programs tool in Control Panel.

Remove the Set Program Access and Defaults icon from the Start menu
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To remove the Set Program Access and Defaults icon from the Start menu, use either of the following methods: <ul> For all users, add a DWORD value named NoSMConfigurePrograms that has a value of 1 to the following registry setting:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

</li> For the current user only, add a DWORD value that is named NoSMConfigurePrograms that has a value of 1 to the following registry setting:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

</li></ul>

To add these registry values:  Click Start, click Run, type regedit in the Open box, and then click OK.</li> Locate and then click the following key in the registry: <ul> For all users:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

</li> For the current user:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer

</li></ul> </li> If an Explorer subkey does not already exist:  On the Edit menu, point to New, and then click Key.</li> Type Explorer for the name of the new subkey, and then click OK.</li></ol> </li> On the Edit menu, point to New, and then click DWORD Value.</li> Type NoSMConfigurePrograms for the name of the DWORD, and then click OK.</li> Right-click NoSMConfigurePrograms, and then click Modify.</li> In the Value data box, type 1, and then click OK.</li> Quit Registry Editor.</li> <li>Restart the computer.</li></ol>

back to the top

Hide Set Program Access and Defaults in Add or Remove Programs
To hide the Set Program Access and Defaults feature in the Add or Remove Programs tool in Control Panel, use either of the following methods: <ul> <li>For all users, add a DWORD value named NoChooseProgramsPage that has a value of 1 to the following registry setting:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall

</li> <li>For the current user only, add a DWORD value named NoChooseProgramsPage that has a value of 1 to the following registry setting:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Uninstall

</li></ul>

To add these registry values: <ol> <li>Click Start, click Run, type regedit in the Open box, and then click OK.</li> <li>Locate and then double-click the following key in the registry: <ul> <li>For all users:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies

</li> <li>For the current user:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

</li></ul> </li> <li>If an Uninstall subkey does not already exist: <ol style="list-style-type: lower-alpha;"> <li>On the Edit menu, point to New, and then click Key.</li> <li>Type Uninstall for the name of the new subkey, and then click OK.</li></ol> </li> <li>Click the Uninstall subkey, point to New on the Edit menu, and then click DWORD Value.</li> <li>Type NoChooseProgramsPage for the name of the DWORD Value, and then click OK.</li> <li>Right-click NoChooseProgramsPage, and then click Modify.</li> <li>In the Value data box, type 1, and then click OK.</li> <li>Quit Registry Editor.</li></ol>

back to the top

Troubleshooting
The following list describes known issues that you may experience when you use the Set Program Access and Defaults feature in Windows XP SP1: <ul> <li>You may receive the following error message:

You do not have permission to set program access and defaults

The Set Program Access and Defaults feature is only available to computer administrators. Contact your computer administrator for help.</li> <li>You cannot specify different defaults for different users.

The Set Program Access and Defaults feature applies to all users of your computer. You cannot specify different default programs for different users or remove access to programs for only some users.</li> <li>Windows Messenger starts when Outlook Express is opened after you remove access to Windows Messenger.

After you remove access to Windows Messenger, Windows Messenger still starts when you open Outlook Express. This condition may occur after you perform one of the following steps: <ul> <li>You clear the Enable access to this program check box in Set Program Access and Defaults.</li> <li>You remove access to Windows Messenger using the Add/Remove Windows Components feature in the Add or Remove Programs tool.</li></ul>

For more information about this issue, click the following article number to view the article in the Microsoft Knowledge Base:

327390 Windows Messenger starts when you start Outlook Express after you remove access to Windows Messenger

</li></ul>

back to the top

<div class="references_section">