|
| 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | |
|
|
|
|
|
|
|
วิธีการสร้าง script เพืื่อปิด service ของ windows
ศึกษาจาก google แล้วลองทำเองครับ คำสั่ง net stop ชื่อservice คือการปิดservice คำสั่ง sc config ชื่อservice คือการกำหนดค่าเริ่มต้นของservice ในที่นี้ผมไ้ด้ทำการทำscriptเพื่อปิดserviceที่ไม่จำเป็นสำหรับเครื่องคอมครับ ใครอยากลองก็copyข้อความด้านล่างแล้วไปเปิดในnotepad จากนั้น save=all file ชื่อไฟล์เป็นอะไรก็ได้แต่ต้อง .bat เช่น stop service.bat
************************************************* ปล. ผมปิด wireless zero ด้วยนะครับ ใครไม่อยากปิดให้ลบ2บรรทัดด้านล่างออก net stop wzcsvc sc config wzcsvc start= disabled *************************************************
net stop ersvc sc config ersvc start= disabled net stop sharedaccess sc config sharedaccess start= disabled net stop wzcsvc sc config wzcsvc start= disabled net stop scardsvr sc config scardsvr start= disabled net stop scardsvr sc config scardsvr start= disabled net stop wscsvc sc config wscsvc start= disabled net stop remoteregistry sc config remoteregistry start= disabled net stop wuauserv sc config wuauserv start= disabled net stop helpsvc sc config helpsvc start= disabled net stop tlntsvr sc config tlntsvr start= disabled net stop ups sc config ups start= disabled
Create Date : 20 กันยายน 2551 |
|
0 comments |
Last Update : 20 กันยายน 2551 22:51:35 น. |
Counter : 6210 Pageviews. |
|
|
|
|
| |
|
|