使用PowerShell远程运行进程返回不支持的请求

使用PowerShell远程运行进程返回不支持的请求,powershell,Powershell,我有一个PowerShell脚本,可以在计算机列表上远程运行该进程 使用此代码返回“访问被拒绝”错误: 使用此代码返回“请求不受支持” 几点注意: 我在运行代码的机器上和目标机器上启用了CredSSP 我有另一台比windows server 2012\r2更新的机器,它工作起来很有魅力 试图用最新的PS(5.1)更新服务器 已在目标上启用PS远程处理 提前谢谢 找到了 trebleCode给了我这个链接: 这解决了我的问题 问题是端点没有正确的Oracle CredSSP更新,所以我只是用

我有一个PowerShell脚本,可以在计算机列表上远程运行该进程

使用此代码返回“访问被拒绝”错误:

使用此代码返回“请求不受支持”

几点注意:

  • 我在运行代码的机器上和目标机器上启用了CredSSP

  • 我有另一台比windows server 2012\r2更新的机器,它工作起来很有魅力

  • 试图用最新的PS(5.1)更新服务器
  • 已在目标上启用PS远程处理
提前谢谢

找到了

trebleCode给了我这个链接: 这解决了我的问题


问题是端点没有正确的Oracle CredSSP更新,所以我只是用windows update更新了机器

本论坛帖子中的这些要点是否相关?哇,谢谢,我试着在网上搜索帖子,上面写着“请求不受支持”,但没有成功。
Invoke-Command -ComputerName srv12-01 -Credential "cloud\user2" -ScriptBlock{
    $creds = New-Object System.Management.Automation.PSCredential('cloud\summer', $(ConvertTo-SecureString -String 'Hall1290' -AsPlainText -Force));
    Start-Process powershell.exe -Credential $creds;
}
Invoke-Command -ComputerName srv12-01 -Credential "cloud\user2" -Authentication Credssp -ScriptBlock{
    $creds = New-Object System.Management.Automation.PSCredential('cloud\summer', $(ConvertTo-SecureString -String 'Hall1290' -AsPlainText -Force));
    Start-Process powershell.exe -Credential $creds;
}