This commit is contained in:
Michael
2022-02-16 23:33:59 +01:00
parent d1e74a17d4
commit 7625f60e00
14 changed files with 611 additions and 0 deletions

10
01_Config/Network.ps1 Normal file
View File

@@ -0,0 +1,10 @@
# Networkconfiguration
$ConfigAdapterName = Get-NetAdapter | where MacAddress -eq "1MACAddress"
Rename-NetAdapter -Name $ConfigAdapterName.name -NewName "1NetworkAdapterName"
Set-NetIPInterface -InterfaceIndex $ConfigAdapterName.ifIndex -Dhcp Disabled
New-NetIPAddress -InterfaceIndex $ConfigAdapterName.ifIndex -IPAddress 1IPDomain -DefaultGateway 1DefaultGW -PrefixLength 24
Set-DNSClientServerAddress -InterfaceIndex $ConfigAdapterName.ifIndex -ServerAddresses ("1DNSServer1","1DNSServer2")
Set-DnsClientGlobalSetting -SuffixSearchList @("1DNSDomain")