STATIC ¾ÆÀÌÇÇ ¼³Á¤
$NICs = Get-WMIObject Win32_NetworkAdapterConfiguration | where{$_.IPEnabled -eq ¡°TRUE¡±}
Foreach($NIC in $NICs) {
$IP =$NIC.IPAddress -match "\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b"
$Subnet = "255.255.255.0"
$DNSServers = "168.126.63.1", "168.126.63.2"
$Domain = $NIC.DNSDomain
$NIC.EnableStatic("$IP", $Subnet)
$NIC.SetGateways("115.XX.XX.10")
$NIC.SetDNSServerSearchOrder($DNSServers)
$NIC.SetDynamicDNSRegistration(¡°TRUE¡±)
$NIC.SetDNSDomain($Domain)
}