Create template VM's on Hyper-V with Powershell-Direct , Powershell DSC
Prerequisite: Edit - > ServerList.csv (In this momend just add new VM's if is needed)
Edit -> Create-New-VM-FromList.ps1 -> C:\Base\Base19D-WS19-1809\Base19D-WS19-1809.vhd Or Prepare the base line - Create a new Windows Server and prepare to be cloned with Sysprep and shutdown the VM Copy VHD in *C:\Base\Base19D-WS19-1809* rename to Base19D-WS19-1809.vhd or edit in Create-New-VM-FromList.ps1 https://www.petri.com/using-syspre-windows-10
Download sql setup iso en_sql_server_2017_developer_x64_dvd_11296168.iso copy in C:\Base\en_sql_server_2017_developer_x64_dvd_11296168.iso
Run Install-DSCModule-on-Host.ps1 on Hyper-V Host
Copy all file in a local Directory ex: c:\SetupVM Run all scripts from this directory c:\SetupVM
-
- Create-New-VM-FromList.ps1
-
- Create local Password on VM's
-
- Setup-AD.ps1
-
- PopulateAD.ps1
-
- Pre-Configure-VM-FromList.ps1
-
- Add-ServersToAD.ps1
-
- Setup-Repo.ps1, Setup-DFS.ps1 , Setup-SQL.ps1 ,Setup-WEB.ps1
-
- Add-ServersToRepo.ps1
-
- Install-ChocoDsc.ps1