根据您的场景,尝试以下几个步骤
在您的本地计算机上
PS C:\> Enable-WSManCredSSP -DelegateComputer [ComputerName] -Role Client
接下来,您需要启用服务器端。
PS C:\> invoke-command {enable-wsmancredssp -Role Server -Force} -ComputerName [ComputerName]
准备就绪后,您现在可以通过指定CredSSP和凭据来重新建立远程会话。
PS C:\> enter-pssession [ComputerName] -Authentication Credssp -Credential domain\user
运行此授权命令,它将使用CredSSP授权您
PS C:\> Add-PswaAuthorizationRule -rulename "Rule01" -computername [computerName] -username domain\user -configuration microsoft.powershell
使用PS C:\> Get-PswaAuthorizationRule
验证规则。
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/5134.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~