- Remove From My Forums
-
Question
-
When I try to execute a winrm -qc command on any Windows 7 domain member computer I receive the following response:
Error: Unknown operation name: »
How do I resolve this please?
Answers
-
Hi,
The error here might caused by «-«. Please take a try with the command:»winrm qc«.
For more information about WinRM, please take a look into this blog:
WinRM (Windows Remote Management) Troubleshooting
Hope this may help
Best regards
Michael Shao
TechNet Community Support
-
Marked as answer by
Monday, March 24, 2014 9:25 AM
-
Marked as answer by
- Remove From My Forums
-
Question
-
When I try to execute a winrm -qc command on any Windows 7 domain member computer I receive the following response:
Error: Unknown operation name: »
How do I resolve this please?
Answers
-
Hi,
The error here might caused by «-«. Please take a try with the command:»winrm qc«.
For more information about WinRM, please take a look into this blog:
WinRM (Windows Remote Management) Troubleshooting
Hope this may help
Best regards
Michael Shao
TechNet Community Support
-
Marked as answer by
Monday, March 24, 2014 9:25 AM
-
Marked as answer by
- Remove From My Forums
-
Question
-
When I try to add a hyper-v host to system center, I get the error:
Error (421)
Agent installation failed on hyper-v because of a WS-Management configuration error.Recommended Action
Ensure that the Windows Remote Management service is enabled and running on the server hyper-v. Additionally, in the Local Group Policy Editor (gpedit.msc), navigate to Computer ConfigurationAdministrative TemplatesWindows ComponentsWindows Remote Management
(WinRM), and then ensure that there are no policy settings configured for WinRM Client or WinRM Service.When I install the agent manually on the hyper-v host (vmmagent.msi), I get the error:
Error (413)
The files needed to install agent, version , are missing from the Virtual Machine Manager server VMC.Recommended Action
Reinstall the missing files by running Virtual Machine Manager Server Setup.——————-
Steps that I have taken to troubleshoot this issue:
- To check integrity of or repair your host WMI repository,
- run «winmgmt /salvagerepository«.
- To check your WMI virtualization store,
- start
wbemtest by using a local admin account of the host machine and - connect to \<host>rootvirtualization
- Try query «select * from msvm_ComputerSystem» and see if it succeeds.
- start
- To check your host’s WMI namespace security settings,
- Go to Server Manager, click on Configuration then right-click on WMI Control and choose Properties
- Click on Security tab, choose SCVMM and check its Security Settings.
- Make sure that both Administrators group and Virtual Machine Manager Servers group have the full rights on the namespace.
- To check your WnRM state,
- run «winrm qc«.
- To check if the WinRM listener is running,
- run «winrm enum winrm/config/listener«, or
- run «winrm get winrm/config» to get the entire WinRM config.
- To check if your VMM agent is responding to winrm calls,
- run «winrm invoke GetVersion wmi/root/scvmm/AgentManagement -r:http://<host> @{}«.
- To manually restart VMM server service:
- run «net stop vmmservice«, and run «net start vmmservice«.
- To manually restart VMM host agent service:
- run «net stop vmmagent«, and run «net start vmmagent«.
- To manually restart Hyper-V service:
- run «net stop vmms«, and run «net start vmms«.
The only test that has failed is the winrm AgentManagement query. I can connect to wmi/root/scvmm, but AgentManagement does not exist. Does anyone have any ideas? (All other tests passed OK — same result — can’t install agent or add hyper-v host)
- To check integrity of or repair your host WMI repository,
Answers
-
-
Marked as answer by
Friday, November 4, 2011 5:10 AM
-
Marked as answer by
- Remove From My Forums
-
Question
-
When I try to add a hyper-v host to system center, I get the error:
Error (421)
Agent installation failed on hyper-v because of a WS-Management configuration error.Recommended Action
Ensure that the Windows Remote Management service is enabled and running on the server hyper-v. Additionally, in the Local Group Policy Editor (gpedit.msc), navigate to Computer ConfigurationAdministrative TemplatesWindows ComponentsWindows Remote Management
(WinRM), and then ensure that there are no policy settings configured for WinRM Client or WinRM Service.When I install the agent manually on the hyper-v host (vmmagent.msi), I get the error:
Error (413)
The files needed to install agent, version , are missing from the Virtual Machine Manager server VMC.Recommended Action
Reinstall the missing files by running Virtual Machine Manager Server Setup.——————-
Steps that I have taken to troubleshoot this issue:
- To check integrity of or repair your host WMI repository,
- run «winmgmt /salvagerepository«.
- To check your WMI virtualization store,
- start
wbemtest by using a local admin account of the host machine and - connect to \<host>rootvirtualization
- Try query «select * from msvm_ComputerSystem» and see if it succeeds.
- start
- To check your host’s WMI namespace security settings,
- Go to Server Manager, click on Configuration then right-click on WMI Control and choose Properties
- Click on Security tab, choose SCVMM and check its Security Settings.
- Make sure that both Administrators group and Virtual Machine Manager Servers group have the full rights on the namespace.
- To check your WnRM state,
- run «winrm qc«.
- To check if the WinRM listener is running,
- run «winrm enum winrm/config/listener«, or
- run «winrm get winrm/config» to get the entire WinRM config.
- To check if your VMM agent is responding to winrm calls,
- run «winrm invoke GetVersion wmi/root/scvmm/AgentManagement -r:http://<host> @{}«.
- To manually restart VMM server service:
- run «net stop vmmservice«, and run «net start vmmservice«.
- To manually restart VMM host agent service:
- run «net stop vmmagent«, and run «net start vmmagent«.
- To manually restart Hyper-V service:
- run «net stop vmms«, and run «net start vmms«.
The only test that has failed is the winrm AgentManagement query. I can connect to wmi/root/scvmm, but AgentManagement does not exist. Does anyone have any ideas? (All other tests passed OK — same result — can’t install agent or add hyper-v host)
- To check integrity of or repair your host WMI repository,
Answers
-
-
Marked as answer by
Friday, November 4, 2011 5:10 AM
-
Marked as answer by
- Remove From My Forums
-
Вопрос
-
When I try to execute a winrm -qc command on any Windows 7 domain member computer I receive the following response:
Error: Unknown operation name: »
How do I resolve this please?
Ответы
-
Hi,
The error here might caused by «-«. Please take a try with the command:»winrm qc«.
For more information about WinRM, please take a look into this blog:
WinRM (Windows Remote Management) Troubleshooting
Hope this may help
Best regards
Michael Shao
TechNet Community Support
-
Помечено в качестве ответа
24 марта 2014 г. 9:25
-
Помечено в качестве ответа
При настройке WinRM на серверах в домене Active Directory столкнулся со странной проблемой. После того как служба WinRM была настроена и включена на сервере, к ней разрешено удалённое подключение через Windows PowerShell Remoting, при попытке удаленного подключения к данному серверу с помощью команды
Enter-PSSession msk-dp01
в консоли PowerShell появляется следующая ошибка WinRM:
Enter-PSSession : Сбой подключения к удаленному серверу msk-dp01. Сообщение об ошибке: Клиенту WinRM не удается обработать запрос. Невозможно определить тип содержимого ответа HTTP от компьютера назначения. Тип содержимого не является допустимым или отсутствует. Подробности см. в разделе справки «about_Remote_Troubleshooting».
строка:1 знак:1
+ Enter-PSSession msk-dp01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (msk-dp01:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed

В английской версии Windows ошибка выглядит так:
PS C:Windowssystem32> Enter-PSSession msk-dp01
Enter-PSSession : Connecting to remote server msk-dp01 failed with the following error message : The WinRM client received an HTTP bad request status (400), but the remote service did not include any other information about the cause of the failure. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ Enter-PSSession msk-dp01
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (msk-dp01:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed

При этом на сервере порты WinRm (5985/HTTP, 5986/HTTPS) отвечают и принимают соединения. Проверить доступность TCP портов WinRM можно с помощью утилиты PortQryV2 или командлета PowerShell Test-NetConnection:
TNC msk-dp01 –port 5985

Как оказалось, проблема оказалась связана с большим размером токена Kerberos у пользователя, за счет того, что пользователь состоит в слишком большом количестве доменных групп. Ошибка возникает при превышении размера токена 16 Кб (см статью MaxTokenSize — размер токена Kerberos). В нашей ситуации происходит все тоже самое, сервер WinRm сбрасывает запрос от клиента, т.к. размер заголовка пакета аутентификации превышает 16 Кб. В статье по ссылке мы упоминали, что по-умолчанию в IIS используется размер HTTP заголовка не более 16 Кб, и в случае проблем с HTTP аутентификацией из за большого токена пользователя, его нужно увеличить до 64 Кб
Чтобы исправить проблему, нужно уменьшить размер токена (уменьшить количество групп безопасности, в которых состоит пользователь), а если это невозможно, тогда в редакторе реестра на сервере нужно изменить значение следующих DWORD параметров реестра в ветке HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesHTTPParameters
- MaxFieldLength увеличить до 0000ffff (65535)
- MaxRequestBytes увеличить до 0000ffff (65535)

Осталось перезагрузить сервер и проверить подключение WinRm через Enter-PSSession с клиента.
When I try to fetch the service information on remote computer I got an WINRM error.
PS C:Windowssystem32> invoke-command -computername Node1 -ScriptBlock {gsv}
[Node1] Connecting to remote server Node1 failed with the following error
message : WinRM cannot complete the operation. Verify that the specified computer
name is valid, that the computer is accessible over the network, and that a firewall
exception for the WinRM service is enabled and allows access from this computer. By
default, the WinRM firewall exception for public profiles limits access to remote computers
within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (Node1:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionStateBroken
asked Oct 7, 2016 at 12:13
![]()
1
Try below workaround to fix WINRM issue.
Connect to Remote server and run below command from cmd as a administrator.
C:Windowssystem32>WinRM quickconfig
WinRM service is already running on this machine.
WinRM is not set up to allow remote access to this machine for management.
The following changes must be made:
Create a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this
machine.
Make these changes [y/n]? y
WinRM has been updated for remote management.
Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this
machine.
answered Oct 7, 2016 at 12:24
![]()
1
Have you checked the remote computer’s firewall rules? The default rule only allows IPs in the local subnet.
To allow other IPs:
- Open Windows Firewall with Advanced Security
- Click Inbound Rules
- Double-click Windows Remote Management (HTTP-In) for the Public profile
- Click the Scope tab
- Under Remote IP address, add any IPs you need

answered Feb 4, 2020 at 18:01
![]()
Eric EskildsenEric Eskildsen
3,9731 gold badge37 silver badges52 bronze badges
1
Is WinRM enabled on both computers???
Run
winrm quickconfig
and check it.
answered Oct 7, 2016 at 12:15
Have you checked with port 5985?
Try to Telent port with IP address
- Open CMD run as administrator
- Telent 10.xx.xx.xxx 5985
![]()
ZygD
20.5k39 gold badges75 silver badges95 bronze badges
answered Oct 6, 2021 at 13:14
1