Skip to content
Tech Shizz Logo

An Engineers Blog

  • TechShizz
  • blog

How to use DFSRAdmin

Posted on February 23, 2021 By rich No Comments on How to use DFSRAdmin

Create a Replication Group
dfsradmin RG New /rgname:”\contoso.localCLIRepFolder” /rgdesc:”Rep Folder”

Set group replication schedule

dfsrAdmin RG Set Schedule full /RGName:”\contoso.localCLIRepFolder”

You can type dfsradmin RG Set Schedule /? for help about schedule options, syntax, and examples.

Add members to the replication group

dfsradmin member new /rgname:”\contoso.localCLIRepFolder” /memname:Boston

While the new members are actually in the replication group, they are not visible in the DFS Management console until they have been associated with a particular replicated folder.

Create a connection object from A to B
dfsradmin conn new /rgname:”\contoso.localCLIRepFolder” /SendMem:DC1 /RecvMem:Boston /ConnEnabled:true /ConnKeywords:”From DC1 to Boston”

Create a connection object from B to A
dfsradmin conn new /rgname:”\contoso.localCLIRepFolder” /SendMem:Boston /RecvMem:DC1 /ConnEnabled:true /ConnKeywords:”From Boston to DC1″

Replicated folders enable you to replicate documents contained within the folders. The following commands create two replicated folders called Office and Docs. These commands also take advantage of filters, which prevents the replication of specified file types.

 To create a replicated folder called Office
dfsradmin RF New /rgName:”\contoso.localCLIRepFolder” /RfName:Office /RfFileFilter:”*.doc,*.csv,*.xls,*.txt” /RfDirFilter:”dirA,dirB”

NO FILTER

dfsradmin RF New /rgName:”\contoso.localCLIRepFolder” /RfName:Software

Repeat for each required folderer in the NameSpace

—

Setting the Membership properties for the components
This must be done for each folder. THIS COMMAND MAKES THE SERVER THE PRIMARY FOR THE FOLDER.
It also sets the Staging folder (temp dfs cache). One on each server should be made.

dfsradmin Membership Set /RgName:”\contoso.localCLIRepFolder” /RfName:Office /MemName:DC1 /LocalPath:C:dcOffice /MembershipEnabled:true /StagingPath:C:staging /StagingSize:1000 /CDSize:350 /IsPrimary:true

THIS MAKES THE SERVER A NON-PRIMARY REPLICATION GROUP MEMBER.

dfsradmin Membership Set /RgName:”\contoso.localCLIRepFolder” /RfName:Office /MemName:Boston /LocalPath:C:dcOffice /MembershipEnabled:true /StagingPath:C:staging /StagingSize:1000 /CDSize:350 /IsPrimary:false

—

Post navigation

❮ Previous Post: Windows 10 start button or system tray icons are not working
Next Post: Embedded files in PDFs wont open ❯

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Subscribe to our newsletter!

Recent Posts

  • How to implement a lightning-fast ransomware playbook
  • How to achieve defence in depth in your business
  • How to implement a SecOps team phishing response plan
  • How to block an Office 365 Sign-in correctly
  • Microsoft finally patched serious Exchange 0-day over a month old!

Recent Comments

    Archives

    • November 2022
    • July 2021
    • March 2021
    • February 2021

    Categories

    • Cyber Security
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Copyright © 2023 .

    Theme: Oceanly News Dark by ScriptsTown