File size: 266 Bytes
e1da50e
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
@echo off&chcp 65001&cls&cd /d %~dp0 >nul
net session >NUL 2>nul
if %errorlevel% neq 0 (
  @powershell start-process %~0 -verb runas
  exit
)
netsh interface ipv4 set dns name="イーサネット" source=static addr="1.1.1.1" register=primary validate=no
exit