Quote: Originally Posted by Husky79
I have tried several searches and can't find something that works. I keep getting sites that say to create a script then add it in the gpedit.msc and I dont know how to make scripts to open a notepad or something graphically when I click on shutdown.
What I want is that when I click on shut down, it will pop up a screen or open a notepad that will say stuff like have you completed your timesheet, sent in invoice and such. Cause I sometime forget to do some stuff and get in trouble.
Is there any easier way beside making a script which I have no clue how to do a script.
I think this script I made should be fine. It will display a popup with a Yes and a No button. When you click the Yes, the shutdown is cancelled. Click No and the system will proceed.
On Error Resume Next
menuSel=MsgBox("Have you completed your timesheet ?" & vbCrLf & "Have you sent in the Invoice?" & vbCrLf & "Have you forgotten anything at all?" & vbCrLf & "Think hard!", vbYesNo)
If menuSel=vbYes Then
WshShell.Run "Shutdown -a"
To set it up on Shutdown,
1. Save the script somewhere on the system (or) Copy the script from here and paste it in notepad and save it as 'ShutdownReminder.wsf'
2. Goto Start > Run, then type "gpedit.msc" without the quotes.
3. Naviagate to Computer Configuration > Windows Settings > Scripts (Startup/Shutdown). This brings up two options on the right.
4. Double click (or) Right click on Shutdown and select Properties
5. Click 'Add' and browse for the script file you saved.
6. Click 'OK' and close the Policy Editor
That should work. Keep us posted if it works.
I've attached the script in this post.