giacomodebello
New member
On a website I read
but I made a few tests and if I use this command set
then I can address those cases. I mean, DOSKEY can be used to disable a command and it cannot be bypassed by running the full command path, adding the extension or creating a different macro. I started to ask myself if that set can be expanded. On the same website I read
This will make that permanent, but then I read
It starts to be a bit tricky.
If we want to follow that path and close all the holes one by one, how to disable, in example, the Alt key to prevent "the escape"?
In general, how to disable a specific Windows program for the command line interpreter by using Windows features only? In particular, for a specific user and not messing up the operating system itself, so no file deletion or renaming.
Doskey is not a foolproof method for disabling commands, it is easily bypassed by running the full command path/ extension or creating a different macro
but I made a few tests and if I use this command set
Code:
[SIZE=2]DOSKEY format=ECHO Disabled 1
DOSKEY \Windows\System32\format.com=ECHO Disabled 2
DOSKEY C:\Windows\System32\format.com=ECHO Disabled 3
DOSKEY format.com=ECHO Disabled 4
DOSKEY doskey=ECHO Disabled 5[/SIZE]
then I can address those cases. I mean, DOSKEY can be used to disable a command and it cannot be bypassed by running the full command path, adding the extension or creating a different macro. I started to ask myself if that set can be expanded. On the same website I read
To run a command as soon as the command prompt is opened, this can be useful for loading DOSKEY macros
This will make that permanent, but then I read
A CMD.exe session started with CMD /D will not run any of the above AutoRun commands
ALT+F10 Clear macro definitions
It starts to be a bit tricky.
If we want to follow that path and close all the holes one by one, how to disable, in example, the Alt key to prevent "the escape"?
In general, how to disable a specific Windows program for the command line interpreter by using Windows features only? In particular, for a specific user and not messing up the operating system itself, so no file deletion or renaming.
Last edited:
My Computers
System One System Two
-
- Computer type
- Laptop
- Computer Manufacturer/Model Number
- Compaq Presario CQ60-117EL
- OS
- 7 Professional 64 bit
- CPU
- AMD Sempron SI-40 2GHz single core
- Memory
- 4GB
- Graphics Card(s)
- NVidia GeForce 8200M G 256MB
- Sound Card
- Conexant High Definition SmartAudio 221
- Screen Resolution
- 1366x768 60Hz
- Hard Drives
- S3SSDC240XEU 223GB Solid-State Drive (not originally on this machine)
- Internet Speed
- 50Mbps download and 7Mbps upload
- Browser
- Mozilla Firefox 115 ESR
- Other Info
- The system is slow;
I usually take a lot of tabs opened in Firefox;
Firefox is set to open the old session (again, with multiple tabs opened) when it starts;
usually, at least Firefox and Telegram Desktop are opened;
the monitor flickers sometimes;
the system is a bit hot during summer.
-
- Computer type
- PC/Desktop