question

BarryHallett-4429 avatar image
0 Votes"
BarryHallett-4429 asked YuhanDeng-MSFT answered

Hyper-v Server 2019 core issue (not under windows server). "An error occurred while attempting to connect to server" ...

Hi All,

We have been using Hyper-V Server over our local network successfully for about a month now. However, when arriving this monday morning and trying to re-connect to manage the remote hyper-v VMs we receive the folling error:

An error occured while attempting to
connect to server " * "
Check that the Virtual Machine
Managment service is running and that
you are authorised to connect to the
server.

You do not have the required permission to complete
this task. Contact the administrator of the
authorization policy for the computer
' ** '.

87383-capture-hyperv.png

I have searched high and low for a resolution to this and even re-visited the sites that helped me to setup Hyper-V Server in the first instance + the following. All to no avail.

I know the VMs on this Hyper-V Server work because I was able to RDP into a guest VM which i left running over the weekend. So, VMs work but we are unable to remotly (or locally on Hyper-V server host) manage the VMs and there checkpoints.

Can someone advise which end needs fixing and the detail as to how to fix it (bearing in mind the Hyper-V host is not windows, its command line etc.).

Thanks in advance
Regards,
Barry


windows-server-hyper-v
capture-hyperv.png (13.1 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Please note: im not using a Domain

0 Votes 0 ·

Hi Barry,
I would like to check if the reply could be of help? If yes, please help accept answer. If you need any additional assistance, please feel free to feedback.
Best Regards,
Danny

0 Votes 0 ·
BarryHallett-4429 avatar image
0 Votes"
BarryHallett-4429 answered

Hi YuhanDeng-MSFT,

Thanks for the information.

Through your last post I have managed to find what it is that i was looking for. The information I was looking for was as follows:

91733-image.png



image.png (66.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered

Hi Barry,
Thanks for your information. If you have any other problem, please feel free to feedback; if you don’t, please help accept the answer.

Thanks for your time.
Best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered

Hi Barry,
Would you try another powershell code? It should help you change the policy directly on your core server:
91714-image.png

For your reference:
https://www.tenforums.com/tutorials/87386-change-maximum-minimum-password-age-local-accounts-windows-10-a.html
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

Thanks for your time.
Best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (62.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BarryHallett-4429 avatar image
0 Votes"
BarryHallett-4429 answered

Hi YuhanDeng-MSFT,

Thanks for the information.

In this instance we are not using a domain. Just the workgroup.

Regards,
Barry

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered

Hi Barry,
You’re correct that checking of such information can be done remotely via mmc.
To deal with the issue, would you check the Domain Controller and see if the computer name is added?
After that, please check the spelling of it.

Thanks for your time.
Best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BarryHallett-4429 avatar image
0 Votes"
BarryHallett-4429 answered

Hi YuhanDeng-MSFT,

Thanks for the information.

I assume i am reading this correctly in presuming that checking of such information can be done remotely via mmc. Correct me if im wrong there.

Unfrotunatly when i try to connect remoteley with mmc i get the following issue:


90792-image.png

Regards,
Barry


image.png (74.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered YuhanDeng-MSFT edited

Hi Barry,
Please try using powershell:
88450-image.png


If the policy page doesn't show up, try this:
For your reference:
https://docs.microsoft.com/en-us/answers/questions/57852/server-core-216-how-do-i-accessedit-local-group-po.html
Thanks for your time.
Best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (26.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BarryHallett-4429 avatar image
0 Votes"
BarryHallett-4429 answered BarryHallett-4429 edited

Hi YuhanDeng-MSFT,

Thanks for your response and i understand your response assuming my Hyper-V host is actually a Windows Server OS where i can esily access gpmc.msc. However, it is not the Windows Server as indicated in my post above with the blue screen. On that basis i need to know how to do what you have shown be above but using the version of Hyper-V i am using. Below is an attempt to access gpmc.msc under Hyper-V core:

88449-image.png



image.png (143.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered YuhanDeng-MSFT edited

Hi Barry,
By default, to set common requirements for user passwords in the AD domain the Group Policy (GPO) settings are used. The password policy of the domain user accounts is configured in the Default Domain Policy.
You can set the policy as follows:
Type gpmc.msc in a cmdlet to open group policy management editor:
88141-image.png
Find password policy, double click it and set maximum password age:
88151-image.png
For your reference:
https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/maximum-password-age
Hope this would help.
Thanks and best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





image.png (91.3 KiB)
image.png (72.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered YuhanDeng-MSFT commented

Hi,

Based on your description, this issue seems related to authorization.
May I know the account type you used to connect the Hyper-V manager? Is it a common user in the Hyper-V manager group and the administrator group? If so, please try using the administrator account to connect it. If it works, but common user account can not connect , please check if the user is added into the Hyper V manager group and administrator Group. If not, please check the following article to add the account to the group:
https://techcommunity.microsoft.com/t5/itops-talk-blog/how-to-manage-local-users-and-groups-using-powershell/ba-p/733544

And to delete user by powershell, please refer to this:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/remove-localuser?view=powershell-5.1

Thanks for your time,
Best regards,
Danny



If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi YuhanDeng-MSFT,

After some tinkering with PowerShell and managing users on the Hyper-V host machine i discovered that 'for some reason' the original administrator logins may have appeared to have expire. I found this out by creating another temporary admin user via the host Hyper-V server blue screen then going back to my windows 10 pc to login under the new user. It worked.

So, this makes me think that when adding an administrator via the blue screen on the host Hyper-V server manager it sets the password to expired (but I’ve not proved this yet).

Would you happen to know how to check if a login has an expiry date applied to it? I don’t just want to set it to never expires as indicated in the below link.

https://www.itechtics.com/set-windows-local-user-account-passwords-to-never-expire/

Regards,
Barry

0 Votes 0 ·