March 28, 2024
012120 1907 Troubleshoo1 - Troubleshooting Tips – Fixed Windows Server 2019 cannot run Hyper-V cmdlets against Windows Server 2012 R2
If you tried to run Hyper-V PowerShell script at Windows Server 2019 to get Hyper-V report from Windows Server 2012 R2 Hyper-V host, you will get the error message "The Hyper-V module used in this Windows PowerShell session cannot be used for remote management of the server 'XXX". Load a compatible version of the Hyper-V module…….."

If you tried to run Hyper-V PowerShell script at Windows Server 2019 to get Hyper-V report from Windows Server 2012 R2 Hyper-V host, you will get the error message “The Hyper-V module used in this Windows PowerShell session cannot be used for remote management of the server ‘XXX”. Load a compatible version of the Hyper-V module……..”

012120 1907 Troubleshoo1 - Troubleshooting Tips – Fixed Windows Server 2019 cannot run Hyper-V cmdlets against Windows Server 2012 R2

Today, I am going to show you how to fix it.

  1. Login to the reporting server (Windows Server 2019).
  2. Open Windows PowerShell.
  3. Type following cmdlet.
    
    
    Get-Module -Name Hyper-V
    
    
    
  4. It will show Hyper-V module version 2.0.0.0.

    012120 1907 Troubleshoo2 - Troubleshooting Tips – Fixed Windows Server 2019 cannot run Hyper-V cmdlets against Windows Server 2012 R2

  5. Type following cmdlets to remove existing Hyper-V module and then import different version of Hyper-V module.
    
    
    Remove-Module Hyper-V
    
    
    Import-Module Hyper-V -RequiredVersion 1.1
    
    
    Get-Module Hyper-V
    
    
    

    012120 1907 Troubleshoo3 - Troubleshooting Tips – Fixed Windows Server 2019 cannot run Hyper-V cmdlets against Windows Server 2012 R2

  6. Re-run PowerShell script again and it success with issues.

    012120 1907 Troubleshoo4 - Troubleshooting Tips – Fixed Windows Server 2019 cannot run Hyper-V cmdlets against Windows Server 2012 R2

Hope you enjoy this post.

Cary Sun

Twitter: @SifuSun

ca16fbd3199de5f66b829b87082fb970?s=80&d=retro&r=g - Troubleshooting Tips – Fixed Windows Server 2019 cannot run Hyper-V cmdlets against Windows Server 2012 R2

Author: Cary Sun

Cary Sun has a wealth of knowledge and expertise in data center and deployment solutions. As a Principal Consultant, he likely works closely with clients to help them design, implement, and manage their data center infrastructure and deployment strategies.
With his background in data center solutions, Cary Sun may have experience in server and storage virtualization, network design and optimization, backup and disaster recovery planning, and security and compliance management. He holds CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1999. Cary is also a Microsoft Most Valuable Professional (MVP), Microsoft Azure MVP, Veeam Vanguard and Cisco Champion. He is a published author with several titles, including blogs on Checkyourlogs.net, and the author of many books.
Cary is a very active blogger at checkyourlogs.net and is permanently available online for questions from the community. His passion for technology is contagious, improving everyone around him at what they do.

Blog site: https://www.checkyourlogs.net
Web site: https://carysun.com
Blog site: https://gooddealmart.com
Twitter: @SifuSun
in: https://www.linkedin.com/in/sifusun/
Amazon Author: https://Amazon.com/author/carysun