Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Display reminder when click on shutdown?


18 Oct 2010   #1

Windows 7 Ultimate 64bit 6.01.7600
 
 
Display reminder when click on shutdown?

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.

Thanks


My System SpecsSystem Spec
.

18 Oct 2010   #2

MS Windows 7 Ultimate SP1 64-bit
 
 

Hello Husky and welcome to sevenforums.

I assume the software posting notes to your desktop is from your employer.

I recommend you contact the company and ask them what they need you to do. This does not sound a Win 7 problem but rather work duties related.
My System SpecsSystem Spec
18 Oct 2010   #3

windows 7 ultimate 64bit
 
 

do you work the same hours each day? if so, maybe you could create a scheduled task and set it to run 10 or 15 minutes before the time you normally log off.
My System SpecsSystem Spec
.


18 Oct 2010   #4

MS Windows 7 Ultimate SP1 64-bit
 
 

Husky,
Ignore my previous post. I just realized that you want a nag screen and I had thought that you were trying to get rid of one.

Good old, post-its stuck to your monitor still work.
My System SpecsSystem Spec
18 Oct 2010   #5

Windows 7 Ultimate 64bit 6.01.7600
 
 

Thanks for the reply, I work from home and the company does not provide computer for me, I use my own computer. I have post it on the desktop. But sometimes I forget about it on the weekends even when I dont work, I still have to submit a invoice even though it would be a zero lol its silly but.. Also I have a reminder on my phone, but still forget it sometimes since the phone would be sitting somewhere else. So I was thinking of a fool proof thing like when I click on the shutdown button a pop up will come and will not allow me to shut down until I press ok or close that popup. Then that way I will know for sure I got those stuff done. Since the computer is the last thing I am doing just before I crawl in bed. So I thought since technology is possible with all those popups and Windows 7 has the screen up letting me know there are still some programs open and its closing it. So I figure there has to be some sort of software or a way to do this.

Thanks
My System SpecsSystem Spec
18 Oct 2010   #6

Windows 8.1 x64 x3 + Windows 10 Preview
 
 

The option of a scheduled task may be the way to go - not as a timed item but as an action triggered by the actual shut-down task. I say may be as I'm not sure if it's actually possible to trigger on shut-down.

I have to go out for a while but will check the possibilities later and post back my findings - looks an interesting challenge and if we can get it working would be useful for many things

Quick check seems to say that scripts and GPEDIT MSC is the only way to do this, will investigate more ....
My System SpecsSystem Spec
18 Oct 2010   #7

Windows 7 Ultimate x86 build 7600 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
 
 

Quote   Quote: Originally Posted by Husky79 View Post
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.

Thanks
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.
Code:
<job id="vbs">
    <script language="VBScript">
        Set WshShell=WScript.CreateObject("WScript.Shell")
        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"
        End If
    </script>
</job>
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.


Attached Files
File Type: zip Shutdown Reminder.zip (398 Bytes, 179 views)
My System SpecsSystem Spec
18 Oct 2010   #8

Windows 8.1 x64 x3 + Windows 10 Preview
 
 

OK there is a way to trap the shut-down action in the task scheduler but unfortunately this only happens when the shut-down is under way so the script as described above is the way to go

I did write a quick batch file to do the job which is attached but this will just display the reminder and then shut down

The delay is variable and it will warn of the shut-down but the more elegant script above is a better way

Code:
@Echo Off
Echo this is text add extra notes to additional echo statements 
Echo to add more data to the reminder

set /a counter =0

:numbers

set /a counter=counter+1

if counter ==2500 (goto :Shut)
 
Rem Change this value to adjust the delay

goto :numbers


:shut
shutdown.exe -s -t 10
Shutdown Batch.bat


My System SpecsSystem Spec
18 Oct 2010   #9

Windows 7 Ultimate 64bit 6.01.7600
 
 

Thanks for the information and motivation to help me. Something like this would be a great benefit for a lot of people!

However I tried Gladson1976's script and it did not pop up anything and my computer hung at the "shutting down" screen for like 10 mins before I finally force power down via power button.

When I powered back on, i noticed that all my cookies like for password and login information to all sites are all erased. Could it be from the script? or the forced powerdown? That has never happened to me when I did force powerdown that I recall.

I will try Barman58's method sometime today.

Again thanks!


**EDIT FOR CLARIFICATION** Gladson1976, Sorry I just checked more sites and the login info is still there, only this site and 2 other sites lost the login information. So I guess it must be something from the forced power down. Doubt its from the script. I will try it out again by downloading the file provided. and try that one.
My System SpecsSystem Spec
19 Oct 2010   #10

Windows 7 Ultimate x86 build 7600 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
 
 

Try putting only this
Code:
Set WshShell=WScript.CreateObject("WScript.Shell")
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"
End If
in a file, name it as 'ShutdownReminder.vbs' and try it in the Group Policy Editor
My System SpecsSystem Spec
Reply

 Display reminder when click on shutdown?




Thread Tools



Similar help and support threads for2: Display reminder when click on shutdown?
Thread Forum
Task Scheduler - Create Task to Display a Message Reminder Tutorials
Stop Shutdown process after click Shutdown button! General Discussion
Solved Right click menu: Shutdown/Restart Customization
Display a Reminder/Message Box on Win 7 Shutdown Customization
Problem with display click down General Discussion
How to display logon screen in one click? General Discussion
Right click menu display issues BSOD Help and Support

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:09 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33