18
2024
02
01:31:56

PowerShell网络访问身份验证类型设置为CredSSP时出现的问题



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

根据您的场景,尝试以下几个步骤

在您的本地计算机上

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验证规则。


本文链接:http://www.hqyman.cn/post/5134.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: