Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Read this guide to learn how to install Windows Server 2022 on a Hyper-V VM, rename the VM’s Windows computer name, and assign it an IP address.
Step 1: Create the Hyper-V VM
Read my guide, How to Create Hyper-V vSwiches, VMs, and vNICs in Windows 11 to learn how to create VM, vSwiche, and vNICs for a Hyper-V VM.
Step 2: Install Windows Server 2022
If you do not have a Windows Server 2022 ISO image, download it before proceeding.
Before installing the OS, connect the vNIC on the VM to the external virtual switch by running this command:
Popular on Amazon
Get-VMNetworkAdapter -VMName IPMviSCSI | Connect-VMNetworkAdapter -SwitchName HPV-vSwitch
Then, follow these steps to install Windows Server 2022 on the VM:
- Note the path you saved the Windows Server 2022 ISO image
- Then, on the Hyper-V Host, open Hyper-V Manager, right-click the VM, IPMviSCSI, and select Settings.
- Then, on the left pane, click SCSI Controller, then DVD Drive > Add.

The new DVD Drive will be selected.
- On the details pane, select Image File and use the Browse button to open the Windows Server 2022 ISO image file – click Apply when you finish but do not close the VM’s Settings.

- Select Firmware, then, select DVD Drive and use the “Move up” button to make it the first boot device – click OK to apply the changes and close the VM’s Settings.

Finally, back in the Hyper-V Manager, right-click the VM and select Connect; then, start the VM and install the OS.
Also popular on Amazon
- Server 2022 Standard 16 Core


When you finish installing the OS, proceed to step 2 below.
Step 3: Rename VM and Assign an IP Address
Start the VM and sign in, then, run the following commands to assign the VM an IP address, rename it, and then restart the VM:
Also popular on Amazon
#Assign a static IP address to the VM's NIC
Get-NetAdapter | New-NetIPAddress -IPAddress 192.168.0.154 -PrefixLength 24 -DefaultGateway 192.168.0.1
#Assign the DNS server to the NIC
Get-NetAdapter | Set-DnsClientServerAddress -ServerAddresses 192.168.0.80
#Change the computer name of the VM and restart it
Rename-Computer -NewName IPMviSCSI -Restart
When the VM restarts, it may be a good idea to check for updates via the Windows Update Settings.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Conclusion
Installing Windows Server 2022 on a Hyper-V VM is surprisingly less complicated than installing Windows 11 on a Hyper-V VM. For example, the Windows 11 TPM requirements are not needed for Windows Server 2022.
Also popular on Amazon
Anyway, I hope you found this guide enlightening! Let me know by responding to the “Was this page helpful?” below. You may also find more articles in our “Related Articles” section below very helpful – why not check them out?
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors

