怎麽用cmd口令禁用网卡(学校机房) 在cmd命令中有个命令可以让网卡起到禁用和启用的命令是什么求...

\u600e\u4e48\u7528cmd\u547d\u4ee4 \u7981\u7528\u672c\u5730\u8fde\u63a5

\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4:
netsh interface show interface
\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\u7981\u7528\u540d\u79f0\u4e3a"Local Area Connection"\u7684\u7f51\u5361:
netsh interface set interface name="Local Area Connection" admin=DISABLED
\u628a\u7ed3\u5c3e\u7684"DISABLED"\u6539\u4e3a"ENABLED"\u4e3a\u5f00\u542f\u6307\u5b9a\u7684\u7f51\u5361\u3002
\u8fd8\u6709\u4e00\u79cd\u7b80\u5355\u5b9e\u7528\u7684\u65b9\u6cd5\uff0c\u8981\u6c42\u662f\u7528\u5c40\u57df\u7f51\u7684\u7528\u6237,\u5c31\u6bd4\u5982\u8bf4\u7f51\u7edc\u73af\u5883\u901a\u8fc7\u8def\u7531\u4e0a\u7f51\u7684
ipconfig/release\u7981\u7528
ipconfig/renew\u542f \u7528

1\u3001devcon find
devcon find * [\u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u5217\u51fa\u5217\u51fa\u672c\u5730\u8ba1\u7b97\u673a\u4e0a\u5b58\u5728\u7684\u6240\u6709\u8bbe\u5907\u7684\u8bbe\u5907\u5b9e\u4f8b]
devcon find pci\* [\u5217\u51fa\u672c\u5730\u8ba1\u7b97\u673a\u4e0a\u6240\u6709\u5df2\u77e5\u7684\u201c\u5916\u56f4\u7ec4\u4ef6\u4e92\u8fde\u201d(PCI) \u8bbe\u5907\uff08\u5982\u679c\u4e00\u4e2a\u8bbe\u5907\u7684\u786c\u4ef6 ID \u4ee5\u201cPCI\\u201d\u4e3a\u524d\u7f00\uff0c\u6b64\u547d\u4ee4\u5c31\u8ba4\u4e3a\u8be5\u8bbe\u5907\u662f PCI \u8bbe\u5907]
2\u3001devcon disable *msloop [\u7981\u7528\u786c\u4ef6 ID \u4ee5\u201cMSLOOP\u201d\u7ed3\u5c3e\uff08\u5305\u62ec\u201c*MSLOOP\u201d\uff09\u7684\u6240\u6709\u8bbe\u5907]
3\u3001devcon enable '*MSLOOP
[\u542f\u7528\u786c\u4ef6 ID \u4e3a\u201c*MSLOOP\u201d\u7684\u6240\u6709\u8bbe\u5907\u3002\u5355\u5f15\u53f7\u6307\u793a\u5fc5\u987b\u4e25\u683c\u6309\u5b57\u9762\u89e3\u91ca\u786c\u4ef6 ID\uff08\u6362\u53e5\u8bdd\u8bf4\uff0c\u661f\u53f7 [\u201c*\u201d] \u771f\u7684\u662f \u4e00\u4e2a\u661f\u53f7\uff0c\u800c\u4e0d\u662f\u901a\u914d\u7b26]
4\u3001devcon remove @usb\*
\u5220\u9664\u6240\u6709 USB \u8bbe\u5907\u3002\u88ab\u5220\u9664\u7684\u8bbe\u5907\u5217\u51fa\u65f6\u5c06\u663e\u793a\u5176\u5220\u9664\u72b6\u6001
\u56e0\u4e3a\u4e0b\u9762\u8981\u8bb2\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u6240\u4ee5\u5148\u8bf4\u8bf4\u786c\u4ef6ID\u662f\u5565\u73a9\u827a\uff0c\u8bf4\u5b9e\u5728\u7684\u5c31\u662f\u8ba9\u5927\u5bb6\u77e5\u9053\u600e\u4e48\u627e\u51fa\u5b83\uff0c\u8bf7\u770b\uff1a
find pci\* \u4e0b\u9762\u5c31\u662f\u627e\u51fa\u7684\u4e00\u90e8\u5206:
PCI\VEN_10EC&DEV_8139&SUBSYS_813910EC&REV_10\3&13C0B0C5&0&58: Realtek RTL8139 Family PCI Fast Ethernet NIC
PCI\VEN_1106&DEV_0571&SUBSYS_18271019&REV_06\3&13C0B0C5&0&89: VIA Bus Master IDE Controller
PCI\VEN_1106&DEV_3038&SUBSYS_18271019&REV_80\3&13C0B0C5&0&80: VIA Rev 5 or later USB Universal Host Controller
\u8fd9\u51e0\u884c\u201c\uff1a\u201d\u524d\u9762\u7684\u5c31\u662f\u786c\u4ef6ID\uff0c\u540e\u9762\u662f\u8bbe\u5907\u540d\u79f0.
\u5076\u8981\u7981\u7528\u7f51\u5361\u4e86\uff0c\u8bf7\u770b\u4ed4\u7ec6\uff1a
devcon disable *DEV_8139* [\u5c31\u8fd9\u6837\u5c31\u884c\u4e86\uff0c\u524d\u63d0\u662f\u4f60\u7535\u8111\u91cc\u6709devcon.exe]
\u5076\u8981\u542f\u7528\u5b83\u4e86\uff0c\u540c\u6837\u7684\u641e\u4e00\u4e0b\uff1a devcon enable *DEV_8139*
\u5982\u679c\u60a8\u6307\u5b9a -r \u5e76\u4e14\u9700\u8981\u91cd\u65b0\u542f\u52a8\uff0c\u5219\u5728\u5904\u7406\u5b8c\u6240\u6709\u8bbe\u5907\u540e\uff0c\u5c06\u5728\u65e0\u4efb\u4f55\u8b66\u544a\u4fe1\u606f\u7684\u60c5\u51b5\u4e0b\u91cd\u65b0\u542f\u52a8\u5c31\u884c\u4e86\uff0c\u5176\u5b83\u7684\u5c31\u4e0d\u591a\u8bf4\u4e86\uff0c\u5927\u5bb6\u559c\u6b22\u7528\u7684\u8bdd\u5c31\u53bb\u4e0b\u8f7d\u4e00\u4e2a\u538b\u7f29\u5305\u5728\u81ea\u5df1\u673a\u5b50\u4e0a\u7528\u7528\u5427\uff0c\u6709\u4e9b\u4eba\u53ef\u80fd\u60f3\u5b83\u8981\u662f\u6709\u66f4\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u5c31\u8bf7\u5404\u4f4d\u81ea\u529b\u66f4\u751f\u2026\u2026\u76f8\u4fe1\u81ea\u5df1!
\u538b\u7f29\u5305\u91cc\u662f2\u4e2a\u6587\u4ef6\u5939\uff0c\u4e00\u4e2a\u662f32 \u4f4d\u7528\u7684\uff0c\u4e00\u4e2a\u662f64\u4f4d\u7528\u7684\uff0c
DevCon.exe \u6587\u4ef6\u5305\u542b\u4ee5\u4e0b\u6587\u4ef6\uff1a
\u6587\u4ef6 \u8bf4\u660e
I386\DevCon.exe 32 \u4f4d DevCon \u5de5\u5177\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002\u6b64\u6587\u4ef6\u5728 64 \u4f4d Windows \u4e0a\u4e0d\u80fd\u5145\u5206\u53d1\u6325\u4f5c\u7528\u3002
Ia64\DevCon.exe 64 \u4f4d DevCon \u5de5\u5177\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002

我估计你用的学生机登的系统是uses权限吧,不大会是guests权限。,不管是否,都无法在dos下禁本地连接。方法只有两个
1,手动猜adminsitrator密码,然后用administrator登系统,禁本地连接。
2,上课提前到,先开你用的那台学生机,再用教师机(前提是没设密码或者自己破密码)黑了你那台学生机,取得administrators权限,学生机一般都装了还原卡,所以一直没更新,很好黑的。然后回去直接禁用本地连接就好了。如果你想上网就别禁本地连接,用IP策略对教师机的IP阻止访问。

呵呵,这个不是CMD下用的
这是用脚本实现的
DOS下要用楼上的那个同志的办法好用
不过就是要下载那个DECVON.EXE
有的机器可能装有有的就没有比如我的
关于GUEST的问题
我也不知道怎么回答
不过在黑客的教程杂志中有很多方法可以破解的
我对这没特别的兴趣所以没记
不过你能在他那上机
又能上网或用U盘的话
破解起来应该没什么难度

Const ssfCONTROLS = 3

sConnectionName = "本地连接" '可改成需要控制的连接名称,如"无线网络连接"等

sEnableVerb = "启用(&A)"
sDisableVerb = "禁用(&B)" 'XP系统中应为 "停用(&B)"

set shellApp = createobject("shell.application")
set oControlPanel = shellApp.Namespace(ssfCONTROLS)

set oNetConnections = nothing
for each folderitem in oControlPanel.items
if folderitem.name = "网络连接" then
set oNetConnections = folderitem.getfolder: exit for
end if
next

if oNetConnections is nothing then
msgbox "未找到网络连接文件夹"
wscript.quit
end if

set oLanConnection = nothing
for each folderitem in oNetConnections.items
if lcase(folderitem.name) = lcase(sConnectionName) then
set oLanConnection = folderitem: exit for
end if
next

if oLanConnection is nothing then
msgbox "未找到 '" & sConnectionName & "' item"
wscript.quit
end if

bEnabled = true
set oEnableVerb = nothing
set oDisableVerb = nothing
s = "Verbs: " & vbcrlf
for each verb in oLanConnection.verbs
s = s & vbcrlf & verb.name
if verb.name = sEnableVerb then
set oEnableVerb = verb
bEnabled = false
end if
if verb.name = sDisableVerb then
set oDisableVerb = verb
end if
next

'debugging displays left just in case...
'
'msgbox s ': wscript.quit
'msgbox "Enabled: " & bEnabled ': wscript.quit

'not sure why, but invokeverb always seemed to work
'for enable but not disable.
'
'saving a reference to the appropriate verb object
'and calling the DoIt method always seems to work.
'
if bEnabled then
' oLanConnection.invokeverb sDisableVerb
oDisableVerb.DoIt
else
' oLanConnection.invokeverb sEnableVerb
oEnableVerb.DoIt
end if

'adjust the sleep duration below as needed...
'
'if you let the oLanConnection go out of scope
'and be destroyed too soon, the action of the verb
'may not take...
'
wscript.sleep 400

保存为VBS扩展名的就行了

由於打了最新的补丁,目前楼上说的都行不通的~~~
再等等吧~
要不久在顺dos下把c:\格式化~~
再装系统才肯能ok ~~~实施巴~

禁用网卡:devcon disable =net
启用网卡:devcon enable =net

  • 鎬庢牱鍒朵綔涓涓秴绾х畝鍗曠殑CMD鎵瑰鐞嗗懡浠绂佺敤鎴栬呭惎鐢ㄦ寚瀹氱殑缃戝崱
    绛旓細绗竴锛閫氳繃鎺у埗闈㈡澘鈥旂綉缁滃拰鍏变韩涓績鈥旀洿鏀归傞厤鍣ㄨ缃 鏉ョ鐢ㄦ湁绾跨綉缁滈傞厤鍣銆傛楠ゅ涓嬶細1. 鎸"Windows+R"杈撳叆control 鐐"纭畾"銆傛墦寮鎺у埗闈㈡澘銆2. 鍙屽嚮鎵撳紑缃戠粶鍜屽叡浜腑蹇冦3. 鐐瑰嚮鏇存敼"閫傞厤鍣ㄨ缃"锛屽啀鍙充晶鍙互鏌ョ湅鐩墠鐨勭綉鍗$姸鎬侊紝鎴戜滑瑕佺鐢ㄧ殑鏄悕绉颁负"鏈湴杩炴帴"鐨勬湁绾跨綉鍗°傚洜姝ゅ湪"鏈湴杩炴帴"...
  • 鎬庢牱鐢鍛戒护琛绂佺敤缃戝崱
    绛旓細1銆侀鍏堟墦寮鐢佃剳妗岄潰鎸変笅閿洏鐨剋in+R缁勫悎蹇嵎閿2銆佺劧鍚庡湪寮瑰嚭鐨勯〉闈腑杈撳叆 cmd 鍥炶溅銆3銆佺劧鍚庡嵆鍙繘鍏ュ懡浠よ鐣岄潰銆4銆佺劧鍚庡湪鍛戒护琛屼腑杈撳叆 netsh interface set interface "鏈湴杩炴帴" disabled锛屽洖杞︼紝杩欐牱灏卞彲浠绂佺敤缃戝崱浜嗐5銆佽嫢鏄兂瑕佸惎鐢ㄧ殑璇濓紝鍒欒緭鍏 netsh interface set interface "鏃犵嚎缃戠粶杩炴帴"...
  • 鍙互鐢―OS鍛戒护绂佺敤缃戝崱鍜屽惎鐢ㄧ綉鍗″悧?
    绛旓細涓嬮潰鐨勬柟娉曞氨鍙互浜哱x0d\x0a寮濮---杩愯---cmd \x0d\x0a绂佺敤缃戝崱: netsh interface set interface "鏈湴杩炴帴" disabled \x0d\x0a鍚敤缃戝崱 : netsh interface set interface "鏈湴杩炴帴" enabled
  • 鎬庨航鐢╟md鍙d护绂佺敤缃戝崱(瀛︽牎鏈烘埧)
    绛旓細1锛屾墜鍔ㄧ寽adminsitrator瀵嗙爜锛岀劧鍚庣敤administrator鐧荤郴缁燂紝绂佹湰鍦拌繛鎺ャ2锛屼笂璇炬彁鍓嶅埌锛屽厛寮浣犵敤鐨勯偅鍙板鐢熸満锛屽啀鐢ㄦ暀甯堟満锛堝墠鎻愭槸娌¤瀵嗙爜鎴栬呰嚜宸辩牬瀵嗙爜锛夐粦浜嗕綘閭e彴瀛︾敓鏈猴紝鍙栧緱administrators鏉冮檺锛屽鐢熸満涓鑸兘瑁呬簡杩樺師鍗★紝鎵浠ヤ竴鐩存病鏇存柊锛屽緢濂介粦鐨勩傜劧鍚庡洖鍘荤洿鎺绂佺敤鏈湴杩炴帴灏卞ソ浜嗐傚鏋滀綘鎯充笂缃戝氨...
  • 鐢佃剳鏃犵嚎缃戝崱鎬庢牱绂佺敤?
    绛旓細1銆佹寜Windows+R閿皟鍑鸿繍琛岀晫闈2銆佽皟鍑鸿繍琛岀晫闈㈠悗锛岃緭鍏cmd锛岀劧鍚庣偣鍑荤‘瀹氥3銆佺‘瀹歝md鍚庤繘鍏ョ鐞嗚呭懡浠ゃ4銆佽繘鍏md鍚庯紝杈撳叆bcdedit /deletevalue useplatformclock锛岀劧鍚庡洖杞﹀氨鍙互浜嗐
  • 鎬庝箞鐢╟md鍛戒护鏂綉?鐝噷鐨勭數鑴戞昏浜虹帺,鍙堜笉璁╄瀵嗙爜
    绛旓細1.寮濮---杩愯---cmd 2.绂佺敤缃戝崱: netsh interface set interface "鏈湴杩炴帴" disabled 3.绂佺敤缃戝崱鎴愬姛锛屾柇缃戞垚鍔 娉細鍚敤缃戝崱 : netsh interface set interface "鏈湴杩炴帴" enabled
  • 鍦╟md鍛戒护涓湁涓懡浠ゅ彲浠ヨ缃戝崱璧峰埌绂佺敤鍜屽惎鐢ㄧ殑鍛戒护鏄粈涔
    绛旓細鐢变簬绯荤粺鏈韩娌℃湁绫讳技鍛戒护闇瑕佷笅杞戒竴涓伐鍏穌evcon.exe锛屼笉杩囪繖涓伐鍏锋槸寰蒋鑷繁鍑虹殑锛屽畨鍏ㄦ柟闈㈠彲浠ユ斁蹇冦備笅杞藉湴鍧锛 http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exedevcon disable =net devcon enable =net 绗竴涓槸绂佺敤缃戝崱锛岀浜屼釜鍚敤缃戝崱銆
  • 鍙互鐢―OS鍛戒护绂佺敤缃戝崱 鍚敤缃戝崱涔?
    绛旓細涓嬮潰鐨勬柟娉曞氨鍙互浜 寮濮---杩愯---cmd 绂佺敤缃戝崱: netsh interface set interface "鏈湴杩炴帴" disabled 鍚敤缃戝崱 : netsh interface set interface "鏈湴杩炴帴" enabled
  • 鎬庝箞鐢╟md鍛戒护 绂佺敤鏈湴杩炴帴
    绛旓細杩愯濡備笅鍛戒护绂佺敤鍚嶇О涓"Local Area Connection"鐨缃戝崱:netsh interface set interface name="Local Area Connection" admin=DISABLED 鎶婄粨灏剧殑"DISABLED"鏀逛负"ENABLED"涓哄紑鍚寚瀹氱殑缃戝崱銆傝繕鏈変竴绉嶇畝鍗曞疄鐢ㄧ殑鏂规硶锛岃姹傛槸鐢ㄥ眬鍩熺綉鐨勭敤鎴,灏辨瘮濡傝缃戠粶鐜閫氳繃璺敱涓婄綉鐨 ipconfig/release绂佺敤 ipconfig/renew鍚...
  • 濡備綍绂佺敤铏氭嫙缃戝崱
    绛旓細1銆佸崟鍑诲睆骞曞乏涓嬭鐨勩愬紑濮嬨戣彍鍗 2銆佸湪鎼滅储涓緭鍏モcmd鈥濓紝浣跨敤榧犳爣鍙抽敭鐐瑰嚮涓婃柟鍑虹幇鐨勩恈md銆戠▼搴忥紝閫夋嫨銆愪互绠$悊鍛樿韩浠借繍琛屻3銆佹鏃朵細鎵撳紑绠$悊鍛樺懡浠ゆ彁绀虹绐楀彛 4銆佸湪鍛戒护鎻愮ず绗︿腑杈撳叆鈥渘etshwlan set hostednetwork mode=disallow ssid=鏃犵嚎鍚嶅瓧key=瀵嗙爜鈥濓紝姝ゅ鐨勬棤绾垮悕瀛楀拰瀵嗙爜鍒嗗埆浠モ渨ww160com鈥...
  • 扩展阅读:手机版cmd工具 ... cmd查看局域网所有ip ... cmd命令大全清除垃圾 ... 网络测试命令7个 ... 10个装逼的cmd命令 ... 新手怎么学代码编程 ... cmd命令强制恢复系统 ... cmd查看网络连接状态 ... cmd命令进入桌面 ...

    本站交流只代表网友个人观点,与本站立场无关
    欢迎反馈与建议,请联系电邮
    2024© 车视网