using dfsr commands remotely

I have a need to execute dfsr commands like 'Get-DfsrConnection' against a computer remotely. Running locally on a Windows 2012 R2 server works fine, but issuing the command via 'invoke-command -computer $server -scriptblock { Get-DfsrConnection }' fails. I've also attempted passing creds and setting auth to Credssp; which still fails. (Winrm is set up). I've also attempted using enter-pssession and executing from there.. same errors.

Error output:

Could not get the DFSR connection with replication group: "*"; sending computer: ; receiving computer: ; GUID: None
specified An operation error occurred.
    + CategoryInfo          : NotSpecified: (DFSR connection... None specified:String) [Get-DfsrConnection], DfsrExcep
   tion
    + FullyQualifiedErrorId : Get-DfsrConnection.OMException,Microsoft.DistributedFileSystemReplication.Commands.GetDf
   srConnectionCommand
    + PSComputerName        : xxxxxxxxxxxxxx


  • Edited by xjdan89 Wednesday, December 10, 2014 8:19 PM
December 10th, 2014 8:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics