Update SetupComplete.bat

This commit is contained in:
Molly Lau 2023-07-05 02:24:08 +09:00 committed by GitHub
parent 9755305969
commit 78d2b8d406
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,4 +16,5 @@ echo;%setmode%|find "on"&&goto:enable||goto:disable
wmic nicconfig where ipenabled=true call enablestatic(%staticip%),(%subnetmask%) wmic nicconfig where ipenabled=true call enablestatic(%staticip%),(%subnetmask%)
wmic nicconfig where ipenabled=true call setgateways(%gateways%) wmic nicconfig where ipenabled=true call setgateways(%gateways%)
wmic nicconfig where ipenabled=true call setdnsserversearchorder(%dnsserver1%,%dnsserver2%) wmic nicconfig where ipenabled=true call setdnsserversearchorder(%dnsserver1%,%dnsserver2%)
del %0
:disable :disable