共用方式為


Prohibiting Universal Plug and Play

Universal Plug and Play (UPnP) allows UPnP devices to be connected to a computer over a network and also allows for device-driver independence and zero-configuration networking. In some cases, for example to increase security, you may want to prohibit UPnP in your run-time image.

To prohibit Universal Plug and Play

  1. In Target Designer, open your run-time image configuration.

  2. To eliminate UPnP functionality from your run-time image, ensure that the following two components are not present in the configuration:

    • Universal Plug and & Play
    • Universal Plug and & Play Device Host

    - or -

    To include these components in the configuration and disable their functionality by setting registry values, continue to step 3.

  3. Locate the two components in the component browser and add them in your configuration.

  4. In the configuration editor, expand the node for the Universal Plug & Play component and choose Registry Data.

  5. In the details pane, right-click the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SSDPSRV\Start path and choose Properties. The Registry Resource Properties dialog box appears.

  6. In the Value text box, change the value to 4.

  7. In the Description box, type a description for this registry value for future reference.

  8. Choose OK.

  9. In the configuration editor, expand the node for the Universal Plug & Play Device Host component and choose Registry Data.

  10. In the details pane, right-click the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\upnphost\Start path and choose Properties. The Registry Resource Properties dialog box appears.

  11. In the Value text box, change the value to 4.

  12. In the Description box, type a description for this registry value for future reference.

  13. Choose OK.

See Also

Plug and Play

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.