Dab tsi yog Qhov Kev Hais Kom Zoo Tshaj Tawm hauv Windows?

Cov txheej txheem:

Dab tsi yog Qhov Kev Hais Kom Zoo Tshaj Tawm hauv Windows?
Dab tsi yog Qhov Kev Hais Kom Zoo Tshaj Tawm hauv Windows?
Anonim

Cov lus txib kaw yog qhov Command Prompt hais kom ua haujlwm tawm, rov pib dua, kaw tawm, lossis hibernates koj lub computer. Tib ib qho tuaj yeem siv los kaw lossis rov pib dua lub khoos phis tawj uas koj nkag mus rau hauv lub network.

Ib txhia txoj kev, nws zoo ib yam li lo lus txib.

Shutdown Command Availability

Image
Image

Cov lus txib kaw yog muaj los ntawm Command Prompt hauv Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, thiab Windows XP operating systems.

Shutdown Command Syntax

Cov lus txib ua raws li cov lus qhia hauv qab no:

shutdown [ /i | /l | /s | /r | /g | /a | /p | /h | /e | /o] [ /hybrid] [ /f] [ /m \\ computername] [ /t xxx] [ /d [ p: | u: ] xx : yy] [/c " comment " ] [/?

Yog tias koj tsis paub yuav ua li cas nyeem cov lus txib, hauv qab no yog ib qho kev sib cais ntawm qhov txhais tau li cas.

Qhov muaj ntawm qee qhov kev hloov pauv thiab lwm yam lus sib txawv yuav txawv ntawm kev khiav haujlwm mus rau qhov kev ua haujlwm.

Shutdown Command Options
/i qhov kev xaiv kaw no qhia tau hais tias qhov chaw taws teeb Shutdown Dialog, cov duab nraaj ntawm cov chaw taws teeb kaw thiab rov pib dua cov yam ntxwv muaj nyob hauv cov lus txib. Lub /i hloov yuav tsum yog thawj qhov hloov pauv tau pom thiab txhua yam kev xaiv yuav raug tsis quav ntsej.
/l qhov kev xaiv no yuav kaw tam sim no tus neeg siv tam sim no ntawm lub tshuab tam sim no. Koj siv tsis tau qhov /l kev xaiv nrog /m kev xaiv los kaw lub khoos phis tawj nyob deb. Lub /d, /t, thiab /c kev xaiv kuj tsis muaj nrog / l.
/s Siv qhov kev xaiv no nrog cov lus txib kaw kom kaw lub zos lossis /m txhais lub computer tej thaj chaw deb.
/r qhov kev xaiv no yuav kaw thiab rov pib lub khoos phis tawj hauv zos lossis lub khoos phis tawj nyob deb tau teev tseg hauv /m.
/g Qhov kev xaiv kaw no ua haujlwm zoo ib yam li /r kev xaiv tab sis tseem yuav rov pib dua txhua daim ntawv thov sau npe tom qab rov pib dua.
Siv qhov kev xaiv no los txwv tsis pub kaw lossis rov pib dua. Nco ntsoov siv qhov kev xaiv /m yog tias koj tab tom npaj yuav tsum txwv tsis pub kaw lossis rov pib dua uas koj tau tua rau lub khoos phis tawj nyob deb.
qhov kev xaiv hais kom ua no yuav tua lub computer hauv zos kom tiav. Siv qhov /p kev xaiv zoo ib yam li kev ua haujlwm shutdown /s /f /t 0. Koj siv tsis tau qhov kev xaiv no nrog /t.
/h Kev ua tiav cov lus txib kaw nrog qhov kev xaiv no tam sim ntawd tso lub khoos phis tawj koj nyob rau hauv hibernation. Koj tsis tuaj yeem siv qhov / h kev xaiv nrog/ m kev xaiv los tso lub khoos phis tawj chaw taws teeb rau hibernation, lossis koj tuaj yeem siv qhov kev xaiv no nrog/t, /d, or /c
/e qhov kev xaiv no tso cai rau cov ntaub ntawv rau qhov kev cia siab kaw tsis tau nyob rau hauv Shutdown Event Tracker.
/o Siv qhov hloov pauv no los xaus qhov kev sib tham Windows tam sim no thiab qhib Advanced Boot Options menu. Qhov kev xaiv no yuav tsum tau siv nrog /r. Lub /o hloov yog pib tshiab hauv Windows 8.
/hybrid qhov kev xaiv no ua rau kev kaw thiab npaj lub computer rau kev pib sai. Lub /hybrid hloov yog pib tshiab hauv Windows 8.
/f Qhov kev xaiv no yuam kom cov kev pabcuam raug kaw yam tsis muaj kev ceeb toom. Tsuas yog nrog cov kev xaiv /l, /p, thiab /h kev xaiv, tsis siv kev kaw lub/f kev xaiv yuav nthuav tawm lus ceeb toom txog qhov tseem tos kaw lossis rov pib dua.
/m \\ computername qhov kev xaiv lus txib no qhia meej lub khoos phis tawj tej thaj chaw deb uas koj xav ua kom kaw lossis rov pib dua.
/txxx Nov yog lub sijhawm, hauv vib nas this, nruab nrab ntawm kev ua tiav ntawm kev kaw lus kaw thiab qhov tseeb kaw lossis rov pib dua. Lub sijhawm tuaj yeem nyob qhov twg los ntawm 0 (tam sim ntawd) txog 315360000 (10 xyoo). Yog tias koj tsis siv qhov kev xaiv /t ces 30 vib nas this yog xav. Qhov /t kev xaiv tsis muaj nrog rau qhov /l, /h, lossis/p xaiv.
/d [ p: | u:] xx :yy Qhov no sau vim li cas rau qhov rov pib dua lossis kaw. Qhov kev xaiv pqhia tias npaj rov pib dua lossis kaw thiab utus neeg siv tau txhais ib qho. Cov kev xaiv xx thiab yy qhia cov laj thawj loj thiab me me rau kev kaw lossis rov pib dua, raws li, ib daim ntawv teev npe uas koj tuaj yeem pom los ntawm kev ua tiav cov lus txib kaw yam tsis muaj kev xaiv. Yog tias tsis yog p lossis u tau txhais, kev kaw lossis rov pib dua yuav raug kaw raws li tsis tau npaj tseg.
/c " comment" qhov kev xaiv hais kom ua no tso cai rau koj tawm lus piav qhia vim li cas rau kev kaw lossis rov pib dua. Koj yuav tsum muaj cov lus hais nyob ib ncig ntawm cov lus pom. Qhov ntev tshaj plaws ntawm cov lus pom yog 512 cim.
/? Siv cov kev pab hloov nrog cov lus txib kaw los qhia cov ncauj lus kom ntxaws txog cov lus txib ob peb xaiv. Kev kaw haujlwm yam tsis muaj kev xaiv tseem qhia txog kev pab rau cov lus txib.

Txhua lub sijhawm Windows raug kaw lossis rov pib ua haujlwm manually, suav nrog los ntawm kev kaw lus kaw, vim li cas, hom kaw, thiab [thaum teev tseg] cov lus tau sau tseg hauv System log hauv Event Viewer. Lim los ntawm USER32 qhov chaw kom pom cov khoom nkag.

Txuag cov lus tso tawm ntawm kev kaw lus mus rau cov ntaub ntawv siv tus neeg siv hloov pauv.

Shutdown Command Piv txwv

Ntawm no yog ob peb yam piv txwv uas qhia yuav ua li cas siv cov lus txib kaw:

Restart and Record Reason


shutdown /r /d p:0:0

Hauv qhov piv txwv saum toj no, cov lus txib kaw rov pib dua lub khoos phis tawj uas tau siv tam sim no thiab sau ib qho laj thawj ntawm Lwm yam (Planned). Qhov rov pib dua yog tsim los ntawm /r, thiab yog vim li cas tau teev nrog /d kev xaiv, nrog p sawv cev tias rov pib dua yog npaj thiab 0: 0 qhia txog "Lwm yam" laj thawj.

Nco ntsoov, cov lej loj thiab me me ntawm lub khoos phis tawj tuaj yeem tso tawm los ntawm kev ua haujlwm shutdown yam tsis muaj kev xaiv thiab xa cov Vim li cas ntawm lub rooj computer no uas tau tshwm sim.

Tau tawm tam sim ntawd


shutdown /l

Siv cov lus txib kaw tau qhia ntawm no, lub khoos phis tawj tam sim no raug kaw tam sim. Tsis muaj lus ceeb toom tshwm.

Shut Down Computer Chaw Taws Teeb


shutdown /s /m \\SERVER /d p:0:0 /c "Planned restart by Tim"

Hauv qhov piv txwv saum toj no kaw, lub khoos phis tawj tej thaj chaw deb hu ua SERVER raug kaw nrog lub laj thawj sau tseg ntawm Lwm yam (Planned). Ib nqe lus tseem raug kaw raws li Kev Npaj rov pib dua los ntawm Tim. Txij li tsis muaj sij hawm raug xaiv nrog / tkev xaiv, kev kaw yuav pib ntawm SERVER 30 vib nas this tom qab ua tiav cov lus txib kaw.

Shut Down Local Computer


shutdown /s /t 0

Qhov kev kaw lus kaw no yog siv los kaw lub khoos phis tawj hauv zos tam sim vim peb tau xaiv lub sijhawm xoom nrog kaw /t xaiv.

Koj tuaj yeem hloov qhov xoom hauv qhov lus txib no tau yooj yim rau 10 kom ncua sijhawm kaw rau ob peb feeb, 60 kom lub khoos phis tawj kaw hauv ib feeb, thiab lwm yam.

Cancel Pending Shutdown


shutdown /a

Thaum kawg, hauv qhov piv txwv kawg no, cov lus txib kaw tau raug tso tseg ua ntej nws tuaj yeem ua tiav. Nws siv rau ib qho kev pib dua lossis kaw lus txib. Tej zaum koj yuav siv nws tshem tawm ib yam dab tsi zoo li lub sij hawm rov pib dua, hais, ob feeb los ntawm tam sim no.

Shutdown Command & Windows 8

Microsoft ua rau nws nyuaj rau kaw Windows 8 dua li lawv tau ua nrog cov qauv qub ntawm Windows, ua rau ntau tus neeg tshawb nrhiav txoj hauv kev kaw los ntawm kev hais kom ua.

Koj tuaj yeem ua tau tiag tiag los ntawm kev ua tiav shutdown /p, tab sis muaj ob peb lwm yam, txawm tias siv tau ntau dua, txoj hauv kev ua li ntawd.

Txhawm rau zam cov lus txib ua ke, koj tuaj yeem nruab ib qhov zoo tshaj plaws pib cov ntawv qhia hloov pauv rau Windows 8 kom nws yooj yim dua kaw thiab rov pib lub computer.

Nrog rov qab ntawm Start Menu hauv Windows 10, Microsoft rov ua kom kaw koj lub computer yooj yim nrog lub hwj chim xaiv.

Pom zoo: