Feat: Add auto-deployment of BGINFO on servers
This commit is contained in:
parent
a049e848b6
commit
58742c5735
@ -14,6 +14,10 @@ Mount-VHD d:\VHD\SRV-01.vhdx
|
||||
Copy-Item d:\Unattend\SRV-01.xml -Destination e:\Windows\Panther\Unattend.xml
|
||||
mkdir 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
|
||||
|
||||
$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
|
||||
mkdir 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
|
||||
|
||||
$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
|
||||
mkdir 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
|
||||
|
||||
$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
|
||||
mkdir 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
|
||||
|
||||
$vms = @{
|
||||
|
Loading…
Reference in New Issue
Block a user