ערוך

שתף באמצעות


Domain.UpdateLocalSideOfTrustRelationship Method

Definition

Updates the local side of a trust relationship.

Overloads

UpdateLocalSideOfTrustRelationship(String, String)

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

UpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

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

UpdateLocalSideOfTrustRelationship(String, String)

Source:
Domain.cs
Source:
Domain.cs
Source:
Domain.cs
Source:
Domain.cs

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

public:
 void UpdateLocalSideOfTrustRelationship(System::String ^ targetDomainName, System::String ^ newTrustPassword);
public void UpdateLocalSideOfTrustRelationship (string targetDomainName, string newTrustPassword);
member this.UpdateLocalSideOfTrustRelationship : string * string -> unit
Public Sub UpdateLocalSideOfTrustRelationship (targetDomainName As String, newTrustPassword As String)

Parameters

targetDomainName
String

The DNS name of the domain with which a trust exists.

newTrustPassword
String

The new password for the trust.

Exceptions

There is no trust relationship with the domain that is specified by targetDomainName.

A call to the underlying directory service resulted in an error.

The target server is either busy or unavailable.

targetDomainName or newTrustPassword is an empty string.

targetDomainName or newTrustPassword is null.

The object has been disposed.

The specified account does not have permission to perform this operation.

Remarks

To re-establish the trust, both sides of the trust must be updated with the same password.

See also

Applies to

UpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

Source:
Domain.cs
Source:
Domain.cs
Source:
Domain.cs
Source:
Domain.cs

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

public:
 void UpdateLocalSideOfTrustRelationship(System::String ^ targetDomainName, System::DirectoryServices::ActiveDirectory::TrustDirection newTrustDirection, System::String ^ newTrustPassword);
public void UpdateLocalSideOfTrustRelationship (string targetDomainName, System.DirectoryServices.ActiveDirectory.TrustDirection newTrustDirection, string newTrustPassword);
member this.UpdateLocalSideOfTrustRelationship : string * System.DirectoryServices.ActiveDirectory.TrustDirection * string -> unit
Public Sub UpdateLocalSideOfTrustRelationship (targetDomainName As String, newTrustDirection As TrustDirection, newTrustPassword As String)

Parameters

targetDomainName
String

The DNS name of the domain with which a trust exists.

newTrustDirection
TrustDirection

An TrustDirection value for the new trust direction for the trust relationship.

newTrustPassword
String

The new password for the trust.

Exceptions

There is no trust relationship with the domain that is specified by the targetDomainName parameter.

A call to the underlying directory service resulted in an error.

The target server is either busy or unavailable.

targetDomainName or newTrustPassword is an empty string.

targetDomainName or newTrustPassword is null.

newTrustDirection is not a valid TrustDirection value.

The object has been disposed.

The specified account does not have permission to perform this operation.

See also

Applies to