中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-09 17:53
47,811 topics / 349,896 posts / today 1 new / 48,254 members
DOS批处理 & 脚本技术(批处理室) » How can I disable the keyboard
Printable Version  3,462 / 20
Floor1 666cool Posted 2008-09-07 19:37
初级用户 Posts 27 Credits 65
As the title says, how to use batch processing to disable the keyboard? And users remotely can't use the keyboard to respond? Don't use tools, just use the system's own. Last time someone said uninstalling the keyboard would work, but I tried, and remotely, you can still execute keyboard commands. Great experts, please give your advice!
Floor2 HAT Posted 2008-09-07 20:00
版主 Posts 5,017 Credits 9,023
```
@echo off
sc config Kbdclass start= disabled
sc config i8042prt start= disabled
shutdown -s -t 0 -f
```
Floor3 666cool Posted 2008-09-07 21:22
初级用户 Posts 27 Credits 65
What about lifting the disablement?
Floor4 HAT Posted 2008-09-07 21:35
版主 Posts 5,017 Credits 9,023
```
@echo off
sc config Kbdclass start= auto
sc start Kbdclass
sc config i8042prt start= auto
sc start i8042prt
shutdown -s -t 0 -f
```
Floor5 regvip2008 Posted 2008-09-08 01:00
初级用户 Posts 87 Credits 187
Hehe, this method is pretty good
Floor6 666cool Posted 2008-09-08 21:53
初级用户 Posts 27 Credits 65
Hello expert, may I ask, if I have enabled remote access on the server and leaked a common user account, and this user can access the server remotely, how long will it take to compromise this server? Also, how to set up to make it very difficult to break in (the server is Windows Server)
Floor7 sparklt Posted 2008-09-08 21:58
初级用户 Posts 15 Credits 22
This code is a bit dangerous. It is suggested that novice users don't try it randomly. If you want to try, please make a backup
Floor8 HAT Posted 2008-09-08 22:03
版主 Posts 5,017 Credits 9,023
It depends on the other party's level. Pay someone who understands security to work in your company.
Floor9 666cool Posted 2008-09-08 22:04
初级用户 Posts 27 Credits 65
HAT expert, why does your command also disable the mouse?
Floor10 HAT Posted 2008-09-08 22:07
版主 Posts 5,017 Credits 9,023
sc config i8042prt start= disabled
Please delete this line
Floor11 sparklt Posted 2008-09-08 22:11
初级用户 Posts 15 Credits 22
Got it, I understand what you mean. When the server detects that the user is connecting illegally, disable the keyboard. Although it's very passive, at least it can delay the bad time.
Floor12 BC Posted 2008-09-08 22:12
中级用户 Posts 175 Credits 338
Hey, so Brother hat has reached Platinum Member? That's powerful...

sc seems all-powerful... even the keyboard can be disabled
Floor13 666cool Posted 2008-09-08 22:17
初级用户 Posts 27 Credits 65
First, thank HAT.

Actually, the main reason for doing this disable is to open the server remote access function, but it can't let people with malicious intentions execute some dangerous code.

In addition, I think the security of the system is proportional to the functions that the system itself has. The more functions, the more vulnerabilities. So there's no denying the functions of Windows. (Pure nonsense.)

Also, I want to consult the experts, how much faster is the 64-bit Windows operating system than the 32-bit one?

I'm quite confused.
Floor14 HAT Posted 2008-09-08 22:20
版主 Posts 5,017 Credits 9,023
Without the support of hardware, even if you use a 128-bit system, it won't be faster.
Floor15 666cool Posted 2008-09-08 23:15
初级用户 Posts 27 Credits 65
sc config Kbdclass start= disabled
sc config i8042prt start= disabled

The second sentence is deleted, and the mouse and keyboard are still disabled together. Is there a way to disable them separately?
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023