Pause: save before break. Non functionnal BGINFO

This commit is contained in:
Alexandre S 2021-05-12 18:01:39 +02:00
parent e4878dcd74
commit 324b4e4bf9
6 changed files with 28 additions and 5 deletions

View File

@ -111,6 +111,9 @@ route add -p 0.0.0.0/0 192.168.255.254
# End of scriptlet # End of scriptlet
# Add BGINFO autostart
Copy-Item "c:\Program Files\BGINFO\bginfo.bat" "C:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
Read-Host "Finished???" Read-Host "Finished???"
Restart-Computer Restart-Computer

View File

@ -106,5 +106,9 @@ route add -p 192.168.12.0/24 192.168.255.8
route add -p 0.0.0.0/0 192.168.255.254 route add -p 0.0.0.0/0 192.168.255.254
echo "Done!" echo "Done!"
# Add BGINFO autostart
Copy-Item "c:\Program Files\BGINFO\bginfo.bat" "C:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
Read-Host "Press enter to reboot" Read-Host "Press enter to reboot"
Restart-Computer Restart-Computer

View File

@ -103,6 +103,10 @@ echo "Done!"
echo "Renew DHCP Lease to be sure" echo "Renew DHCP Lease to be sure"
ipconfig /renew ipconfig /renew
# Add BGINFO autostart
Copy-Item "c:\Program Files\BGINFO\bginfo.bat" "C:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
#reboot #reboot
Read-Host "Press enter to reboot" Read-Host "Press enter to reboot"

View File

@ -135,5 +135,9 @@ Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test
echo "Add local DNS for all Hosts" echo "Add local DNS for all Hosts"
Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.8.1 Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.8.1
# Add BGINFO autostart
Copy-Item "c:\Program Files\BGINFO\bginfo.bat" "C:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
Read-Host "Finished?" Read-Host "Finished?"
Restart-Computer Restart-Computer

View File

@ -17,7 +17,7 @@ mkdir "e:\Program Files\BGINFO"
Copy-item d:\Scripts\Guests\SRV-01.ps1 E:\Tools\scripts\boot.ps1 Copy-item d:\Scripts\Guests\SRV-01.ps1 E:\Tools\scripts\boot.ps1
Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe "e:\Program Files\BGINFO\" Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe "e:\Program Files\BGINFO\"
Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi "e:\Program Files\BGINFO\" Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi "e:\Program Files\BGINFO\"
Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "e:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "e:\Program Files\BGINFO\"
Dismount-VHD d:\VHD\SRV-01.vhdx Dismount-VHD d:\VHD\SRV-01.vhdx
$vms = @{ $vms = @{
@ -50,7 +50,7 @@ mkdir "e:\Program Files\BGINFO"
Copy-item d:\Scripts\Guests\RTR-01.ps1 E:\Tools\scripts\boot.ps1 Copy-item d:\Scripts\Guests\RTR-01.ps1 E:\Tools\scripts\boot.ps1
Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe "e:\Program Files\BGINFO\" Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe "e:\Program Files\BGINFO\"
Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi "e:\Program Files\BGINFO\" Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi "e:\Program Files\BGINFO\"
Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "e:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "e:\Program Files\BGINFO\"
Dismount-VHD d:\VHD\RTR-01.vhdx Dismount-VHD d:\VHD\RTR-01.vhdx
$vms = @{ $vms = @{
@ -86,7 +86,7 @@ mkdir "e:\Program Files\BGINFO"
Copy-item D:\scripts\Guests\RTR-02.ps1 E:\Tools\scripts\boot.ps1 Copy-item D:\scripts\Guests\RTR-02.ps1 E:\Tools\scripts\boot.ps1
Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe "e:\Program Files\BGINFO\" Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe "e:\Program Files\BGINFO\"
Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi "e:\Program Files\BGINFO\" Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi "e:\Program Files\BGINFO\"
Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "e:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "e:\Program Files\BGINFO\"
Dismount-VHD d:\VHD\RTR-02.vhdx Dismount-VHD d:\VHD\RTR-02.vhdx
$vms = @{ $vms = @{
@ -122,7 +122,7 @@ mkdir "e:\Program Files\BGINFO"
Copy-item d:\Scripts\Guests\RTR-03.ps1 E:\Tools\scripts\boot.ps1 Copy-item d:\Scripts\Guests\RTR-03.ps1 E:\Tools\scripts\boot.ps1
Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe "e:\Program Files\BGINFO\" Copy-Item D:\Soft\BGInfo_Deploiement\BGInfo64.exe "e:\Program Files\BGINFO\"
Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi "e:\Program Files\BGINFO\" Copy-Item D:\Soft\BGInfo_Deploiement\mescouilles2.bgi "e:\Program Files\BGINFO\"
Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "e:\Users\Administrateur\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "e:\Program Files\BGINFO\"
Dismount-VHD d:\VHD\RTR-03.vhdx Dismount-VHD d:\VHD\RTR-03.vhdx
$vms = @{ $vms = @{

View File

@ -1,4 +1,12 @@
#$VMNetAdap = Get-VMNetworkAdapter -VMName RTR-01|ft -Property Switchname,Macaddress -HideTableHeaders ### What to include?
BGINFO inside diff disk
### TODO
Fucking BGINFO
#$VMNetAdap = Get-VMNetworkAdapter -VMName RTR-01|ft -Property Switchname,Macaddress -HideTableHeaders
Get-VMNetworkAdapter -VMName RTR-01|Format-Table -Property Switchname,Macaddress -HideTableHeaders |Export-Csv D:\scripts\Guests\MACS\test.csv -NoTypeInformation Get-VMNetworkAdapter -VMName RTR-01|Format-Table -Property Switchname,Macaddress -HideTableHeaders |Export-Csv D:\scripts\Guests\MACS\test.csv -NoTypeInformation
#echo $VMNETADAP | out-file -FilePath D:\scripts\Guests\MACS\temp.txt #echo $VMNETADAP | out-file -FilePath D:\scripts\Guests\MACS\temp.txt