ไอทีแลนด์
Would you like to react to this message? Create an account in a few clicks or log in to continue.


เวปไซต์แห่งการแบ่งปัน
 
บ้านLatest imagesค้นหาสมัครสมาชิก(Register)เข้าสู่ระบบ(Log in)

 

 การ ปิด การทำงาน Windows firewall โดยใช้ Command DOS

Go down 
ผู้ตั้งข้อความ
Admin
Admin



จำนวนข้อความ : 1754
Registration date : 16/07/2008

การ ปิด การทำงาน Windows firewall โดยใช้ Command DOS Empty
ตั้งหัวข้อเรื่อง: การ ปิด การทำงาน Windows firewall โดยใช้ Command DOS   การ ปิด การทำงาน Windows firewall โดยใช้ Command DOS Icon_minitimeSun Sep 14, 2008 9:46 pm

การ ปิด การทำงาน Windows firewall โดยใช้ Command DOS
ต้องบอกก่อนว่าตัวเองก็ไม่ได้เก่ง สักเท่าไร อาสัยอ่านจาก MS technet ของ Microsoft เอาครับ
http://www.microsoft.com/technet
ลองเข้าไปอ่านดู เนื้อหา สาระ เพียบ ครับ สำหรับคนใช้งาน ทั้ง Windows Server และ Windows Client


ก่อนอื่นเลย ต้องบอกไว้เลย นี่เป็น Script batfile Dos แบบง่ายๆ
ปัญหาส่วนนึงที่ IT เจอในองค์กรคือ
Windows Firewall ดัน Turn on ไว้ทำให้ Ping ไปไม่เจอ เครื่อง Client
ทำให้การ รับ/ส่งไฟล์ ติดขัด มีปัญหา ต่อระบบ
หนำซ้ำ User Sharefile บางครั้งเข้าได้บ้างไม่ได้บ้าง ตอนแรก นึกว่า Session เต็ม ที่ไหนดัน ดัน Turn Firewall ไว้ ซะนี่

ไหนๆ ก็ไหนๆ แล้ว องค์กร เราก้อ มี Firewall Block หลายชั้นอยู่แล้ว จะใช้ Windows Firewall ให้คาใจทำแปะ อะไร ปิดมันเสียดีกว่า

คำสั่ง ต่อไปนี้ ผมจะร่ายให้ฟัง ทีละคำสั่งแล้วกันนะ
เริ่มจาก

netsh firewall reset
เป็นคำสั่ง Reset Windows Firewall ค่าต่างๆ ที่ถูก Exception ไว้ใน List จะถูก Delete ทั้งหมด

netsh firewall set opmode mode =disable exceptions = disable
เป็นคำสั่ง Reset Windows Firewall เช่นกัน แต่เงื่อนไขคือ
opmode mode =disable Disable หรือ Off หรือ ปิด ในส่วนของ Firewall ที่แถบ General
exceptions = disable Disable หรือ Off หรือ ปิด ในส่วนของ Firewall ที่แถบ exceptions

netsh firewall set notifications mode =disable profile = All
เป็นคำสั่ง ปิด ในส่วนของการแสดงรายการ การแจ้งเตือน packet/program เงื่อนไขคือ
notifications mode =disable Disable หรือ Off หรือ ปิด ในส่วนของการแจ้งเตือน
profile = All Disable หรือ Off หรือ ปิด ในส่วนของ Profile

netsh firewall set opmode mode =disable interface = "Network Name"
เป็นคำสั่ง ปิด ในส่วนของการแสดงรายการชื่อของ Network Card
opmode mode =disable Disable หรือ Off หรือ ปิด การทำการของ LAN Card
interface = "Network Name" เลือก LAND Card ใบที่ต้องการปิด ในที่นี่คือชื่อ Network Name คุณสามารถดูชื่อได้จาก Network Connections ว่า CardLan ชื่ออะไร เมื่อได้ชื่อแล้วให้ใส่ แทนค่า Network Name นี้ครับ


DOS ตัวอย่างนี้ สามารถ COPY ใส่ Notepad แล้ว บันทักเป็นไฟล์ นามสกุล .bat ได้เลย ครับ



@echo.
@echo. ####### Don't close this page....
@echo.
@echo.
@echo. Step 1.
@echo. Restore Default Windows Firewall.
@netsh firewall reset
@echo. Step 2.
@echo. Turn Off Windows Firewall Rule
@netsh firewall set opmode mode =disable exceptions = disable
@netsh firewall set notifications mode =disable profile = All
@netsh firewall set opmode mode =disable interface = "Local Area Connection"








แค่คำขอบคุณ
ขึ้นไปข้างบน Go down
http://itland.ephpbb.com
 
การ ปิด การทำงาน Windows firewall โดยใช้ Command DOS
ขึ้นไปข้างบน 
หน้า 1 จาก 1

Permissions in this forum:คุณไม่สามารถพิมพ์ตอบ
ไอทีแลนด์ :: คอมพิวเตอร์ :: Tip Computer-
ไปที่: