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.
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.
Parameters
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to
complete.
The cmdlet immediately returns an object that represents the job and then displays the command
prompt. You can continue to work in the session while the job completes. To manage the job, use the
*-Job cmdlets. To get the job results, use the
Receive-Job cmdlet.
For more information about Windows PowerShell background jobs, see
about_Jobs.
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.
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.
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.
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.
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.
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.
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.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.