You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

执行Test-ComputerSecureChannel命令遭遇认证失败及参数错误的问题求助

执行Test-ComputerSecureChannel命令遭遇认证失败及参数错误的问题求助

大家好,我碰到了个关于PowerShell命令Test-ComputerSecureChannel的麻烦,想请各位大佬帮忙看看:

我先恢复了一个已经过时的Win7系统镜像,之后用属于本地管理员组的账户,以管理员身份启动了PowerShell。

首先执行这个命令:

Test-ComputerSecureChannel -verbose

结果直接报错:

Test-ComputerSecureChannel : Logon failure: unknown user name or bad password.

At line:1 char:27

  • Test-ComputerSecureChannel <<<< -verbose

  • CategoryInfo : NotSpecified: (:) [Test-ComputerSecureChannel], AuthenticationException

  • FullyQualifiedErrorId : System.Security.Authentication.AuthenticationException,Microsoft.PowerShell.Commands.TestComputerSecureChannelCommand

后来我想着是不是要指定域管理员凭据,就尝试加了-Credential参数:

PS C:\Windows\system32> Test-ComputerSecureChannel -Credential domain\administrator

结果又报参数错误:

Test-ComputerSecureChannel : A parameter cannot be found that matches parameter name 'Credential'.

At line:1 char:39

  • Test-ComputerSecureChannel -Credential <<<< domain\administrator

  • CategoryInfo : InvalidArgument: (:) [Test-ComputerSecureChannel], ParameterBindingException

  • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.TestComputerSecureChannelCommand

我还试过用psexec -sid以系统账户启动PowerShell来执行这个命令,但还是碰到了同样的“未知用户名或错误密码”问题。

实在搞不懂了,这个命令到底该怎么正确使用才能解决我的问题呀?

备注:内容来源于stack exchange,提问作者user3161924

火山引擎 最新活动