Veja abaixo detalhes e exemplos. New-DfsnFolder
criará uma nova pasta, enquanto New-DfsnFolderTarget
adicionará um destino a uma pasta de namespace DFS existente .
Fontes: New-DfsnFolder & New-DfsnFolderTarget
New-DfsnFolder
- Cria uma pasta em um namespace DFS.
The
New-DfsnFolder
cmdlet creates a folder in a Distributed File System (DFS) namespace. Specify the path and a path for a folder target for the new folder. A DFS namespace folder has one or more folder targets that are shared folders on computers. When a client attempts to connect to a folder, the DFS namespace server provides a list of folder targets, called referrals. The server determines the order for referrals and clients attempt to connect to a folder target in the order that the server provides. You can specify settings for the new folder. You can use this cmdlet to enable or disable the following settings:
- In-site referrals.
- Target failback.
You can also add a descriptive comment, select the state of the folder and
folder target, and set the Time to Live (TTL) interval for referrals.Finally, you can specify the priority class and priority rank for referrals.
O comando abaixo cria uma pasta chamada LegacySoftware
no namespace \Contoso\AccountingResources
. O destino da pasta é \Contoso-FS\AccountingLegacy
. O comando habilita o failback de destino para a pasta. O comando inclui uma descrição para a nova pasta.
PS C:\> New-DfsnFolder -Path "\Contoso\AccountingResources\LegacySoftware" -TargetPath "\Contoso-FS\AccountingLegacy" -EnableTargetFailback $True -Description "Folder for legacy software."
New-DfsnFolderTarget
- Adiciona um destino a uma pasta de espaço para nome DFS.
The
New-DfsnFolderTarget
cmdlet adds a target to a Distributed File System (DFS) namespace folder. Specify the DFS namespace folder and the folder target. You can set the state of the DFS namespace target and configure priority class and priority rank for referrals.A DFS namespace folder has one or more folder targets that are shared folders on computers. When a client attempts to connect to a folder, the DFS namespace server provides a list of folder targets, called referrals. The server determines the order for referrals and clients attempt to connect to a folder target in the order that the server provides.
O comando abaixo adiciona \Contoso-FS\Software
como um destino para a pasta de espaço para nome DFS \Contoso\AccountingResources\LegacySoftware
com uma prioridade de referência de baixo global.
PS C:\> New-DfsnFolderTarget -Path "\Contoso\AccountingResources\LegacySoftware" -TargetPath "\Contoso-FS\Software" -ReferralPriorityClass GlobalLow