DFSR Healthreport for Domain System Volume / SYSVOL

Welcome Forums General PowerShell Q&A DFSR Healthreport for Domain System Volume / SYSVOL

This topic contains 3 replies, has 2 voices, and was last updated by

 
Participant
3 months ago.

  • Author
    Posts
  • #161510

    Participant
    Topics: 1
    Replies: 1
    Points: 14
    Rank: Member

    Hi All,

    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.

    Best Regards

    Joakim

  • #161547

    Participant
    Topics: 2
    Replies: 54
    Points: 278
    Helping Hand
    Rank: Contributor

    If you do

    Get-DfsReplicationGroup -GroupName * -IncludeSysvol

    is Domain System Volume actually present?

  • #161729

    Participant
    Topics: 1
    Replies: 1
    Points: 14
    Rank: Member

    Hi,

    Yes, it shows up!

    Like below;

    GroupName : Domain System Volume
    DomainName : xxxx.xxxx.xx
    Identifier : xxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxxxx
    Description :
    State : Normal

  • #161783

    Participant
    Topics: 2
    Replies: 54
    Points: 278
    Helping Hand
    Rank: 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.