次の方法で共有


SetByDCName method of the PS_DAEntryPointDC class

Modifies domain controller settings for the entry point.

Syntax

uint32 SetByDCName(
  [in]  string             ComputerName,
  [in]  string             ExistingDC,
  [in]  string             NewDC,
  [in]  boolean            Force,
  [in]  boolean            PassThru,
  [out] DADomainController cmdletOutput[]
);

Parameters

ComputerName [in]

Name or IP address of the remote access server in the entry point.

ExistingDC [in]

The FQDN of the existing domain controller that will be updated.

NewDC [in]

The FQDN of the new domain controller. If no value is provided the domain controller closest to the server specified in ComputerName will be used.

Force [in]

Suppresses the user confirmation that prompts during running the cmdlet.

PassThru [in]

Specifying PassThru returns the DAEntrypointDC object which contains the DAEntrypointDC configuration. This cmdlet doesn't generate an object by default.

cmdletOutput [out]

  1. ChangeByDCName: Provides a list of entry points for which the associated domain controllers have been changed, and the name of the new domain controller. ExistingDC has a specified value. EntryPointName does not have a specified value. 2. ChangeByEntryPoint: Provides information about the specified entry point and its updated domain controller. ExistingDC does not have a specified value. EntryPointName has a specified value.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess
MOF
RAMgmtPSProvider.mof
DLL
RAMgmtPSProvider.dll

See also

PS_DAEntryPointDC