Share via


IFPCServer3::JoinDomain method

Applies to: desktop apps only

The JoinDomain method joins the server to the specified domain, and restarts the computer to apply the change if requested.

Syntax

HRESULT JoinDomain(
  [in]            BSTR Domain,
  [in]            String Domain,
  [in]            BSTR DomainUserName,
  [in]            String DomainUserName,
  [in]            BSTR DomainUserPassword,
  [in]            String DomainUserPassword,
  [in, optional]  VARIANT_BOOL RestartNow,
  [in, optional]  Boolean RestartNow
);
FPCServer.JoinDomain( _
  ByVal Domain As BSTR, _
  ByVal Domain As String, _
  ByVal DomainUserName As BSTR, _
  ByVal DomainUserName As String, _
  ByVal DomainUserPassword As BSTR, _
  ByVal DomainUserPassword As String, _
  [ ByVal RestartNow As VARIANT_BOOL ], _
  [ ByVal RestartNow As Boolean ] _
)

Parameters

  • Domain [in]

    C++

    Required. BSTR that specifies the name of the domain to join.

    VB

    Required. String that specifies the name of the domain to join.

  • DomainUserName [in]

    C++

    Required. BSTR that specifies domain user name.

    VB

    Required. String that specifies the domain user name.

  • DomainUserPassword [in]

    C++

    Required. BSTR that specifies the domain password for the user.

    VB

    Required. String that specifies the domain password for the user.

  • RestartNow [in, optional]

    C++

    Boolean value that indicates whether to restart the computer after the method has completed.

    VB

    Boolean value that indicates whether to restart the computer after the the method has completed.

Return value

C++

This method returns S_OK if the call is successful; otherwise, it returns an error code.

VB

If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

The computer must be restarted to apply the change.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCServer

 

 

Build date: 7/12/2010