Initial
This commit is contained in:
10
01_Config/SRV-WSUS-01/Network-SRV-WSUS-01.ps1
Normal file
10
01_Config/SRV-WSUS-01/Network-SRV-WSUS-01.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
# Networkconfiguration
|
||||
|
||||
$ConfigAdapterName = Get-NetAdapter | where MacAddress -eq "00-15-5D-01-10-6D"
|
||||
|
||||
Rename-NetAdapter -Name $ConfigAdapterName.name -NewName "Primary Adapter"
|
||||
Set-NetIPInterface -InterfaceIndex $ConfigAdapterName.ifIndex -Dhcp Disabled
|
||||
|
||||
New-NetIPAddress -InterfaceIndex $ConfigAdapterName.ifIndex -IPAddress 192.168.10.15 -DefaultGateway 192.168.10.1 -PrefixLength 24
|
||||
Set-DNSClientServerAddress -InterfaceIndex $ConfigAdapterName.ifIndex -ServerAddresses ("192.168.10.11","192.168.10.10")
|
||||
Set-DnsClientGlobalSetting -SuffixSearchList @("schwab.local")
|
||||
Reference in New Issue
Block a user