Condividi tramite


Set-DAEntryPointDC

Set-DAEntryPointDC

Modifies domain controller (DC) settings for the entry point.

Syntax

Parameter Set: ChangeByDCName
Set-DAEntryPointDC -ExistingDC <String> [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-Force] [-NewDC <String> ] [-PassThru] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ChangeByEntryPoint
Set-DAEntryPointDC -EntryPointName <String> [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-Force] [-NewDC <String> ] [-PassThru] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-DAEntryPointDC cmdlet modifies domain controller (DC) settings for entry points, and can be used to the following:
-- Assigns a DC to all entry points previously assigned to the DC specified in the ExistingDC parameter. This is useful when a DC is no longer reachable and entry points settings must be updated.
-- Assigns a DC to a specific entry point. This is useful for optimization, such as improving the Group Policy propagation time by specifying a DC that is located within the same Active Directory site as the other servers in an entry point.

Parameters

-AsJob

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-CimSession<CimSession[]>

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ComputerName<String>

Specifies theIPv4 or IPv6 address, or host name, of a server included in the entry point.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-EntryPointName<String>

Specifies the name of the entry point for which the DC is be updated.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-ExistingDC<String>

Specifies the fully qualified domain name (FQDN) of the existing DC that will be updated.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NewDC<String>

Specifies the FQDN of the new DC.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ThrottleLimit<Int32>

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Management.Infrastructure.CimInstance#DADomainController[]

    The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign (#) provides the namespace and class name for the underlying WMI object.
    The array of DADomainController objects that contains the following properties:
    -- ChangeByDCName: Provides a list of entry points for which the associated DCs have been changed, and the name of the new DC. The ExistingDC parameter has a specified value. The EntryPointName parameter does not have a specified value.
    -- ChangeByEntryPoint: Provides information about the specified entry point and its updated DC. The ExistingDC parameter does not have a specified value. The EntryPointName parameter has a specified value.

Examples

EXAMPLE 1

This example associates Entry Point 1 with the DC named dc3.domain1.corp.contoso.com.

PS C:\> Set-DAEntryPointDC –EntryPointName "Entry Point 1" –NewDC "DC3.Domain1.corp.company.com" –Force –PassThru

EXAMPLE 2

This example automatically picks the DC named dc3.domain1.corp.contoso.com is the closest to the server named da1.domain1.corp.contoso.com and associate the DC with Entry Point 1, because the NewDC parameter is not specified.

PS C:\> Set-DAEntryPointDC –EntryPointName "Entry Point 1" -ComputerName "da1.domain1.corp.contoso.com" –Force -PassThru

EXAMPLE 3

This example associates all of the entry points which were previously associated with the DC named dc1.domain1.corp.contoso.com with the DC named dc3.domain1.corp.contoso.com.

PS C:\> Set-DAEntryPointDC –ExistingDC "dc1.domain1.corp.contoso.com" -NewDC "dc3.domain1.corp.contoso.com" –Force -PassThru

Add-DAEntryPoint

Get-DAEntryPoint

Get-DAEntryPointDC

Remove-DAEntryPoint

Set-DAEntryPoint