Giter Club home page Giter Club logo

Comments (5)

TeamSpen210 avatar TeamSpen210 commented on August 19, 2024 2

The entire reason Classic Start exists is to allow more control over the system. There are many situations where updating might not be a good idea - for example if a computer is connected via a UPS and the power fails, you'd want to shut down as quickly as possible, definitely without updating.

from classic-shell.

XenHat avatar XenHat commented on August 19, 2024

The reason the option is missing because Microsoft decided it was a bad idea and removed the functionality from Windows 10.
Updates happen for a reason, and you should apply them.
I refuse to add an option that will allow our users to let their machines insecure.

EDIT: The rest of the development team may have a different opinion.

from classic-shell.

B00ze64 avatar B00ze64 commented on August 19, 2024

@XenHat I think you're exaggerating - what users have to do now is disable the "I update whenever I want and screw you" update service and use the Windows Update MiniTool to update manually. Being able to defer updates when rebooting would help.

from classic-shell.

XenHat avatar XenHat commented on August 19, 2024

The entire reason Classic Start exists is to allow more control over the system. There are many situations where updating might not be a good idea - for example if a computer is connected via a UPS and the power fails, you'd want to shut down as quickly as possible, definitely without updating.

All right, fair enough. Let the users deal with their decisions.

Shutdown's help text:

 shutdown /?
Usage: C:\WINDOWS\system32\shutdown.exe [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/soft] [/fw] [/f]
    [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

    No args    Display help. This is the same as typing /?.
    /?         Display help. This is the same as not typing any options.
    /i         Display the graphical user interface (GUI).
               This must be the first option.
    /l         Log off. This cannot be used with /m or /d options.
    /s         Shutdown the computer.
    /sg        Shutdown the computer. On the next boot,
               restart any registered applications.
    /r         Full shutdown and restart the computer.
    /g         Full shutdown and restart the computer. After the system is
               rebooted, restart any registered applications.
    /a         Abort a system shutdown.
               This can only be used during the time-out period.
               Combine with /fw to clear any pending boots to firmware.
    /p         Turn off the local computer with no time-out or warning.
               Can be used with /d and /f options.
    /h         Hibernate the local computer.
               Can be used with the /f option.
    /hybrid    Performs a shutdown of the computer and prepares it for fast startup.
               Must be used with /s option.
    /fw        Combine with a shutdown option to cause the next boot to go to the
               firmware user interface.
    /e         Document the reason for an unexpected shutdown of a computer.
    /o         Go to the advanced boot options menu and restart the computer.
               Must be used with /r option.
    /m \\computer Specify the target computer.
    /t xxx     Set the time-out period before shutdown to xxx seconds.
               The valid range is 0-315360000 (10 years), with a default of 30.
               If the timeout period is greater than 0, the /f parameter is
               implied.
    /c "comment" Comment on the reason for the restart or shutdown.
               Maximum of 512 characters allowed.
    /f         Force running applications to close without forewarning users.
               The /f parameter is implied when a value greater than 0 is
               specified for the /t parameter.
    /d [p|u:]xx:yy  Provide the reason for the restart or shutdown.
               p indicates that the restart or shutdown is planned.
               u indicates that the reason is user defined.
               If neither p nor u is specified the restart or shutdown is
               unplanned.
               xx is the major reason number (positive integer less than 256).
               yy is the minor reason number (positive integer less than 65536).

It doesn't appear that we can do this by calling the shutdown executable. I will have to do some research.

Some options in there are going to be added as well, such as "Safe Mode" (/o) and "Restart to Firmware" (/fw/), "Shutdown (Fast)" (/hybrid) and "Reboot and Reopen" (/g).

from classic-shell.

XenHat avatar XenHat commented on August 19, 2024

Accepted, moved to #32

from classic-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.