Lire en anglais

Partager via


New-DfsnRoot

S'applique à: Windows 10 Technical Preview, Windows Server Technical Preview

New-DfsnRoot

Creates a DFS namespace.

Syntaxe

Parameter Set: NewNamespace2
New-DfsnRoot [-TargetPath] <String> [-Type] <Type> {Standalone | DomainV1 | DomainV2} [[-EnableSiteCosting] <Boolean> ] [[-EnableInsiteReferrals] <Boolean> ] [[-EnableAccessBasedEnumeration] <Boolean> ] [[-EnableRootScalability] <Boolean> ] [[-EnableTargetFailback] <Boolean> ] [[-Description] <String> ] [[-State] <State> {Offline | Online} ] [[-TimeToLiveSec] <UInt32> ] [[-GrantAdminAccounts] <String[]> ] [[-TargetState] <State> {Offline | Online} ] [[-ReferralPriorityClass] <ReferralPriorityClass> {sitecostnormal | globalhigh | sitecosthigh | sitecostlow | globallow} ] [[-ReferralPriorityRank] <UInt32> ] [-CimSession <CimSession[]> ] [-Path <String> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Description détaillée

The New-DfsnRoot cmdlet creates a Distributed File System (DFS) namespace. Specify the root path and the root target path for the new namespace. You must also specify a type: stand-alone namespace, Windows 2000 Server mode (Domain v1) namespace, or Windows Server 2008 mode (Domain v2) namespace.

You can specify settings for the new namespace. You can use this cmdlet to enable or disable the following settings:

-- Site costing.
-- In-site referrals.
-- Access-based enumeration.
-- Root scalability.
-- Target failback.

You can also add a descriptive comment, select the state of the DFS namespace and DFS root target, and set the Time to Live (TTL) interval for referrals.

To manage the DFS namespace, you can grant permissions to users or user groups. Users who have these permissions can add, remove, and modify namespace folders and folder targets for the DFS namespace.

For more information about DFS namespaces, see Overview of DFS Namespaces (https://technet.microsoft.com/library/cc730736) on TechNet.

Paramètres

-CimSession<CimSession[]>

Exécute l'applet de commande dans une session distante ou sur un ordinateur distant. Entrez un nom d'ordinateur ou un objet de session, tels que le résultat d'une applet de commande New-CimSession ou Get-CimSession. La valeur par défaut est la session en cours sur l'ordinateur local.

Alias

Session

Requis ?

false

Position ?

named

Valeur par défaut

none

Accepter l'entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-Description<String>

Specifies a description for a DFS namespace.

Alias

desc

Requis ?

false

Position ?

8

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-EnableAccessBasedEnumeration<Boolean>

Indicates whether a DFS namespace uses access-based enumeration. If this value is $True, a DFS namespace server shows a user only the files and folders that the user can access.

Alias

abe,abde

Requis ?

false

Position ?

5

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-EnableInsiteReferrals<Boolean>

Indicates whether a DFS namespace server provides a client only with referrals that are in the same site as the client. If this value is $True, the DFS namespace server provides only in-site referrals. If this value is $False, the DFS namespace server provides in-site referrals first, then other referrals.

Alias

insite

Requis ?

false

Position ?

4

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-EnableRootScalability<Boolean>

Indicates whether a DFS namespace uses root scalability mode. If this value is $True, DFS namespace servers connect to the nearest domain controllers for periodic namespace updates. If this value is $False, the servers connect to the primary domain controller (PDC) emulator.

Alias

RootScalability,rootscale

Requis ?

false

Position ?

6

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-EnableSiteCosting<Boolean>

Indicates whether a DFS namespace uses cost-based selection. If a client cannot access a folder target in-site, a DFS namespace server selects the least resource intensive alternative. If you provide a value of $True for this parameter, DFS namespace favors high-speed links over wide area network (WAN) links.

Alias

SiteCosting,sitecost

Requis ?

false

Position ?

3

Valeur par défaut

none

Accepter l'entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-EnableTargetFailback<Boolean>

Indicates whether a DFS namespace uses target failback. If a client attempts to access a target on a server and that server is not available, the client fails over to another referral. If this value is $True, once the first server becomes available again, the client fails back to the first server. If this value is $False, the DFS namespace server does not require the client to fail back to the preferred server.

Alias

failback,TargetFailback

Requis ?

false

Position ?

7

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-GrantAdminAccounts<String[]>

Specifies an array of accounts. This cmdlet grants management permissions for the DFS namespace to the users and user groups specifies. Users can add, remove, and modify namespace folders and folder targets.

Alias

GrantAdmin,GrantAdminAccess

Requis ?

false

Position ?

11

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-Path<String>

Specifies a path for the root of a DFS namespace. This path must be unique. This path cannot be the name of an existing DFS namespace.

Alias

RootPath,root,namespace,NamespaceRoot

Requis ?

false

Position ?

named

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-ReferralPriorityClass<ReferralPriorityClass>

Specifies the target priority class for a DFS namespace root. Target priority offers you the ability to classify and rank in-site targets. You can specify targets to receive the highest or lowest preference, and you can divide the remaining targets based on their site cost for a DFS client to connect to them. Les valeurs acceptables pour ce paramètre sont les suivantes : 

-- GlobalHigh. The highest priority class for a DFS target. Targets assigned this class receive global preference.
-- SiteCostHigh. The highest site cost priority class for a DFS target. Targets assigned this class receive the most preference among targets of the same site cost for a given DFS client.
-- SiteCostNormal. The middle or normal site cost priority class for a DFS target.
-- SiteCostLow. The lowest site cost priority class for a DFS target. Targets assigned this class receive the least preference among targets of the same site cost for a given DFS client.
-- GlobalLow. The lowest level of priority class for a DFS target. Targets assigned this class receive the least preference globally.

Alias

PriorityClass,Class

Requis ?

false

Position ?

13

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-ReferralPriorityRank<UInt32>

Specifies the priority rank, as an integer, for a root target of the DFS namespace. Lower values have greater preference. A value of zero (0) is the greatest preference.

Alias

PriorityRank,Rank

Requis ?

false

Position ?

14

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-State<State>

Specifies the state of the DFS namespace root. Les valeurs acceptables pour ce paramètre sont les suivantes : 

-- Online
-- Offline

Clients do not receive referrals for a DFS namespace folder that is offline. If you set a namespace root to a value of Offline, the entire namespace becomes inaccessible.

Alias

none

Requis ?

false

Position ?

9

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-TargetPath<String>

Specifies a path for a root target of the DFS namespace.

Alias

NamespaceRootTarget

Requis ?

true

Position ?

1

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-TargetState<State>

Specifies the state of the DFS namespace root target. Les valeurs acceptables pour ce paramètre sont les suivantes : 

-- Online
-- Offline

Clients do not receive referrals for a DFS namespace folder target that is Offline.

Alias

none

Requis ?

false

Position ?

12

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-ThrottleLimit<Int32>

Spécifie le nombre maximal d'opérations simultanées qui peuvent être établies pour exécuter l'applet de commande. Si ce paramètre est omis ou si la valeur 0 est entrée, Windows PowerShell® calcule un seuil de limitation optimal pour l'applet de commande en fonction du nombre d'applets de commande CIM exécutées sur l'ordinateur. Le seuil de limitation s'applique uniquement à l'applet de commande en cours, non pas à la session ou à l'ordinateur.

Alias

none

Requis ?

false

Position ?

named

Valeur par défaut

none

Accepter l'entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-TimeToLiveSec<UInt32>

Specifies a TTL interval, in seconds, for referrals. Clients store referrals to root targets for this length of time. The default TTL interval for root referrals is 300 seconds.

Alias

ttl,TimeToLive

Requis ?

false

Position ?

10

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-Type<Type>

Specifies the type of a DFS namespace as a Type object. Les valeurs acceptables pour ce paramètre sont les suivantes : 

-- Standalone. Specifies a stand-alone namespace.
-- DomainV1. Specifies a Windows 2000 Server mode domain namespace.
-- DomainV2. Specifies a Windows Server 2008 mode domain namespace.

Alias

none

Requis ?

true

Position ?

2

Valeur par défaut

none

Accepter l'entrée de pipeline ?

True (ByPropertyName)

Accepter les caractères génériques ?

false

-Confirm

Vous invite à confirmer l'exécution de l'applet de commande.

Requis ?

false

Position ?

named

Valeur par défaut

false

Accepter l'entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-WhatIf

Indique ce qui se produit en cas d'exécution de l'applet de commande. L'applet de commande n'est pas exécutée.

Requis ?

false

Position ?

named

Valeur par défaut

false

Accepter l'entrée de pipeline ?

false

Accepter les caractères génériques ?

false

<CommonParameters>

Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d'informations, consultez  . about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entrées

Le type d'entrée correspond au type des objets que vous pouvez adresser à l'applet de commande.

Sorties

Le type de sortie correspond au type des objets que l'applet de commande émet.

  • Microsoft.Management.Infrastructure.CimInstance#MSFT_DfsNamespace

Exemples

Example 1: Create a Windows Server 2008 mode DFS namespace

This command creates a DFS namespace that has a root at the path \\Contoso\AccountingResources. The root target for the path is the shared folder \\Contoso-FS\AccountingResources. The namespace type is Windows Server 2008 mode, specified as a type of DomainV2.

PS C:\> New-DfsnRoot -TargetPath "\\Contoso-FS\AccountingResources" -Type DomainV2 -Path "\\Contoso\AccountingResources"

Example 2: Create a stand-alone DFS namespace

This command creates a stand-alone DFS namespace that has a root at path \\Contoso\Software that has a namespace root target pointing to \\Contoso-FS\Software. This namespace uses cost-based site selection.

PS C:\> New-DfsnRoot -TargetPath "\\Contoso-FS\Software" -Type Standalone -EnableSiteCosting -Path "\\Contoso\Software"

Rubriques connexes

Get-DfsnRoot

Remove-DfsnRoot

Set-DfsnRoot