REMINDER
Display a Reminder Before Shutdown or Log Off
Displaying a short reminder to remind DET upload every time before logging off or shutting down can be helpful. The tip involves a simple one line command in notepad.
1. Open notepad. Type the following command and save the file
with .bat extension.
@echo off
msg * DET UPLOADED ?. ( any message)
msg * DET UPLOADED ?. ( any message)
2. Now we need to add
this script to log off and shutdown events. We will open the Local Group Policy
Editor by typing (press win+r) gpedit.msc in run. Browse to Computer
Configuration—> Windows Settings and then Scripts (Startup and Shutdown).
In the right pane you will see Startup and Shutdown options. Double click Shutdown and Shutdown Properties .Click on add and then browse to the location where that bat file is. Click ok.
We will repeat the same for log off too. Browse to User Configuration –> Windows Settings and then choose scripts. Double click the log off file and edit its properties like you did for shutdown. Add and browse to the bat file (which is also your script) and click ok.
Once you have assigned the bat file (your script) to logoff and shutdown event, you are ready to get the simple message window as a reminder every time you shutdown or logoff. Something similar to the screenshot below.
Post a Comment