fix: generation change on clients

This commit is contained in:
Winston Smith 2021-05-10 14:52:26 +02:00
parent 6ab735bfb9
commit f37543c9e6

View File

@ -12,14 +12,14 @@ cp D:\VHD\Base\Base_Client_dif.vhdx D:\VHD\CLI-01.vhdx
Mount-VHD d:\VHD\CLI-01.vhdx
Copy-Item d:\Unattend\CLI-01.xml -Destination f:\Windows\Panther\Unattend.xml
mkdir e:\Tools\Scripts
#mkdir e:\Tools\Scripts
#Copy-item d:\Scripts\Guests\CLI-01.ps1 E:\Tools\scripts
Dismount-VHD d:\VHD\CLI-01.vhdx
$vms = @{
Name = "CLI-01"
Generation = '2'
Generation = '1'
MemoryStartupBytes = 1024Mb
VHDPath = "d:\VHD\CLI-01.vhdx"
SwitchName = "Arc-CLI"
@ -41,14 +41,14 @@ cp D:\VHD\Base\Base_Client_dif.vhdx D:\VHD\CLI-03.vhdx
Mount-VHD d:\VHD\CLI-03.vhdx
#Copy-Item d:\Unattend\CLI-01.xml -Destination f:\Windows\Panther\Unattend.xml
mkdir e:\Tools\Scripts
#mkdir e:\Tools\Scripts
#Copy-item d:\Scripts\Guests\CLI-03.ps1 E:\Tools\scripts
Dismount-VHD d:\VHD\CLI-03.vhdx
$vms = @{
Name = "CLI-03"
Generation = '2'
Generation = '1'
MemoryStartupBytes = 1024Mb
VHDPath = "d:\VHD\CLI-03.vhdx"
SwitchName = "Bou-LAN"
@ -65,5 +65,4 @@ Set-VMNetworkAdapter -VMName 'CLI-03' -Name "Bou-LAN" -DeviceNaming on
### Starting VMS
echo "Starting VMs"
Start-VM -Name RTR*
Start-VM -Name SRV*
Start-VM -Name CLI*