Skip to main content
Version: 2.3.1-preview

Test-MtAdDfsrSubscriptionCount

SYNOPSIS​

Retrieves the count of DFS-R subscriptions for SYSVOL replication.

SYNTAX​

Test-MtAdDfsrSubscriptionCount [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION​

Distributed File System Replication (DFS-R) is used to replicate SYSVOL content between domain controllers. Each domain controller participating in SYSVOL replication has a DFS-R subscription object in Active Directory.

This test counts the number of DFS-R subscriptions, which indicates how many domain controllers are configured for SYSVOL replication via DFS-R.

Note: Older domains may use File Replication Service (FRS) instead of DFS-R. The migration from FRS to DFS-R is recommended for improved reliability.

Security Best Practice:

  • Use DFS-R instead of FRS for SYSVOL replication
  • Ensure all domain controllers have DFS-R subscriptions
  • Monitor replication health regularly

EXAMPLES​

EXAMPLE 1​

Test-MtAdDfsrSubscriptionCount

Returns $true if DFS-R subscription data is accessible.

PARAMETERS​

-ProgressAction​

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

System.Boolean​

NOTES​

https://maester.dev/docs/commands/Test-MtAdDfsrSubscriptionCount