Freigeben über


Active Directory Topology Information Technology Sample

This sample demonstrates how to retrieve topological information in the Active Directory. This sample is available only in Visual C#.

NoteNote

This sample uses fictitious values and cannot be run until modified with real values.

For information about using the samples, see the following topics:

To customize the sample for your settings

  • Modify the following string variables with real values in the Program.cs file:

    • targetName

    • targetUserName

    • targetUserPassword

    • targetUserDomain

To build the sample

  1. Open a Command Prompt window and navigate to the TopologyInformation\CS directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.

  2. Type msbuild topologyinformation.sln at the command line.

To run the sample

  1. Navigate to the directory that contains the built executable file, using the command prompt.

  2. Type topologyinformation and press Enter.

NoteNote

This sample is a console application. You must start and run it in a Command Prompt window to view its output.

Remarks

This sample lists the following:

  • Site information in the forest.

  • Site links whose transport type is RPC over IP.

  • Site links bridges whose transport type is RPC over IP.

  • Inter-site transport object information.