Unable to run Get-SCSPFServer from powershell remoting session RRS feed

  • Question

  • Hello Guys,

    Have strange issue with powershell remoting session to my SPF server. Locally on the server I am able to execute successfully and I get the output properly. Here is the error I am getting,please find the below code:

    $spfserver = New-PSSession -ComputerName dev-spf-01 -Credential $creds
    Enter-PSSession -Session $spfserver
    Import-Module spfadmin -Verbose
    [dev-spf-01]: PS C:\Users\schekka\Documents> Get-SCSPFServer
    Get-SCSPFServer : An error was encountered while trying to get one or more Servers. ErrorCode=CmdletGeneralError Operation=CmdletReadingServer
        + CategoryInfo          : ReadError: (:) [Get-SCSpfServer], SpfCmdletException
        + FullyQualifiedErrorId : An error was encountered while trying to get one or more Servers.,Microsoft.SystemCenter.Foundation.Cmdlet.GetSpfServerCmdlet

    Verified the account which I am using have complete access to SPF database and a domain admin having administrative access on all the servers in my environment. Can you please suggest why this command is not running from powershell remoting session?

    Thank you so much in advance!

    Wednesday, November 22, 2017 10:54 AM


All replies