Powershell Remoting: using imported module cmdlets in a remote pssession

前端 未结 7 2109
我在风中等你
我在风中等你 2021-02-05 12:34

Is there a way to use modules that were imported in a local session in a remote session? I looked at import-pssession, but I don\'t know how to get the local session. Here\'s a

7条回答
  •  说谎
    说谎 (楼主)
    2021-02-05 13:06

    use credssp authentication

    invoke-command -computername $localSession -Credential $Credential -Authentication Credssp
    

提交回复
热议问题