windows2003批量新增和匯出所有ip

2021-09-06 23:11:43 字數 628 閱讀 8682

批量新增ip

在cmd命令列下執行:

for /l %i in (130,1,190) do netsh inte***ce ip add address "本地連線" 192.168.1.%i 255.255.255.192

往「本地連線」中新增「

192.168.1

.130~

192.168.1

.190」的所有ip,且子網掩碼都是255.255.255.192

匯出所有ip

寫乙個批處理bat檔案,如下內容,執行

@echo

offfor /f %%i in (『wmic computersystem get name^|findstr /i /v 「name」『) do

set name=%%i&echo 計算計算機名稱為%%i > %%i.txt

for /f 「delims=: tokens=2″ %%j in (『ipconfig^|findstr /i 「ip address」『) do

echo 計算機ip為%%j >> %name%.txt

echo

任務處理完畢任意鍵顯示

pause&start %name%.txt

Windows 2003批量新增IP的幾種方法

方法1 在dos視窗下用命令加檔案的方式批量新增ip的辦法。首先開啟dos視窗,開始 執行 輸入cmd 回車,輸入 netsh c int ip dump c ip.txt 回車 這樣您將會在c盤根目錄看到乙個ip.txt的檔案,裡面包含著您當前網絡卡的設定資訊。為了能更直觀的看清楚ip的設定資訊,...

windows 2003 帳號遷移 批量匯入使用者

ad賬號和密碼匯入匯出 txt 當你的系統賬號成千上萬的時候,你手動去遷移,那是很痛苦的,現在我介紹兩個工具來實現這個功能 addusers 在wind2k resource kit 中的命令工具。a,備份ad賬號 命令 c addusers.exe d u account.bak 名字不能改,必須...

struts2 批量新增

1.在action中定義,list屬性 product為pojo 2.jsp頁面中 s iterator value new int 3 status stat tr td s textfield name td td s textfield name td td s textfield name ...