I am trying to automate the creation of new DFSR folders. I found that the cmdlet New-DfsReplicatedFolder is doing the job just fine. The issue is that I cannot find a way to modify some of the properties of the replicated folder such as: Staging path, Staging Quota and Quota for Conflict and Deleted.
full disclosure I don’t know that much about DFS, especially when it related to Powershell, but I put your cmdlet into Microsoft’s website and then did a ctrl+f for “staging” and found this example:
#The fourth command uses the **Set-DfsrMembership** cmdlet to configure membership settings for the primary member of the replication group named Branch Office 1. The command specifies that the computer named SRV01 is the primary member of the group. The command sets an appropriate quota size of the staging folder instead of the lower default.
PS C:\> Set-DfsrMembership -GroupName "Branch Office 1" -FolderName "Data Distribution 1" -ContentPath "C:\rf1" -ComputerName "SRV01" -PrimaryMember $True -StagingPathQuotaInMB 16384 -Force | Format-Table *name,*path,primary* -auto -wrap
heading over to the page for that cmdlet the syntax example looks like this might cover what you want: