Files
Win-VM/01_Config/SRV-WSUS-01/Network-SRV-WSUS-01.ps1
2022-02-16 23:33:59 +01:00

11 lines
572 B
PowerShell

# 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")