Platform SDK: Active Directory, ADSI, and Directory Services

Publishing Under a Computer Object

Typically, host-based services create SCPs under the computer object for their 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 sample code that does this, see How Clients Find and Use a Service Connection Point.

Note that only computers that are domain members have valid computer objects in the directory.

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