Forest Forest Forest Forest Class

Definition

The Forest class represents an Active Directory Domain Services forest.

public ref class Forest : IDisposable
public class Forest : IDisposable
type Forest = class
    interface IDisposable
Public Class Forest
Implements IDisposable
Inheritance
ForestForestForestForest
Implements

Properties

ApplicationPartitions ApplicationPartitions ApplicationPartitions ApplicationPartitions

Gets a collection of all application partitions in the forest.

Domains Domains Domains Domains

Gets a collection of all domains in the forest.

ForestMode ForestMode ForestMode ForestMode

Gets the operating mode of the forest.

ForestModeLevel ForestModeLevel ForestModeLevel ForestModeLevel

Gets the operating mode level of the forest.

GlobalCatalogs GlobalCatalogs GlobalCatalogs GlobalCatalogs

Gets a collection of all global catalogs in the forest.

Name Name Name Name

Gets the name of the forest.

NamingRoleOwner NamingRoleOwner NamingRoleOwner NamingRoleOwner

Gets the domain controller that holds the FSMO naming master role for the forest.

RootDomain RootDomain RootDomain RootDomain

Gets the first domain that was created in a forest.

Schema Schema Schema Schema

Gets the schema of the forest.

SchemaRoleOwner SchemaRoleOwner SchemaRoleOwner SchemaRoleOwner

Gets the domain controller that holds the FSMO schema master role for the forest.

Sites Sites Sites Sites

Gets a collection of sites that are contained in the forest.

Methods

CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String)

Creates the local side of a trust relationship with the specified forest.

CreateTrustRelationship(Forest, TrustDirection) CreateTrustRelationship(Forest, TrustDirection) CreateTrustRelationship(Forest, TrustDirection) CreateTrustRelationship(Forest, TrustDirection)

Creates both sides of a trust relationship with the specified forest.

DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String)

Deletes the local side of a trust relationship.

DeleteTrustRelationship(Forest) DeleteTrustRelationship(Forest) DeleteTrustRelationship(Forest) DeleteTrustRelationship(Forest)

Deletes both sides of a trust relationship.

Dispose() Dispose() Dispose() Dispose()

Releases all managed and unmanaged resources that are held by the object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the managed resources that are used by the object and, optionally, releases unmanaged resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindAllDiscoverableGlobalCatalogs() FindAllDiscoverableGlobalCatalogs() FindAllDiscoverableGlobalCatalogs() FindAllDiscoverableGlobalCatalogs()

Finds all of the discoverable global catalogs in this forest.

FindAllDiscoverableGlobalCatalogs(String) FindAllDiscoverableGlobalCatalogs(String) FindAllDiscoverableGlobalCatalogs(String) FindAllDiscoverableGlobalCatalogs(String)

Finds all of the discoverable global catalogs in this forest in a specified site.

FindAllGlobalCatalogs() FindAllGlobalCatalogs() FindAllGlobalCatalogs() FindAllGlobalCatalogs()

Finds all the global catalogs in this forest.

FindAllGlobalCatalogs(String) FindAllGlobalCatalogs(String) FindAllGlobalCatalogs(String) FindAllGlobalCatalogs(String)

Finds all the global catalogs in this forest for a given site.

FindGlobalCatalog() FindGlobalCatalog() FindGlobalCatalog() FindGlobalCatalog()

Finds any global catalog in this forest.

FindGlobalCatalog(LocatorOptions) FindGlobalCatalog(LocatorOptions) FindGlobalCatalog(LocatorOptions) FindGlobalCatalog(LocatorOptions)

Finds a global catalog in this forest for a specified location criteria.

FindGlobalCatalog(String) FindGlobalCatalog(String) FindGlobalCatalog(String) FindGlobalCatalog(String)

Finds a global catalog in this forest for a specified site.

FindGlobalCatalog(String, LocatorOptions) FindGlobalCatalog(String, LocatorOptions) FindGlobalCatalog(String, LocatorOptions) FindGlobalCatalog(String, LocatorOptions)

Finds a global catalog in this forest for a specified site and location criteria.

GetAllTrustRelationships() GetAllTrustRelationships() GetAllTrustRelationships() GetAllTrustRelationships()

Gets a collection of the trust relationships of the current forest.

GetCurrentForest() GetCurrentForest() GetCurrentForest() GetCurrentForest()

Gets a Forest object for the current user context.

GetForest(DirectoryContext) GetForest(DirectoryContext) GetForest(DirectoryContext) GetForest(DirectoryContext)

Gets a Forest object for the specified context.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String)

Gets a Boolean value that indicates whether selective authentication is enabled on the inbound trust relationship with the specified forest. true if selective authentication is enabled; otherwise, false.

GetSidFilteringStatus(String) GetSidFilteringStatus(String) GetSidFilteringStatus(String) GetSidFilteringStatus(String)

Gets the SID filtering status of a trust.

GetTrustRelationship(String) GetTrustRelationship(String) GetTrustRelationship(String) GetTrustRelationship(String)

Gets the trust relationship between this forest and the specified forest.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RaiseForestFunctionality(ForestMode) RaiseForestFunctionality(ForestMode) RaiseForestFunctionality(ForestMode) RaiseForestFunctionality(ForestMode)

Raises the mode of operation for the forest.

RaiseForestFunctionalityLevel(Int32) RaiseForestFunctionalityLevel(Int32) RaiseForestFunctionalityLevel(Int32) RaiseForestFunctionalityLevel(Int32)

Raises the forest functionality level to the given setting.

RepairTrustRelationship(Forest) RepairTrustRelationship(Forest) RepairTrustRelationship(Forest) RepairTrustRelationship(Forest)

Repairs a trust relationship.

SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean)

Enables or disables selective authentication for an inbound trust.

SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean)

Sets the SID filtering state with the specified forest.

ToString() ToString() ToString() ToString()

Returns a string representation of the current forest.

UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String)

Updates the password for the local side of a trust relationship.

UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

Updates the password and trust direction for the local side of a trust relationship.

UpdateTrustRelationship(Forest, TrustDirection) UpdateTrustRelationship(Forest, TrustDirection) UpdateTrustRelationship(Forest, TrustDirection) UpdateTrustRelationship(Forest, TrustDirection)

Updates the trust direction for a trust relationship. The trust directions are updated on both sides of the trust.

VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String)

Verifies that a previously established outbound trust with the specified forest is valid.

VerifyTrustRelationship(Forest, TrustDirection) VerifyTrustRelationship(Forest, TrustDirection) VerifyTrustRelationship(Forest, TrustDirection) VerifyTrustRelationship(Forest, TrustDirection)

Verifies that a previously established trust with the specified forest is valid.

Security

DirectoryServicesPermission
Demand value: LinkDemand

Applies to