启用 DHCP
#開啟DHCP協議
Get-NetIPInterface -Dhcp Disabled|Set-NetIPInterface -Dhcp Enabled
#開啟本機上所有博通網卡的DHCP
Get-WmiObject -Class win32_networkadapterconfiguration -Filter "description like 'Broadcom%'" |Invoke-WmiMethod -Name EnableDHCP
#在接口名稱為 ‘WLAN’ 啟用 DHCP
netsh interface ipv4 set address name="WLAN" source=DHCP
ipconfig /renew wlan #執行刷新操作:
總結
- 上一篇: ajax读取评论数据,评论提交使用aja
- 下一篇: dubbo白名单通过filter,spr