Category Archives: CLI Secrets

%SystemRoot%System32 secrets

Remember myOld good command lineseries? I decided to continue. But now I will take interesting commands not from some fabulous site, but from inside my very own Windows 7. From the folder stated in the subject. Usually it is c:windowssystem32, but who knows what you’ve done to your innocent computer =)

So, let the manuscript begin…

The first command in the show is:


Well, well, well… Look, who’s there. The command was considered as deprecated since Windows 2003 RTM, but it is still included into W7. While we have much more powerful schtasks (to be covered in the future releases of  the series), we still can use at, if fall we need is to create one simple task or script its creation. Why use at instead of schtasks? For example if you, like me are old enough to remember the syntax of at and lazy enough not to remember schtasks’ one. =) Why do I remember this syntax? Because it was fun some 10 years ago to create a task on a friend’s workstation to shutdown every 5 minutes Winking smile

Something like this, I guess:

at \friend 00:00 /every:M,T,W,Th,F,S,Su “shutdown /s /f /t 0”

at \friend 00:05 /every:M,T,W,Th,F,S,Su “shutdown /s /f /t 0”

at \friend 00:10 /every:M,T,W,Th,F,S,Su “shutdown /s /f /t 0”


at \friend 23:55 /every:M,T,W,Th,F,S,Su “shutdown /s /f /t 0”

(Yeah, I wasn’t so lazy as I am now back then. And we had no AD and the same passwords)

Or, may be it was some other line, I didn’t check it now =)

Syntax is here, it hasn’t changed since Win2000.

Have fun.