HyperV Installation

-ComputerName optional assuemes local computer if not specified.

Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart -WhatIf

Windows and Powershell

Deploy image service and management

Windows 10

Remote server administrative tools

Very important commands

How to copy files from host to guest os.
  • right click on your server name in Hyper-V manager and go to Hyper-V Settings and make use check box is checked of “Use enhanced session mode”
  • right click on vm, go to settings in Management section, select integration services and check the gust services.
  • after this use the following command to transfer files.
  • Don’t forget to mention file extensions.

https://docs.microsoft.com/en-us/powershell/module/hyper-v/copy-vmfile?view=windowsserver2019-ps

Copy-VMFile “MYDESKTOP” –SourcePath “C:\Users\Administrator\Downloads\Programs\WindowsAdminCenter2103.msi” –DestinationPath “C:\Users\ahmadkakarr\Downloads\WindowsAdminCenter2103.msi” –CreateFullPath –FileSource Host

Next