To me, it looks like the variable name you used ($SourceComputer) is not the 
same the error is showing ($SourceComputerNam...)


Webster

-----Original Message-----
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Kurt Buff
Sent: Sunday, April 30, 2017 2:44 AM
To: powershell@lists.myitforum.com
Subject: [powershell] Error with powershell and Add-DfsrMember

I'm setting up DFSR between two file servers. The following line in the script 
updates the US server ($SourceComputer), but fails with the message shown 
against the AU server ($DestinationComputer). I'm a bit stumped.

     Add-DfsrMember -GroupName $GroupName -ComputerName 
$SourceComputer,$DestinationComputer

     Add-DfsrMember : Could not add the computer to the replication group. 
Computer: AUFS01P Replication group: "InfrastructureSoftware"
The remote procedure call failed
     At line:1 char:1
     + Add-DfsrMember -GroupName $GroupName -ComputerName $SourceComputerNam ...
     + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         + CategoryInfo          : NotSpecified: (AUFS01P:String)
[Add-DfsrMember], DfsrException
         + FullyQualifiedErrorId :
Add-DfsrMember.NonTerminatingOMException,Microsoft.DistributedFileSystemReplication.Commands.AddDfsrMemberCommand

I've checked GPOs, and the same GPOs are applied to both machines.
I've checked the firewall, and it's WFO (which I intend to fix at some point). 
I've also run enable-psremoting on the machine.

I've verified that the varial $DestinationComputer contains the correct machine.

What else should I be checking?

More context from the script can be provided if desired.

Kurt




Reply via email to