June 17, 2019 at 1:34 pm #161510ParticipantTopics: 1Replies: 1Points: 14Rank: Member
Trying to build a script that is run daily that generates a health report of the DFS replication of Sysvol.
I am able to see the Domain System Volume with the following command:
Get-DfsReplicationGroup -groupname “Domain System Volume” -includesysvol | Write-DfsrHealthReport -path “C:\temp”
But when i try to pipe the command to Write-DfsrHealthReport i get an errormessage that the replication group cannot be found.
“Write-DfsrHealthReport : Could not create the health report on the computer named DC1 because no replication groups found named: “Domain System Volume”
Also tried to use the command without piping it, but i get the same errormessage.
Write-DfsrHealthReport -ReferenceComputerName DC1 -GroupName “Domain System Volume” -path C:\temp
I have noticed that the Write-DFSRHealthReport command does not have the -includesysvol parameter.
I am currently running the powershell as Domain Admin.
Does anyone have a solution to this issue?
I can generate the report in the GUI.
June 17, 2019 at 4:16 pm #161547Senior ModeratorTopics: 3Replies: 123Points: 653Rank: Major Contributor
If you do
Get-DfsReplicationGroup -GroupName * -IncludeSysvol
is Domain System Volume actually present?
June 18, 2019 at 2:12 pm #161729ParticipantTopics: 1Replies: 1Points: 14Rank: Member
Yes, it shows up!
GroupName : Domain System Volume
DomainName : xxxx.xxxx.xx
Identifier : xxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxxxx
State : Normal
June 18, 2019 at 6:20 pm #161783Senior ModeratorTopics: 3Replies: 123Points: 653Rank: Major Contributor
Per the answer you got on technet, it seems you cannot do this with Write-DFSRHealthReport.
However, you might be able to interact with DfsrAdmin.exe at the command line as discussed in this blog. And you’re in luck, the link to his script is still alive. But, this is 8.5 years old… decent odds that this won’t work anymore.
- The topic ‘DFSR Healthreport for Domain System Volume / SYSVOL’ is closed to new replies.