TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Editing: VMM Troubleshooting: Windows Remote Management (WinRM)
Wiki
>
TechNet Articles
>
VMM Troubleshooting: Windows Remote Management (WinRM)
Article
Edit
History
Title
<html> <body> <p>Windows Remote Management (WinRM) provides the communication services for communication between the VMM management server and the VMM Host agents. This includes inter agent communications to the following hosts:</p> <ul> <li><span style="line-height:115%; font-family:cambria,serif">Hyper-V Virtual Host Servers</span> </li><li><span style="line-height:115%; font-family:cambria,serif">Virtual Server Host Servers</span> </li><li><span style="line-height:115%; font-family:cambria,serif">Remote Library Servers</span> </li></ul> <p><span style="line-height:115%; font-family:cambria,serif">The SCVMM 2008 R2 VMMServer service utilizes the WinRM scripting API (versus COM) for communication with the Windows Remote Management service on the managed hosts.</span></p> <table class="TableGrid1" border="1" cellspacing="0" cellpadding="0" width="98%" style="width:98%; border-collapse:collapse; border:medium none"> <tbody> <tr style="page-break-inside:avoid"> <td valign="top" style="padding:0in 4.3pt 0in 0in; background-color:transparent; width:17%; white-space:nowrap; border-color:#f0f0f0"> <p style="margin:0in 0in 3pt"><strong><span style="font-size:10pt"></span></strong><strong><span style="font-size:10pt; font-family:calibri"> Tip:</span></strong></p> </td> <td valign="top" style="padding:5.75pt 5.75pt 0.1in; width:83%; background-color:#e9eff7; border-color:#f0f0f0"> <p style="margin:0in 0in 3pt"><span style="font-size:10pt; font-family:calibri">WinRM error messages usually provide a hex error code that is useful in understanding the problem. To resolve the hex code to error message type:</span></p> <p style="margin:4pt 0.1in 2pt 0in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">winrm helpmsg 0xXXXXXXXX</span></p> <p style="margin:0in 0in 3pt"><span style="font-size:10pt; font-family:calibri">If the hex code is not preceded by ‘0x’ this command will not work. </span></p> </td> </tr> </tbody> </table> <p style="margin:0in 0.1in 0pt 0.3in"> </p> <p style="margin:0in 0.1in 6pt 0.3in"> </p> <p style="page-break-after:avoid; margin:10pt 0.1in 0pt 0.3in"><a name="_Toc303153641"><strong></strong></a></p> <a name="_Toc303153641"><strong></strong></a><strong> <h1><a name="_Toc303153641"></a><a name="Test_local_WinRM_functionality"></a>Test local WinRM functionality</h1> </strong><strong></strong> <p> </p> <p>When troubleshooting WinRM treat the process as if performing a simple network ping test. Type the command below at an elevated command prompt:</p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">winrm id</span></p> <p>This should produce output similar to below:</p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">IdentifyResponse</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas"> ProtocolVersion = http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas"> ProductVendor = Microsoft Corporation</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas"> ProductVersion = OS: 6.1.7201 SP: 0.0 Stack: 2.0</span></p> <p>If an error is generated as opposed to the output above, perform a Quick Configuration of WinRM:</p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">winrm qc</span></p> <p>You may be prompted with something similar to below. Answer ‘Yes’ to any requests.</p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">WinRM already is set up to receive requests on this machine.</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">WinRM is not set up to allow remote access to this machine for management.</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">The following changes must be made:</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"> </p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">Enable the WinRM firewall exception.</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"> </p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">Make these changes [y/n]? </span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"> </p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">WinRM has been updated for remote management.</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"> </p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">WinRM firewall exception enabled.</span></p> <p style="margin:0in 0.1in 6pt 0.3in"> </p> <p>WinRM can now be tested again by typing ‘winrm id’ as before.</p> <p> </p> <p style="page-break-after:avoid; margin:10pt 0.1in 0pt 0.3in"><a name="_Toc303153642"><strong></strong></a></p> <a name="_Toc303153642"><strong></strong></a><strong> <h1><a name="_Toc303153642"></a><a name="Test_remote_WinRM_functionality"></a>Test remote WinRM functionality</h1> </strong><strong></strong> <p><span style="font-size:12.1px">The second half of a WinRM test establishes that the remote server has WinRM configured correctly. At an elevated command prompt type:</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">winrm id –r:<remoteserver></span></p> <p>This should produce output similar to below:</p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">winrm id -r:vmmr2lab-cl20</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">IdentifyResponse</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas"> ProtocolVersion = http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas"> <a name="_Toc303153643"></a><a name="_Toc303152440"></a><a name="_Toc238017391"></a><a name="_Toc238016032"><span>ProductVendor = Microsoft Corporation</span></a></span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas"> ProductVersion = OS: 6.1.7201 SP: 0.0 Stack: 2.0</span></p> <p>If instead an error such as below appears, this means WinRM is not set up correctly on the remote machine, or there is something preventing communication over port 80 between the two systems. This could be a firewall or antivirus/malware programs.</p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">WSManFault</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas"> Message = The WinRM client cannot complete the operation within the time spe</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">cified. Check if the machine name is valid and is reachable over the network and</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas"> firewall exception for Windows Remote Management service is enabled.</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"> </p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><a name="_Toc303153644"></a><a name="_Toc303152441"></a><a name="_Toc238017392"></a><a name="_Toc238016033"><span style="font-size:10pt; font-family:consolas">Error number: -2144108250 0x80338126</span></a> </p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">The WinRM client cannot complete the operation within the time specified. Check</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">if the machine name is valid and is reachable over the network and firewall exce</span></p> <p style="margin:4pt 0.1in 10pt 0.3in; background-color:#f2f2f2"><span style="font-size:10pt; font-family:consolas">ption for Windows Remote Management service is enabled.</span></p> <p>In this event, test local WinRM functionality on the remote system. If WinRM is configured correctly on the remote system as well the cause is most likely network communication between the two machines. Troubleshoot this as you would any network issue.</p> <p style="margin:0in 0in 10pt"><span style="font-family:calibri"> </span></p> </body> </html>
Comment
Tags
Please add 7 and 8 and type the answer here: