KB Patch Install на нескольких серверах - PullRequest
0 голосов
/ 26 июня 2018

Я пытаюсь установить исправление KB на нескольких серверах, но при выполнении получаю сообщение об ошибке ниже.Может кто-нибудь помочь мне с этим?

К вашему сведению: PSRemoting включен в системе

Код:

$SB={ Start-Process -FilePath 'wusa.exe' -ArgumentList "C:\Program Files (x86)\McAfee\Win7AndW2K8R2-KB3134760-x64.msu /quiet /norestart" -Wait -PassThru }


Invoke-Command -ComputerName computer -ScriptBlock $SB

Ошибка:

[computer] Connecting to remote server computer failed with the following error message : WinRM cannot process the
request. The following error occurred while using Kerberos authentication: Cannot find the computer computer. Verify
that the computer exists on the network and that the name provided is spelled correctly. For more information, see the
about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (computer:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : NetworkPathNotFound,PSSessionStateBroken
[computer] Connecting to remote server computer failed with the following error message : WinRM cannot process the
request. The following error occurred while using Kerberos authentication: Cannot find the computer computer. Verify
that the computer exists on the network and that the name provided is spelled correctly. For more information, see the
about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (computer:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : NetworkPathNotFound,PSSessionStateBroken

1 Ответ

0 голосов
/ 26 июня 2018

Похоже, что вы пытаетесь запустить сценарий на компьютерах рабочей группы, если я прав, когда вы запускаете сценарий на компьютерах рабочей группы, вы должны установить нижеприведенные команды на каждом сервере перед запуском сценария

Enable-PSRemoting -Force
Set-Item wsman:\localhost\client\trustedhosts *
Restart-Service WinRM
Test-WsMan <server name>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...