fix: generation change on clients

This commit is contained in:
Alexandre S 2021-05-10 14:52:26 +02:00
parent 81bc7cad04
commit de2c0aa283

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