The script is based on Martin http://community.spiceworks.com/scripts/show/1536-dfs-monitor-with-history , thanks again to Martin.
And just add the Email module, that will send one alert email for each runwhen there is an alert or backlog is more than 50.
The script is added txt with "#. Email module..." for the modification section.
Powershell
#. 20151225 add Email module<# .SYNOPSIS Monitor your DFS Replication Backlog with a graphical history..DESCRIPTION Use the DFSMonitorWithHistory.ps1 script to monitor your DFS backlog. It contains a graphical history chart as well as detailed information from each run. I recommend running from a scheduled task every hour to get the best information. Make sure to edit the PARAM section and update it for your environment. Graphical history chart is a Google visualization that requires Flash to run ...<#