Display reminder when click on shutdown?

Page 1 of 2 12 LastLast

  1. Posts : 10
    Windows 7 Ultimate 64bit 6.01.7600
       #1

    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 Computer


  2. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #2

    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 Computer


  3. Posts : 525
    windows 7 ultimate 64bit
       #3

    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 Computer


  4. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #4

    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 Computer


  5. Posts : 10
    Windows 7 Ultimate 64bit 6.01.7600
    Thread Starter
       #5

    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 Win7 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 Computer


  6. Posts : 31,246
    Windows 11 Pro x64 [Latest Release and Release Preview]
       #6

    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 Computers


  7. Posts : 1,210
    Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
       #7

    Husky79 said:
    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.
    Display reminder when click on shutdown? Attached Files
      My Computer


  8. Posts : 31,246
    Windows 11 Pro x64 [Latest Release and Release Preview]
       #8

    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 Computers


  9. Posts : 10
    Windows 7 Ultimate 64bit 6.01.7600
    Thread Starter
       #9

    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 Computer


  10. Posts : 1,210
    Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
       #10

    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 16:34.
Find Us