This simple PowerShell script will assist you to configure virtual machines on your HyperV Server. Script will create virtual host , create virtual hard disks and mount the ISO file. All you have to do is , start the VM and follow install wizard to complete the settings.
<# .NOTES #============================================== # Script: Create_VM_App_Server_NR.ps1 # Created With:ISE 3.0 # Author: Casey Dedeal # Date: 04/06/2016 22:58:41 # Organization: ETC SOLUTIONS # File Name: Create_VM_App_Server_NR.ps1 # Comments: First Version #============================================= .DESCRIPTION Create_VM_App_Server_NR.ps1 ============================================== Change these variables $path = "A:\HyperV_" ( Change the Path ) $ISOPath = "A:\ISO\en_windows_server_2012_r2_x64_dvd_2707946.ISO" ============================================== |
https://gallery.technet.microsoft.com/scriptcenter/PowerShell-createHyperV-59fe68cd
Oz Casey, Dedeal (MVP North America)
MCITP (EMA), MCITP (SA)
Security+, Project +, Server +
http://smtp25.blogspot.com/ (Blog)
https://telnet25.wordpress.com/ (Blog)
https://twitter.com/Message_Talk (Twitter)
Leave a comment