Skip to main content

Code of shutdown in CMD

 Code of SHUTDOWN in CMD

C:\Users\somet>shutdown /?

Usage: shutdown [/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, if Automatic Restart Sign-On

               is enabled, automatically sign in and lock the last interactive user.

               After signing in, restart any registered applications.

    /r         Full shutdown and restart the computer.

    /g         Full shutdown and restart the computer. After the system is rebooted,

               if Automatic Restart Sign-On is enabled, automatically sign in and

               lock the last interactive user.

               After signing in, 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 the 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.

               A maximum of 512 characters is 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).


Reasons on this computer:

(E = Expected U = Unexpected P = planned, C = customer defined)

Type    Major   Minor   Title


 U      0       0       Other (Unplanned)

E       0       0       Other (Unplanned)

E P     0       0       Other (Planned)

 U      0       5       Other Failure: System Unresponsive

E       1       1       Hardware: Maintenance (Unplanned)

E P     1       1       Hardware: Maintenance (Planned)

E       1       2       Hardware: Installation (Unplanned)

E P     1       2       Hardware: Installation (Planned)

E       2       2       Operating System: Recovery (Unplanned)

E P     2       2       Operating System: Recovery (Planned)

  P     2       3       Operating System: Upgrade (Planned)

E       2       4       Operating System: Reconfiguration (Unplanned)

E P     2       4       Operating System: Reconfiguration (Planned)

  P     2       16      Operating System: Service pack (Planned)

        2       17      Operating System: Hot fix (Unplanned)

  P     2       17      Operating System: Hot fix (Planned)

        2       18      Operating System: Security fix (Unplanned)

  P     2       18      Operating System: Security fix (Planned)

E       4       1       Application: Maintenance (Unplanned)

E P     4       1       Application: Maintenance (Planned)

E P     4       2       Application: Installation (Planned)

E       4       5       Application: Unresponsive

E       4       6       Application: Unstable

 U      5       15      System Failure: Stop error

 U      5       19      Security issue (Unplanned)

E       5       19      Security issue (Unplanned)

E P     5       19      Security issue (Planned)

E       5       20      Loss of network connectivity (Unplanned)

 U      6       11      Power Failure: Cord Unplugged

 U      6       12      Power Failure: Environment

  P     7       0       Legacy API shutdown

Comments

Popular posts from this blog

พยางค์

การที่เราเปล่งเสียงออกมาจากลำคอครั้งหนึ่ง ๆ นั้น เราเรียกเสียงที่เปล่งออกมาว่า “พยางค์” แม้ว่าเสียงที่เปล่งออกมาจะมีความหมายหรือไม่มีความหมายก็ตาม เช่น เราเปล่งเสียง “สุ” ถึงจะไม่ รู้ความหมาย หรือไม่รู้เรื่องเราก็เรียกว่า ๑ พยางค์ หากเราเปล่งเสียงออกมาอีกครั้งหนึ่งว่า “กร” จะ เป็น “สุกร” จึงจะมีความหมาย คำว่า “สุกร” ซึ่งเปล่งเสียง ๒ ครั้ง เราก็ถือว่ามี๒ พยางค์ เสียงที่เปล่ง ออกมาครั้งเดียวมีความหมาย เช่น นา หมายถึง ที่ปลูกข้าว เสียงที่เปล่งออกมาว่า “นา” นี้เป็น ๑ พยางค์ ลองดูตัวอย่างต่อไปนี้ ไร่ มี๑ พยางค์ ชาวไร่ มี๒ พยางค์ (ชาว-ไร่) สหกรณ์ มี๓ พยางค์ (สะ-หะ-กอน) โรงพยาบาล มี๔ พยางค์ (โรง-พะ-ยา-บาน) นักศึกษาผู้ใหญ่ มี๕ พยางค์ (นัก-สึก-สา-ผู้-ใหญ่) สหกรณ์การเกษตร มี๖ พยางค์ (สะ-หะ-กอน-การ-กะ-เสด) จากตัวอย่างข้างบนนี้สรุปได้ว่า พยางค์ คือ เสียงที่เปล่งออกมาครั้งหนึ่ง จะมีความหมายหรือไม่มีความหมายก็ตาม ถ้าเปล่ง เสียงออกมา ๑ ครั้ง ก็เรียก ๑ พยางค์ สองครั้งก็เรียก ๒ พยางค์ องค์ประกอบของพยางค์ พยางค์เกิดจากการเปล่งเสียงพยัญชนะ สระ และวรรณยุกต์ออกมาพร้อม ๆ กัน พยางค์ที่มี ความหมายอาจจะเป็นพยา...

How to Download and Install SQL Server

  Pre-Requisites Principally, MS SQL server requires: .Net Framework,1GB of recommended memory, and NTFS system. How to download SQL Server Setup Step 1)  Go to URL :   https://www.microsoft.com/en-in/sql-server/sql-server-downloads Microsoft provides  two specialized free editions  to work on MS SQL server: Developer  – It has all feature which MS SQL server offers but we cannot use it in production. From the learning perspective, is it an ideal candidate to start. Express : This is also a free version but with the limited set of features with no business intelligence applications. We will select the  Developer edition  for installation. Step 2)  Click on  "Download now" We will get set up as  'SQLServer2017-SSEI-Dev.exe'. How to Install SQL Server Step 1)  Double click on  "SQLServer2017-SSEI-Dev.exe".  Below screen will appear with three options: Basic, Custom and Download files. Step 2)  Choose the basic vers...

គាថាធម្មបទ៖ បកិណ្ណកវគ្គ

  ២១ .  បកិណ្ណកវគ្គ ២៩០ .              មត្តាសុខបរិច្ចាគា   ,                    បស្សេ ចេ វិបុលំ សុខំ ; ចជេ មត្តាសុខំ ធីរោ ,                  សម្បស្សំ វិបុលំ សុខំ។ បើឃើញសេចក្ដីសុខដ៏ធំទូលាយ   ព្រោះលះបង់សុខល្មមប្រមាណ   អ្នកមានប្រាជ្ញា   កាល ​ ឃើញ ​ សុខ ​ ធំទូលាយ   គប្បីលះសុខល្មមប្រមាណចេញ។ ២៩១ .              បរទុក្ខូបធានេន ,                       យោ អត្តនោ សុខមិច្ឆតិ ; វេរសំសគ្គសំសដ្ឋោ ,                   វេរា សោ ន បរិមុច្ចតិ។ ជនប្រាថ្នាសេចក្ដីសុខ   ដ...