win7一鍵關(guān)閉危險(xiǎn)端口的方法
對(duì)于win7這個(gè)系統(tǒng)來講,有一些開放的端口,很容易被入侵,而且這些大多數(shù)人根本用不到,不如直接關(guān)閉,這樣系統(tǒng)會(huì)更安全。
但端口的關(guān)閉,想著容易,操作起來難度還是很大的,一些小白用戶可能不會(huì)操作,下面教給大家一招:win7一鍵關(guān)閉危險(xiǎn)端口的方法。
下面有一個(gè)文件,可以幫助大家自動(dòng)關(guān)閉大部分危險(xiǎn)端口:
@echo off
color 1f
title 關(guān)閉常見的危險(xiǎn)端口
echo.
echo.
echo 本批處理用于啟動(dòng)XP系統(tǒng)的防火墻并關(guān)閉常見的危險(xiǎn)端口
echo.
echo 請(qǐng)確認(rèn)您正在使用的是XP系統(tǒng) 并且未安裝其他防火墻
echo.
echo 以避免與XP系統(tǒng)的防火墻發(fā)生沖突
echo.
echo.
echo.
pause
cls
echo 正在啟動(dòng)防火墻 請(qǐng)稍候…
sc config SharedAccess start= auto > nul
net start SharedAccess > nul
echo 防火墻已經(jīng)成功啟動(dòng)
echo.
echo 正在關(guān)閉常見的危險(xiǎn)端口 請(qǐng)稍候…
echo.
echo 正在關(guān)閉135端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 135 name = 135 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉137端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 137 name = 137 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉138端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 138 name = 138 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉139端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 139 name = 139 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉445端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 445 name = 445 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉593端口 請(qǐng)稍候…
netsh firewall set portopening protocol = TCP port = 593 name = 593 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉1025端口 請(qǐng)稍候…
netsh firewall set portopening protocol = TCP port = 1025 name = 1024 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉3389端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 3389 name = 3389 mode = DISABLE scope = ALL profile = ALL
cls
echo.
echo.
echo.
echo 常見的危險(xiǎn)端口已經(jīng)關(guān)閉
echo.
echo.
echo.
echo.
echo
echo.
echo.
echo.
echo 按任意鍵退出
pause>nul
我們只需要把上面的文件復(fù)制到記事本中,然后把后輟.TXT更改為.BAT文件,然后點(diǎn)擊就會(huì)自動(dòng)執(zhí)行,也就可以自動(dòng)把這些危險(xiǎn)的端口給屏蔽掉了。
相關(guān)文章
- 1.windows7系統(tǒng)網(wǎng)絡(luò)頻繁掉線怎么回事
- 2.win7安全中心服務(wù)無法啟動(dòng)問題的解決辦法
- 3.win7強(qiáng)制卸載ie9瀏覽器的方法
- 4.win7英雄聯(lián)盟安裝不成功的解決辦法
- 5.win7網(wǎng)頁(yè)沒有聲音怎么辦
- 6.如何在線重裝win7系統(tǒng)
- 7.Win7開機(jī)顯示“bootmgr is missing”錯(cuò)誤的修復(fù)方法
- 8.win7怎么設(shè)置顯卡風(fēng)扇轉(zhuǎn)速
- 9.老電腦裝win7還是win10呢?
- 10.win7桌面右下角測(cè)試模式的關(guān)閉方法
熱門文章
- 1.筆記本電腦的電池應(yīng)該拿下來嗎
- 2.2021年百度收錄很難的原因及對(duì)策
- 3.網(wǎng)站被黑,被上傳了admin5s.asp aspx.aspx xkey.php文件
- 4.阿里金冠商品有什么好處
- 5.如何讓老筆記本電腦變快
- 6.a(chǎn)dsense電匯用哪個(gè)銀行
- 7.微信公眾號(hào)幾點(diǎn)發(fā)看的人最多
- 8.比亞迪的芯片是自己生產(chǎn)的嗎
- 9.怎么查詢是不是搜索引擎的IP
- 10.中興自己能不能做芯片
- 11.芯片公司員工工資待遇高不高?
- 12.5g網(wǎng)絡(luò)哪一年才能真正開始普及
- 13.華為5g訂單總共拿到了多少
- 14.高增益天線不是把wifi信號(hào)增強(qiáng)
- 15.路由器改裝平板天線可行嗎
- 16.淘寶優(yōu)惠券怎么給別人
- 17.淘寶天貓優(yōu)惠券靠譜嗎
- 18.臺(tái)式電腦太老了換cpu能行嗎?
- 19.臺(tái)式電腦如果開藍(lán)牙
- 20.無線路由器能連接幾臺(tái)臺(tái)式電腦