Set-DfsnServerConfiguration

Set-DfsnServerConfiguration

Changes settings for a DFS namespace root server.

Syntax

Parameter Set: SetNamespaceServerConfig1
Set-DfsnServerConfiguration [-ComputerName] <String> [[-SyncIntervalSec] <UInt32> ] [[-EnableSiteCostedReferrals] <Boolean> ] [[-EnableInsiteReferrals] <Boolean> ] [[-LdapTimeoutSec] <UInt32> ] [[-PreferLogonDC] <Boolean> ] [[-UseFqdn] <Boolean> ] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-DfsnServerConfiguration cmdlet changes settings for a Distributed File System (DFS) namespace root server. A DFS namespace root server hosts one or more namespace root targets.

You can use this cmdlet to enable in-site referrals or to use cost in organizing referrals for targets in a site. You can also change the synchronization interval for servers that connect to a primary domain controller (PDC) emulator and change the Lightweight Directory Access Protocol (LDAP) time-out. You can specify whether referrals prefer the logon domain controller. You can also specify whether the server provides referrals as fully qualified domain names (FQDN) or NETBios names.

To see current values for these settings, use the Get-DfsnServerConfiguration cmdlet.

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

Session

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ComputerName<String>

Specifies the host name or FQDN for the DFS namespace server for which the cmdlet modifies settings.

Aliases

Server,name,NamespaceServer

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-EnableInsiteReferrals<Boolean>

Indicates whether this server provides only in-site referrals. If you assign a value of $True, the server returns only referrals for targets in the same site as the client. If you assign a value of $False, the server returns in-site referrals and other referrals.

Aliases

insite

Required?

false

Position?

4

Default Value

False

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-EnableSiteCostedReferrals<Boolean>

Indicates whether the server can use cost-based selection. If you specify a value of $True, the DFS namespace server provides referrals for folder targets to clients in the following order:

-- Folder targets in the same site as a client, in random order.
-- Folder targets for which the DFS namespace server has information. The referrals for the nearest site are first, in random order, followed by the next nearest site, in random order.
-- Targets for which DFS namespace server has no site information, in random order.

If you specify a value of $False, the DFS namespace server provides referrals for folder targets to clients in the following order:

-- Folder targets in the same site as the client, in random order.
-- Other folder targets, in random order.

Aliases

Sitecosted,SiteCostedReferrals

Required?

false

Position?

3

Default Value

False

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-LdapTimeoutSec<UInt32>

Specifies a time-out value, in seconds, for Lightweight Directory Access Protocol (LDAP) requests for the DFS namespace server.

Aliases

LdapTimeout

Required?

false

Position?

5

Default Value

30

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PreferLogonDC<Boolean>

Indicates whether to prefer the logon domain controller in referrals. If you specify a value of $True for this parameter, the DFS namespace server places referrals to the computer that hosts the logon domain controller at the top of the list of referrals.

Aliases

none

Required?

false

Position?

6

Default Value

False

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SyncIntervalSec<UInt32>

Specifies an interval, in seconds. This interval controls how often domain-based DFS namespace root servers and domain controllers connect to the PDC emulator to get updates of DFS namespace metadata.

Aliases

SyncInterval

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

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

-UseFqdn<Boolean>

Indicates whether a DFS namespace server uses FQDNs in referrals. If this parameter has a value of $True, the server uses FQDNs in referrals. If this parameter has a value of $False, the server uses NetBIOS names. The default for DFS namespace servers is to use NetBIOS names in referrals.

Aliases

Fqdn,dfsdnsconfig,UseFullyQualifiedDomainNames

Required?

false

Position?

7

Default Value

False

Accept Pipeline Input?

True (ByPropertyName)

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.

Outputs

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

  • Microsoft.Management.Infrastructure.CimInstance#MSFT_DfsNamespaceServerConfig

Examples

Example 1: Set LDAP time-out for a DFS namespace server

This command sets an LDAP time-out value of 60 seconds for the local computer, which is a DFS namespace server.

PS C:\> Set-DfsnServerConfiguration -ComputerName "localhost" -LdapTimeoutSec 60

Get-DfsnServerConfiguration