How To Run A Script or Command At Logoff in Windows 7 & 8

You can use the Task Scheduler to execute a script or command at startup or during the login process but you can’t use it to do the same during the logoff. In order to do so, you will need to go through the local Group Policy Editor, a much more powerful component unique in Windows.

8 COMMENTS

Hi, Mr. Chen. I’m glad that you found the time to find out how to make Windows talk during Log off, I’ve been waiting learn how to do that.

I will try it now and hopefully it will workout fine.

By the way, my Windows 8 Pro x32-bit still can’t say the time even after I followed your instructions. Maybe its a Windows 8 bug. If I click the VBScript, a male voice reads it aloud but once I created the task in the task scheduler Windows 8 always shows a pop-up asking what application should it use to open the file.

I choose the wscript.exe as you instructed but my Windows 8 kept asking what app to open the Script Host.

Anyway, I will try out this trick on my Windows 7 which have been very cooperative in obeying my command to talk. 🙂

I don’t think there is no such trigger based on the battery level. You may need a 3rd party tool that monitors it in real time. Or you may alter the VBScript to read the battery level and speak out if the level reaches low. Schedule it to run every 5 or 10 minutes, or frequently enough to alert you on time.

yes, i cross-checked it again and again,copied straight from address bar and also manually but the error wont go away……. Is it case sensitive as windows might be looking for “c:ricdproject.vbs” rather than “C:RICDPROJECT.VBS”