Windows 8 and 8.1 Forums


Can anyone create this?

  1. #1


    United Kingdom
    Posts : 40
    Windows 10 Enterprise 64-bit

    Can anyone create this?


    Hi,
    I need to create a log off shortcut for my users, so that they can log off (obviously).

    However i need it to ask them to confirm the action.

    If they click yes, it logs them off (using "shutdown -l") and if they click no it simply closes the dialog box.

    If anyone could be so AMAZING as to help me with this i would be SO grateful!

    (SOMETHING LIKE THIS

    Click image for larger version

    This does not actually function it wont run anything, but the script is:
    x=msgbox ("Log Off?" ,4+64, "Confirm Log Off")

    i also tried this along with other scripts but none worked
    x=msgbox ("Log Off?" ,4+64, "Confirm Log Off")
    If Continue = vbYes then
    if vbYes = run shutdown.exe -l
    Else
    End If

      My System SpecsSystem Spec

  2. #2


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    Why rebuild the wheel. Ctrl-Alt-Del, or when they are in desktop mode, use either Classic Shell or Start8 to give them the same features as what are in Windows 7.
      My System SpecsSystem Spec

  3. #3


    United Kingdom
    Posts : 40
    Windows 10 Enterprise 64-bit


    I need a desktop shortcut. They are not very 'technologically minded'
    And I had classic shell installed previously but it ruined my system.
      My System SpecsSystem Spec

  4. #4


    Germany/Florida
    Posts : 4,514
    Vista and Win7


    Would this work for you:
    Shut Down Shortcut - Create in Windows 8
      My System SpecsSystem Spec

  5. #5


    United Kingdom
    Posts : 40
    Windows 10 Enterprise 64-bit


    Quote Originally Posted by whs View Post
    I really need it to ask for confirmation (yes/no) or (yes/cancel)
    But thanks anyway
      My System SpecsSystem Spec

  6. #6


    United States
    Posts : 3,093
    Windows 8.1 Pro 64-bit


    I found this to make a batch file. Should be able to edit command and text to work for log off also:

    @ECHO OFF
    :: This batch file allows the user to choose to shutdown immediately, or cancel and return to Windows
    ::
    CD\
    CLS
    ECHO.
    :LOOP
    ECHO Would you like to shutdown immediately?
    ECHO.
    ECHO Y = SHUTDOWN IMMEDIATELY (WARNING!! Unsaved work will be lost)
    ECHO N = CANCEL and return to Windows
    ECHO.
    SET Choice=
    SET /P Choice=TYPE YOUR CHOICE AND PRESS ENTER:
    IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
    ECHO.
    IF '%Choice%'=='y' GOTO ShutdownNow
    IF '%Choice%'=='n' GOTO Leave
    ECHO "%Choice%" is not valid. Please try again.
    ECHO.
    GOTO Loop
    :ShutdownNow
    ECHO.
    shutdown /s /t 1

    :Leave
    Exit

    EDIT: Command for log off: shutdown /l = Log off and /f = force
      My System SpecsSystem Spec

  7. #7


    Posts : 2,690
    Windows 3.1 > Windows 10


    I just get "Log Off?"
    if yes - no confirm -Just log out

    If No - "Do You Want To Quit"
    Yes or No - closes dialog
      My System SpecsSystem Spec

  8. #8


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    @KYHI
    Was that supposed to be polite? Added an icon, and no confirm to exit.

    log-off.vbs
      My System SpecsSystem Spec

  9. #9


    Posts : 2,690
    Windows 3.1 > Windows 10


    Was not trying to offend...

    Testing - Log Off - but then no Log Off Confirm..

    Quit Box just Closes - Y or N

    VBS = yes off - No close dialog box
      My System SpecsSystem Spec

  10. #10


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    It is exactly what he asked for:
    If they click yes, it logs them off (using "shutdown -l") and if they click no it simply closes the dialog box.
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Can anyone create this?
Related Threads
Solved Create a ISO from Win8.1 DVD in Installation & Setup
Need help trying to create an ISO of the windows 8.1 dvd. I want to make a bootable USB stick when I go to install it to speed things up and make a backup copy. I can create the ISO using Alcohol 120 but when I use the Windows 7 USB/DVD tool to open the ISO it says it is not a valid ISO file. ...
I'm wanting to create a type of media player app that can pull up and play music and possibly video files (already saved on a given computer) in an aesthetically pleasing layout. I don't have any experience building apps and rather than spending hours learning how I'd like to just pay someone to do...
Solved create 2 bookmark bar in FF in Browsers & Mail
hi guys i use 20 sites every day and use bokkmark bar of firefox for easey access but i can not put all of my sites in bookmark bar.is it possible to add 2 bookmark bar?
Solved cannot create a homegroup in Network & Sharing
hi guys, well i created a homegroup for my 4 pc's, but with the last one i get the message that the Revo user changed the password. How is this possible? A user wanting to join the homegroup cannot change the password......normally. To restart from scratch, i led everyone leaving the...
How create a document in General Support
I have not Office Tools (Words, PPT......) Before I used a free document Template given by Microsoft that I do not find anymore. Anyone tell me how can I create a document in Windows 8 ????? Thanks.
How to create a tutorial? in Chillout Room
Hi. I want to create my own tuturial that show on EightForums Tutorial. How to do this?
Solved Create Icon in General Support
Hello :) Could someone tell me how to create an icon on the desk top in Win 8. Thanks
Eight Forums Android App Eight Forums IOS App Follow us on Facebook