利用批次檔設定
1.IP設定
rem 10.13.9.x
echo ks高辦處(dhcp)
netsh interface ip set address "區域連線" dhcp
netsh interface ip delete dns "區域連線" all
pause
rem 小邱
netsh interface ip set address "區域連線" static 10.13.20.8 255.255.255.0 10.13.20.254 1
netsh interface ip set dns "區域連線" static 10.96.1.1
netsh interface ip add dns "區域連線" 10.168.1.1
netsh interface ip set wins "區域連線" static 10.96.1.1
pause
rem TA中辦
netsh interface ip set address "區域連線" static 10.7.6.76 255.255.255.0 10.7.6.254 1
netsh interface ip set dns "區域連線" static 10.96.1.1
netsh interface ip add dns "區域連線" 10.168.1.1
netsh interface ip set wins "區域連線" static 10.168.1.1
netsh interface ip add wins "區域連線" 10.96.1.1
pause
rem TA國四南段
netsh interface ip set address "區域連線" static 10.7.13.106 255.255.255.0 10.7.13.254 1
netsh interface ip set dns "區域連線" static 10.96.1.1
netsh interface ip add dns "區域連線" 10.168.1.1
netsh interface ip set wins "區域連線" static 10.168.1.1
netsh interface ip add wins "區域連線" 10.96.1.1
pause
rem 後里中科
netsh interface ip set address "區域連線" static 10.7.11.106 255.255.255.0 10.7.11.254 1
netsh interface ip set dns "區域連線" static 10.96.1.1
netsh interface ip add dns "區域連線" 10.168.1.1
netsh interface ip set wins "區域連線" static 10.168.1.1
netsh interface ip add wins "區域連線" 10.96.1.1
pause
rem SI大新-魏兄
netsh interface ip set address "區域連線" static 10.12.19.77 255.255.255.0 10.12.19.254 1
netsh interface ip set dns "區域連線" static 10.96.1.1
netsh interface ip add dns "區域連線" 10.168.1.1
netsh interface ip set wins "區域連線" static 10.168.1.1
netsh interface ip add wins "區域連線" 10.96.1.1
pause
rem DNS dhcp
netsh interface ip set dns "區域連線" dhcp
pause
rem IP dhcp
netsh interface ip set address "區域連線" dhcp
pause
rem 刪除DNS
netsh interface ip delete dns "區域連線" all
pause
rem 刪除WINS
netsh interface ip delete wins "區域連線" 10.96.1.1
pause
rem 刪除全部WINS
netsh interface ip delete wins "區域連線" all
pause
2.網路磁碟機
echo 設定W,Z,U等3個網路磁碟機
net use w: \\10.13.13.7\ping
net use z: \\10.13.13.7\收發文系統
net use u: \\10.13.13.3\暫存
pause
echo 載入中辦處 nw13 檔案磁碟機
rem \\10.7.6.249
net use o: \\nw13\TA
net use p: \\nw13\TA\Project
net use t: \\nw13\TEMP\TA
pause
rem 中辦NW13
@echo off
net use P: /delete
net use P: \\nw13\ta\project /persistent:yes
net use T: /delete
net use T: \\nw13\temp\ta /persistent:yes
net use O: /delete
net use O: \\nw13\TA_OLD /persistent:yes
rem M15C網路磁碟機
echo 565標
net use m: \\10.8.5.253\c565
echo 561標
net use n: \\10.8.5.253\c561
echo 工務組
net use q: \\10.8.5.253\工務
echo 工務組公文
net use u: \\10.8.5.253\IO
echo 561標公文
net use v: \\10.8.5.253\io561
net use o: \\10.8.5.253\open
net use s: \\10.8.5.253\iso
net use t: \\10.8.5.253\temp
rem 檢視連線狀態 net use
C:\Documents and Settings\43210>net use
不會記錄新的網路連線。
狀態 本機 遠端 網路
-------------------------------------------------------------------------------
無法使用 O: \\nw13\TA_OLD Microsoft Windows Network
無法使用 P: \\nw13\ta\project Microsoft Windows Network
無法使用 T: \\nw13\temp\ta Microsoft Windows Network
OK \\nw10\IPC$ Microsoft Windows Network
OK \\nw13\IPC$ Microsoft Windows Network
命令執行成功。
rem 中斷網路「\\NW13」連線
net use \\nw13\IPC$ /delete
3.個人電腦IP資料
(開始/執行/CMD)
ipconfig/all
4.傳送文字messenger
net send 10.13.13.116 你的email中毒了
5.連線追粽
echo off
echo 連線至eipweb之線路追粽
echo 出現Unable to resolve target system name eip.
echo 問題處理辦法:打電話給資訊部
tracert eipweb -d
tracert eipweb
pause
rem 連線至proxy之線路追粽寫至檔案
echo off
echo 連線至proxy之線路追粽寫至檔案
tracert proxy -d > (proxy連線tracert-1).txt
tracert proxy > (proxy連線tracert-2).txt
ECHO 完成寫至檔案
pause
6.ROUTEprint
echo off
type 正確的ROUTEprint.txt
echo ======================================
ROUTE print
pause
remROUTEprint寫至檔案
ROUTE print >ROUTEprint.txt
7.查看誰連至你的電腦
echo off
echo 查看誰連至你的電腦
netstat -n
pause
Other.其它批次
rem 報時
at 17:00 ahorng 下午五點回家囉!
rem Shutdown1705點自動關機
echo Shutdown晚上10點自動關機
at 17:05 Shutdown -s -f
rem Shutdown 立即關機使用說明
註:以上資料需要存為批次檔(BAT)方式執行.
rem 遠端桌面指令
mstsc
可以使用電腦名稱( TA-PC5876 )來登入或者使用IP位址來登入
延伸閱讀:
個人電腦IP資料
沒有留言:
張貼留言