Directory Services

Publishing Under a Computer Object

Typically, host-based services create SCPs under the computer object for the host computer. Host-based services are services closely tied to a single host computer.

To create SCPs under a computer object

  1. Call the GetComputerObjectName function to get the distinguished name (DN) in the directory of the computer object for the local computer.
  2. Use that DN to bind to the computer object and create the SCP.

For more information and a code example, see How Clients Find and Use a Service Connection Point.

Be aware that only domain-member computers have valid computer objects in the directory.

To get the DNS or NetBIOS name of the local computer, call the GetComputerNameEx function.