[操作疑難] win11 快速修改IP的方法

之前用win10 做咗2個bat file,一個轉ip,一個轉DHCP,

DHCP :  netsh interface ip set address "Local Network" dhcp
轉ip :      netsh interface ip set address "Local Network" static 192.168.100.10 255.255.255.0

但在win11用唔到,有咩方法可以用返個 bat file

或者 powershell 要點做先可以好似 bat file 咁簡單快速修改IP呢

U may run the batch in administrative privileges

TOP

DHCP :  netsh interface ip set address "Local Network" dhcp
轉ip :      netsh interface ip set address "Local Network" static 192.168.100.10 255.255.255.0
但在win11用唔到,有咩方法可以用返個 bat file
jeffywm 發表於 13/11/2021 03:32
無 error message?

TOP

回覆 3# toylet


    check 完話你知

TOP

估計係你個Lan既名唔係叫"Local Network"所以set唔到

TOP

回覆 5# KinChungE


  已經改咗名都唔得

TOP

你打漏了v4 吧?
netsh interface ipv4

TOP

回覆 3# toylet

附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

回覆  toylet
jeffywm 發表於 17/11/2021 11:22

#2 回咗了.....  "administrative privileges" 即是 "系統管理員身份"!

TOP

用bat
可唔可以轉dynamic IP
唔想成日login router clone mac address

TOP