Hello,
Thank you for posting in Q&A forum.
To rename the virtual machine in Hyper-V, you can open PowerShell on the host and run the following command to modify it. The bold part should be changed according to your actual environment.
Rename-VM VM1 -NewName VM2
Renames virtual machine VM1 to VM2.
For details, you can refer to the following link:
https://learn.microsoft.com/en-us/powershell/module/hyper-v/rename-vm?view=windowsserver2022-ps
I hope the information above is helpful.
Best regards
Zunhui
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.