Connect to the VM console from Windows CORE.

Doria 1,246 Reputation points
2021-06-16T14:59:13.133+00:00

Hi team!

Is it possible, after creating a VM via PS, on a Windows CORE HYPER-V server, to connect to the console of that VM to configure the OS, as we do in the GUI? Is there any way?

Thanks.

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,483 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,921 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,776 Reputation points
    2021-06-16T15:05:53.51+00:00

    Hi @Doria ,

    Easiest would be to install RSAT tools (Hyper-V Manager) or Windows Admin Center (WAC) on a client or another server and manage your guest virtual machines from there.

    You can of course assuming you have allowed remote management, connect to your guest VMs and configure them via PowerShell.
    https://learn.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7.1

    ----------

    If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!

    Best regards,
    Leon


1 additional answer

Sort by: Most helpful
  1. JiayaoZhu 3,911 Reputation points
    2021-06-17T06:18:07.99+00:00

    Hi,

    Thanks for posting on our forum!

    Firstly, I would like to check whether you can use GUI or PowerShell to configure the OS for your VM, this step should have been completed when you created your VM with PS. Here is the article that shows you how to create a virtual machine with a new virtual disk that boots to an operating system image, you just have to see Create a Virtual Machine with PowerShell and Complete the Operating System Deployment part. The article is for Windows 10 while the PS commands are the same for all versions supporting Hyper-V service:

    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/create-virtual-machine#complete-the-operating-system-deployment

    Specifically, the PS command for connecting an ISO file for the Windows installation is:
    Set-VMDvdDrive -VMName DC -ControllerNumber 1 -Path "<path to ISO>

    Secondly, as @Leon Laude has suggested, you can use Hyper-V Manager MMI and Windows Admin Center to configure your OS:

    How to manage the HYPER-V Server Core 2016 in Windows Admin Center
    https://askme4tech.com/how-manage-monitoring-hyper-v-server-core-windows-admin-center

    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 support! And I would appreciate it if you could help me Accept Answer to support my work! Have a nice day! : )

    BR,
    Joan


    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.