Are you ever suspicious of somebody using your computer without permission? This is obviously the batch file you need.
You will need
-Windows (95 or higher)
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Open Notepad
To open notepad start Run
Then type in notepad and hit enter
Step 2: Code
Copy this into notepad
echo Boot at %Date% %Time%>>C:\Users\%USERNAME%\Desktop\record.txt
Step 3: Save
Now save this file as record.bat
Move this file to the startup folder.
Step 4: Test
Reboot your machine and log in. If there is a file on your desktop names record.txt open it.
It should say
Boot at (Date) (Time)
Now whenever your machine is logged onto with or without your permission you will know.
Step 5: Final Notes
I didn't write this instructable for fun. I was curious of a family member watching over my back learning my password. Sure enough I was correct because a boot was logged one hour before I even got home. Thank you for reading and remember to subscribe!