Feat: Add auto-deployment of BGINFO on servers

This commit is contained in:
Alexandre S 2021-05-12 10:09:01 +02:00
parent 65de1d0099
commit cf78bbf153

View File

@ -14,6 +14,10 @@ Mount-VHD d:\VHD\SRV-01.vhdx
Copy-Item d:\Unattend\SRV-01.xml -Destination e:\Windows\Panther\Unattend.xml Copy-Item d:\Unattend\SRV-01.xml -Destination e:\Windows\Panther\Unattend.xml
mkdir e:\Tools\Scripts mkdir e:\Tools\Scripts
Copy-item d:\Scripts\Guests\SRV-01.ps1 E:\Tools\scripts Copy-item d:\Scripts\Guests\SRV-01.ps1 E:\Tools\scripts
mkdir c:\Tools\BGinfo
Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe C:\Program Files\BGINFO
Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi C:\Program Files\BGINFO
Copy-Item Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.bat C:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Dismount-VHD d:\VHD\SRV-01.vhdx Dismount-VHD d:\VHD\SRV-01.vhdx
$vms = @{ $vms = @{
@ -43,6 +47,10 @@ Mount-VHD d:\VHD\RTR-01.vhdx
Copy-Item d:\Unattend\RTR-01.xml -Destination e:\Windows\Panther\Unattend.xml Copy-Item d:\Unattend\RTR-01.xml -Destination e:\Windows\Panther\Unattend.xml
mkdir e:\Tools\Scripts mkdir e:\Tools\Scripts
Copy-item d:\Scripts\Guests\RTR-01.ps1 E:\Tools\scripts Copy-item d:\Scripts\Guests\RTR-01.ps1 E:\Tools\scripts
mkdir c:\Tools\BGinfo
Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe C:\Program Files\BGINFO
Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi C:\Program Files\BGINFO
Copy-Item Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.bat C:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Dismount-VHD d:\VHD\RTR-01.vhdx Dismount-VHD d:\VHD\RTR-01.vhdx
$vms = @{ $vms = @{
@ -75,6 +83,10 @@ Mount-VHD d:\VHD\RTR-02.vhdx
Copy-Item d:\Unattend\RTR-02.xml -Destination e:\Windows\Panther\Unattend.xml Copy-Item d:\Unattend\RTR-02.xml -Destination e:\Windows\Panther\Unattend.xml
mkdir e:\Tools\Scripts mkdir e:\Tools\Scripts
Copy-item D:\scripts\Guests\RTR-02.ps1 E:\Tools\scripts Copy-item D:\scripts\Guests\RTR-02.ps1 E:\Tools\scripts
mkdir c:\Tools\BGinfo
Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe C:\Program Files\BGINFO
Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi C:\Program Files\BGINFO
Copy-Item Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.bat C:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Dismount-VHD d:\VHD\RTR-02.vhdx Dismount-VHD d:\VHD\RTR-02.vhdx
$vms = @{ $vms = @{
@ -107,6 +119,10 @@ Mount-VHD d:\VHD\RTR-03.vhdx
Copy-Item d:\Unattend\RTR-03.xml -Destination e:\Windows\Panther\Unattend.xml Copy-Item d:\Unattend\RTR-03.xml -Destination e:\Windows\Panther\Unattend.xml
mkdir e:\Tools\Scripts mkdir e:\Tools\Scripts
Copy-item d:\Scripts\Guests\RTR-03.ps1 E:\Tools\scripts Copy-item d:\Scripts\Guests\RTR-03.ps1 E:\Tools\scripts
mkdir c:\Tools\BGinfo
Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe C:\Program Files\BGINFO
Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi C:\Program Files\BGINFO
Copy-Item Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.bat C:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Dismount-VHD d:\VHD\RTR-03.vhdx Dismount-VHD d:\VHD\RTR-03.vhdx
$vms = @{ $vms = @{