Pause: save before break. Non functionnal BGINFO
This commit is contained in:
parent
e4878dcd74
commit
324b4e4bf9
@ -111,6 +111,9 @@ route add -p 0.0.0.0/0 192.168.255.254
|
||||
|
||||
# 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???"
|
||||
Restart-Computer
|
||||
|
@ -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
|
||||
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"
|
||||
Restart-Computer
|
||||
|
@ -103,6 +103,10 @@ echo "Done!"
|
||||
echo "Renew DHCP Lease to be sure"
|
||||
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
|
||||
|
||||
Read-Host "Press enter to reboot"
|
||||
|
@ -135,5 +135,9 @@ Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test
|
||||
echo "Add local DNS for all Hosts"
|
||||
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?"
|
||||
Restart-Computer
|
||||
|
@ -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:\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\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
|
||||
|
||||
$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:\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\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
|
||||
|
||||
$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:\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\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
|
||||
|
||||
$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:\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\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
|
||||
|
||||
$vms = @{
|
||||
|
10
Memo.ps1
10
Memo.ps1
@ -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
|
||||
#echo $VMNETADAP | out-file -FilePath D:\scripts\Guests\MACS\temp.txt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user