Hyper-V Remote Management Configuration Utility (HVRemote)

HVRemote reduces the manual configuration steps needed for Hyper-V Remote Management down to a few simple commands, and can diagnose common configuration errors.

 
 
 
 
 
4.7 Star
(122)
Add to favorites
10/24/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • How can I fix this on Server 2008?
    9 Posts | Last post March 19, 2018
    • e:\TOOLS>cscript hvremote.wsf /add:nodeadmin
      Microsoft (R) Windows Script Host Version 5.8
      Copyright (C) Microsoft Corporation. All rights reserved.
      
      
      Hyper-V Remote Management Configuration & Checkup Utility
      John Howard, Hyper-V Team, Microsoft Corporation.
      http://blogs.technet.com/jhoward
      Version 0.7 7th August 2009
      
      INFO: Computername is NODE1SRV
      INFO: Computer is in workgroup SRV
      INFO: Current user is NODE1SRV\Administrator
      INFO: Assuming /mode:server as the role is installed
      INFO: Build 7601.18247.amd64fre.win7sp1_gdr.130828-1532
      INFO: Detected Windows 7/Windows Server 2008 R2 OS
      ***** OpenAuthorizationStore failed: Failed to query registry
      ***** 0
      ***** Giving up as could not open the authorization store
    • Odd. First, can you try with the latest version of HVRemote just in case.
      
      Second, can you confirm if HKLM\Software\Microsoft\Windows NT\CurrentVersion\Virtualization exists, and if so what the value of ServiceApplication and StoreLocation are (they should be present). And a follow on - whether the file pointed to by StoreLocation exists - it should point to [SystemDrive:]\ProgramData\Microsoft\Windows\Hyper-V\InitialStore.xml
    • Virtualization exists, but value of ServiceApplication and StoreLocation doesn't
      The latest version of HVRemote don't work on my server. 
      Script stops on
      
      e:\TOOLS\HVRemote>cscript hvremote.wsf /add:nodeadmin
      Microsoft (R) Windows Script Host Version 5.8
      Copyright (C) Microsoft Corporation. All rights reserved.
      
      
      Hyper-V Remote Management Configuration & Checkup Utility
      John Howard, Hyper-V Team, Microsoft Corporation.
      http://blogs.technet.com/jhoward
      Version 1.08 9th Sept 2013
      
      INFO: Computername is node1srv
      INFO: Computer is in workgroup SRV
      INFO: OS is 6.1.7601 64-bit Microsoft Hyper-V Server
      _
       
      and nothing happens.
      
      
    • I found already added user. is it possible to add another user or i must delete it first?
    • If this is 2008 R2 (as indicated by the previous output) and those registry keys do not exist, there is a problem in some way with that installation. Can you run from an elevated command line:
      
      reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Virtualization"
      
      and post the output.
      
      For the last post of yours, can you post back the output but adding /debug:verbose so I can determine where the script is getting stuck (give it a few minutes to timeout just in case it's simply long running for some other reason).
      
      No, you can just keep adding users arbitrarily.
    • Microsoft Windows [Version 6.1.7601]
      Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
      
      c:\ProgramData>reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Virt
      ualization"
      
      HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Virtualization\G
      uestInstaller
      
      c:\ProgramData>
    • There is something very wrong there with your installation if this is being run from the server. If the contents of that registry don't exist. There should be a bunch of stuff including the store location. Is there any way they could have been deleted accidentally?
    • this registry does not exist on my hyperV server and i cant connect to Hyper-V Manager form another Server. Help plz. 
    • ;-)
  • 555-555-0199@example.com
    3 Posts | Last post March 19, 2018
  • Got it working w 10 and 2016. Never used HVremote
    2 Posts | Last post March 19, 2018
    • Like many of you I spent too long getting this configured. I tried so many guides I 100% remember all the changes I made.
      
      Windows 10 1709 in domain
      Latest Windows 2016 Hyper-v in Workgroup
      
      Did the DCOMcnfg > COM Security > Access Permission > ANONYMOUS LOGON > Allow Local and Remote access(client)
      
      Enabled PS-Remoting on both (client and server)
      Set-Item WSMan:\localhost\Client\TrustedHosts  –Value * (client)
      
      Did this on the server, but it probably isn't required:
      Set-ItemProperty –Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System –Name LocalAccountTokenFilterPolicy –Value 0 -Type DWord
      
      The final pieces I think made the difference is 
      
      (On the client) gpedit > Computer Configuration > Admin > System > Credentials Delegation > Allow delegating fresh credentials (Enable) and in the servers list add both wsman/servername and wsman/servername.domain.com
      
      (On the client) gpedit > Computer Configuration > Admin > System > Credentials Delegation > Allow delegating fresh credentials with NTLM-only server authentication (Enable) and in the servers list add both wsman/servername and wsman/servername.domain.com
      
      When launching the Hyper-V Management console, type servername in "Another computer" field and check the box that says "Connect as another user" Enter servername\Administrator and the password. https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/remotely-manage-hyper-v-hosts
      
      Then I was able to finally connect!
      
      
      
      
      
      
      
      
    • ;-)
  • ERROR: This OS release is unsupported.
    3 Posts | Last post March 19, 2018
    • Hello John,
      
      I download Hyper-V core from Microsoft and installed.
      I download hvremote.wsf from your url.
      When I run "cscript hvremote.wsf /add:administrato" command, I received below error.
      with /override swict alos not help.
      Kindly advise me.
      
      
      INFO: HVRemote complete
      PS C:\hvremote> cscript hvremote.wsf /add:administrator
      Microsoft (R) Windows Script Host Version 5.812
      Copyright (C) Microsoft Corporation. All rights reserved.
      
      
      Hyper-V Remote Management Configuration & Checkup Utility
      John Howard, Hyper-V Team, Microsoft Corporation.
      http://blogs.technet.com/jhoward
      Version 1.08 9th Sept 2013
      
      INFO: Computername is nsap-hpv001
      INFO: Computer is in workgroup WORKGROUP
      INFO: OS is 10.0.14393 64-bit Microsoft Hyper-V Server 2016
      INFO: Assuming /mode:server as the role is installed
      *****
      ***** ERROR: This OS release is unsupported. Use the /override parameter to
      *****        force HVRemote to assume Windows 8.1/Windows Server 2012 R2 behaviour.
      *****        This may fail and have unintended side effects.
      PS C:\hvremote>
      
      
      Thank you.
      
      Kind regards,
      
      Ko Ko
    • The release notes clearly state that server 2016 and windows 10 are not supported
    • ;-)
  • The operation on computer "name" failed.
    2 Posts | Last post March 19, 2018
    • I was running into the error above when attempting to connect to my host from Hyper-V Manager.  I've successfully add my user as an administrator and joined the host to the domain, but now I'm stuck.  I found the tool you developed and thought that may lead me down a new path to success, but I don't see anything wrong :(
      
      It looks to me that everything passed, but the script output was too much for this post so it's here instead https://pastebin.com/BhByvLV7
    • ;-)
  • ERROR: This OS release is unsupported.
    1 Posts | Last post September 08, 2017
  • Remote Access with no Admin Account in same domain
    1 Posts | Last post February 27, 2017
    • Hi all,
      i have a Windows 2012 R2 Server with Hyper-V enabled. My workstation is a Windows 10 Enterprise. Both computer are in the same domain. Remote managing the server from my workstation with my local user account was working. Then I removed my account from the servers local administration group because of security measurements. Now I am not able to connect to the server anymore via Hyper-V Management. I already did the following:
      on server:
      -) cscript hvremote.wsf /mode:server /add:AT\G-AT_Admins
      -) Enable-PSRemoting
      on my workstation:
      -) enable Windows Remote Management manually on services.msc (I set it as automatic start)
      -) Open an elevated powershell console and type: Set-Item WSMan:\localhost\Client\TrustedHosts -Value *
      -) # start WinRM service
      PS> Start-Service WinRM
      
      # enable the local account token filter policy
      PS> Set-ItemProperty –Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System –Name LocalAccountTokenFilterPolicy –Value 1 -Type DWord
      
      # now you can add all computers to your TrustedHosts list
      PS> Set-Item WSMan:\localhost\Client\TrustedHosts  –Value ATKRIFPS01
      
      - From DOS cmd -
      
       winrm set winrm/config/client @{TrustedHosts="ATKRIFPS01"} 
      
      But I still get the error:
      You do not have the required permission to complete this task.
      
      I am running out of ideas. Can somebody help me please?
      
      Regards,
        Thomas
  • Connection to server
    5 Posts | Last post February 14, 2017
    • I'm trying to connect to the server using Hyper V manager on my laptop win 10. I get a name resolution click Ok and then get the error message:
      WinRm-Cilent can't process the request . There is also something about Trusted Hosts as well, that the list is not authorized.
      
      Can anybody assist please.
      
      many thanks.
      
      Regards
      
      Shaun
    • I got it working on win-10 adding :
      after getting the istructions done about hvremote..
      -client-side win10: you must enable Windows Remote Management manually on services.msc (I set it as automatic start)
      -- Open an elevated powershell console and type: Set-Item WSMan:\localhost\Client\TrustedHosts -Value *
      if still not working:
      -server-side: try to enable PSRemoting by typing Enable-PSRemoting
      -- restart the service Restart-Service WinRM
      
      Hope it helps!
    • Endry04 hi,
      
      thanks for that I will try it and see what happens.  But it won't be for another two weeks.
      
      Regards
      
      Shaun
    • Endry04 hi,
      
      OK thanks for the commands, and now it works.
      
      Cheers mate.
      
      Regards
      
      Shaun
    • Endry04 hi,
      
      I've now got another problem. I tried to start the VM but got this message:
      
      "VM could not be started because the hypervisor is not running"
      
      I have tried "bcdedit /set hypervisorlaunchtype auto" but that did not help.
      
      Any ideas please.
      
      Many thanks.
      
      Regards
      
      Shaun
  • hvremote in hyper-v 2016
    1 Posts | Last post January 25, 2017
    • I'm trying hyper-v 2016 in workgroup(not domain), how can I cionfig remote access account like using hvremote in hyper-v 2012, thx
  • Win10 and HyperV Server 2016 support
    1 Posts | Last post December 12, 2016
    • Hi
      
      Any chance this script could be updated please to support Windows 10 Client and HyperV Server 2016?
      
      Many thanks in advance
1 - 10 of 38 Items