%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:

at.exe

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.

About these ads

4 thoughts on “%SystemRoot%System32 secrets

  1. Pingback: %SystemRoot%System32 Secrets: Schtasks » IT, IS, etc…

  2. Pingback: Blog wrap-up for January 2011 » IT, IS, etc…

  3. Pingback: Migrate scheduled tasks from 2003 to 2008 - IT, IS, etc...

  4. Pingback: Migrate scheduled tasks from 2003 to 2008 | Recent Itisetc's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s