Information Technology Reference
In-Depth Information
Creating new DFS-r targets by using Windows powerShell
New in Windows Server 2012 R2 is full Windows PowerShell support for DFS-R. To see a full
list of DFS-R cmdlets, sorted by noun, use the following command:
Get-Command -Module DFSR | Sort-Object Noun,Verb | Format-Table Verb,Noun -auto
EXAM TIP
the DFS-r Windows powerShell cmdlets provide a rich source of possible questions and
fussy syntax. plus they are completely new in Windows Server 2012 r2. these properties
make them rich fodder for exam question writers. Make sure you work through an example
or two to have a clear understanding of how to use them.
To create a new DFS-R replication target, you follow a multicommand process. Create the
DFS-R group, assign folders to it, and add member servers. Here is an example:
New-DfsReplicationGroup -GroupName "\\TreyResearch.net\Public\Build" `
| New-DfsReplicatedFolder -FolderName "Build" `
| Add-DfsrMember -ComputerName Trey-DC-02,Trey-Srv-13
Add a bidirectional connection between the two servers:
Add-DfsrConnection -GroupName "\\TreyResearch.net\Public\Build" `
-SourceComputerName Trey-DC-02 `
-DestinationComputerName Trey-Srv-13
Specify Trey-DC-02 as the primary:
Set-DfsrMembership -GroupName "\\TreyResearch.net\Public\Build" `
-FolderName "Build" `
-ContentPath C:\Downloads\Build `
-ComputerName Trey-DC-02 `
-PrimaryMember $True `
-StagingPathQuotaInMB 16384 -Force
Finally, specify that Trey-Srv-13 is a member server with the following:
Set-DfsrMembership -GroupName "\\TreyResearch.net\Public\Build" `
-FolderName "Build" `
-ContentPath C:\Downloads\Build `
-ComputerName Trey-Srv-13 `
-StagingPathQuotaInMB 16384 -Force
Coniguring replication scheduling
DFS-R defaults to replicating 24 hours per day, 7 days per week over the full available band-
width, as shown in Figure 2-10. This replication schedule is fine for some basic situations, but
doesn't take into account specific needs.
 
 
 
Search WWH ::




Custom Search