Set-DfsnServerConfiguration
Changes settings for a DFS namespace root server.
Syntax
Set-DfsnServerConfiguration
[-ComputerName] <String>
[[-SyncIntervalSec] <UInt32>]
[[-EnableSiteCostedReferrals] <Boolean>]
[[-EnableInsiteReferrals] <Boolean>]
[[-LdapTimeoutSec] <UInt32>]
[[-PreferLogonDC] <Boolean>]
[[-UseFqdn] <Boolean>]
[-CimSession <CimSession[]>]
[-ThrottleLimit <Int32>]
[-AsJob]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
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.
Examples
Example 1: Set LDAP time-out for a DFS namespace server
Set-DfsnServerConfiguration -ComputerName 'localhost' -LdapTimeoutSec 60
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.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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.
Type: | CimSession[] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ComputerName
Specifies the host name or FQDN for the DFS namespace server for which the cmdlet modifies settings.
Type: | String |
Aliases: | Server, name, NamespaceServer |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableInsiteReferrals
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.
Type: | Boolean |
Aliases: | insite |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-EnableSiteCostedReferrals
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.
Type: | Boolean |
Aliases: | Sitecosted, SiteCostedReferrals |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-LdapTimeoutSec
Specifies a time-out value, in seconds, for Lightweight Directory Access Protocol (LDAP) requests for the DFS namespace server.
Type: | UInt32 |
Aliases: | LdapTimeout |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PreferLogonDC
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.
Type: | Boolean |
Position: | 5 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SyncIntervalSec
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.
Type: | UInt32 |
Aliases: | SyncInterval |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ThrottleLimit
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.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UseFqdn
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.
Type: | Boolean |
Aliases: | Fqdn, dfsdnsconfig, UseFullyQualifiedDomainNames |
Position: | 6 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |