Fix: C BGINFO path, again
This commit is contained in:
parent
72cacac1db
commit
0fe012598f
@ -112,15 +112,6 @@ route add -p 192.168.128.0/24 192.168.8.254
|
|||||||
route add -p 0.0.0.0/0 192.168.8.254
|
route add -p 0.0.0.0/0 192.168.8.254
|
||||||
# END
|
# END
|
||||||
|
|
||||||
### Change DHCP server options
|
|
||||||
|
|
||||||
echo "Adding DHCP server options"
|
|
||||||
Set-DhcpServerv4OptionValue -ScopeId 192.168.128.0 -Router 192.168.128.254
|
|
||||||
Set-DhcpServerv4OptionValue -ScopeId 192.168.12.0 -Router 192.168.12.254
|
|
||||||
Set-DhcpServerv4OptionValue -ScopeId 192.168.8.0 -Router 192.168.8.254
|
|
||||||
#Set-DhcpServerv4OptionValue -ScopeId 192.168.8.0 -DnsServer 192.168.8.1
|
|
||||||
|
|
||||||
Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.8.1
|
|
||||||
|
|
||||||
### Installing and configuring DNS role
|
### Installing and configuring DNS role
|
||||||
|
|
||||||
@ -139,6 +130,9 @@ Add-DnsServerResourceRecordA -Name "NAT" -ZoneName "microdown.local" -IPv4Addres
|
|||||||
|
|
||||||
Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test
|
Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
Read-Host "Finished?"
|
Read-Host "Finished?"
|
||||||
|
@ -14,7 +14,7 @@ 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
|
||||||
mkdir c:\Tools\BGinfo
|
mkdir "f:\Program Files\BGINFO"
|
||||||
Copy-Item d:\Soft\BGInfo_Deploiement\BGInfo.exe "f:\Program Files\BGINFO"
|
Copy-Item d:\Soft\BGInfo_Deploiement\BGInfo.exe "f:\Program Files\BGINFO"
|
||||||
Copy-Item d:\Soft\BGInfo_Deploiement\mescouilles2.bgi "f:\Program Files\BGINFO"
|
Copy-Item d:\Soft\BGInfo_Deploiement\mescouilles2.bgi "f:\Program Files\BGINFO"
|
||||||
Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "f:\Users\AdminLocal\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
|
Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "f:\Users\AdminLocal\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
|
||||||
@ -43,10 +43,10 @@ echo "Adding and configuring CLI-03"
|
|||||||
cp D:\VHD\Base\Base_Client_dif.vhdx D:\VHD\CLI-03.vhdx
|
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
|
||||||
mkdir c:\Tools\BGinfo
|
mkdir "f:\Program Files\BGINFO"
|
||||||
Copy-Item d:\Soft\BGInfo_Deploiement\BGInfo.exe "f:\Program Files\BGINFO"
|
Copy-Item d:\Soft\BGInfo_Deploiement\BGInfo.exe "f:\Program Files\BGINFO"
|
||||||
Copy-Item d:\Soft\BGInfo_Deploiement\mescouilles2.bgi "f:\Program Files\BGINFO"
|
Copy-Item d:\Soft\BGInfo_Deploiement\mescouilles2.bgi "f:\Program Files\BGINFO"
|
||||||
Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "f:\Users\AdminLocal\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
|
Copy-Item D:\Soft\BGInfo_Deploiement\bginfo.bat "f:\Users\AdminLocal\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
|
||||||
|
Loading…
Reference in New Issue
Block a user