The net Command Prompt hais kom tswj yuav luag txhua yam ntawm lub network thiab nws cov chaw, suav nrog kev sib koom network, network luam tawm haujlwm, thiab cov neeg siv network.
Net Command Availability
Cov lus txib net muaj nyob rau hauv Command Prompt hauv txhua qhov Windows operating systems suav nrog Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, thiab Windows XP.
Qhov muaj ntawm qee qhov kev hloov pauv net thiab lwm yam lus txib net yuav txawv ntawm kev khiav hauj lwm rau kev khiav hauj lwm.
Net Command Syntax
Cov lus txib siv daim ntawv dav dav hauv qab no:
net [ accounts | computer | config | ncig | file | group | pab | helpmsg | localgroup | npe | pause | print | xa | session | share | start | statistics | stop | time | use | user | view
Kawm nyeem yuav ua li cas nyeem cov lus txib syntax yog tias koj tsis paub meej yuav txhais li cas cov lus txib net qhia saum toj no lossis piav qhia hauv qab no.
Net Command Options | |
---|---|
Option | piav qhia |
net | Ua cov lus txib net ib leeg los qhia cov ntaub ntawv hais txog kev siv cov lus txib uas, qhov no, tsuas yog ib daim ntawv teev npe ntawm net subset commands. |
pab nyiaj | Cov lus txib net yog siv los teeb tsa tus password thiab nkag mus rau cov neeg siv khoom. Piv txwv li, net accounts cov lus txib tuaj yeem siv los teeb tsa tus lej tsawg kawg nkaus uas cov neeg siv tuaj yeem teeb lawv tus password rau. Kuj tseem muaj kev txhawb nqa yog lo lus zais tas sijhawm, tsawg kawg ntawm cov hnub ua ntej tus neeg siv tuaj yeem hloov lawv tus password dua, thiab tus lej cim tshwj xeeb suav ua ntej tus neeg siv tuaj yeem siv tib lo lus zais qub. |
Cov lus txib hauv computer yog siv los ntxiv lossis tshem lub khoos phis tawj ntawm lub npe. | |
config | Siv cov net config hais kom qhia cov ntaub ntawv hais txog kev teeb tsa ntawm Server lossis Workstation service. |
Cov lus txib txuas ntxiv yog siv los rov pib qhov kev pabcuam uas tau muab tso tseg los ntawm cov lus txib nres. | |
file | Net cov ntaub ntawv yog siv los qhia cov npe qhib cov ntaub ntawv ntawm lub server. Cov lus txib kuj tseem siv tau los kaw cov ntaub ntawv sib koom thiab tshem tawm cov ntaub ntawv kaw. |
pab | Cov lus txib pab pawg net yog siv los ntxiv, tshem tawm, thiab tswj cov pab pawg thoob ntiaj teb ntawm servers. |
pab pawg | Cov lus txib hauv pawg hauv zos yog siv los ntxiv, tshem tawm, thiab tswj cov pab pawg hauv zos hauv computers. |
Net lub npe yog siv los ntxiv lossis tshem tawm cov lus xa npe ntawm lub computer. net lub npe hais kom ua tau raug tshem tawm ua ke nrog kev tshem tawm net xa pib hauv Windows Vista. Saib net xa cov lus txib kom paub ntau ntxiv. | |
pause | Cov lus txib ncua ncua tso rau tuav lub Windows cov peev txheej lossis kev pabcuam. |
Net luam tawm yog siv los tso saib thiab tswj cov haujlwm luam tawm hauv network. net print hais kom ua tau raug tshem tawm pib hauv Windows 7. Raws li Microsoft, cov dej num ua nrog net print tuaj yeem ua tau hauv Windows 11, 10, 8, Windows 7 siv prnjobs.vbs thiab lwm yam cscript commands, Windows PowerShell cmdlets, lossis Windows Management Instrumentation (WMI). | |
Net xa yog siv los xa cov lus rau lwm tus neeg siv, khoos phis tawj, lossis lub npe net tsim cov npe xa ntawv. net xa cov lus txib tsis muaj nyob rau hauv Windows 11 txog Windows Vista, tab sis cov lus txib msg ua tiav tib yam. | |
Cov lus txib net yog siv los sau lossis txiav cov ntu ntawm lub khoos phis tawj thiab lwm tus hauv lub network. | |
Cov lus qhia net yog siv los tsim, tshem tawm, thiab tswj hwm cov peev txheej sib koom hauv lub computer. | |
pib | Cov lus txib pib pib siv los pib qhov kev pabcuam hauv network lossis sau npe cov kev pabcuam hauv network. |
statistics | Siv cov ntaub ntawv txheeb cais net los qhia cov ntaub ntawv txheeb cais network rau Server lossis Workstation service. |
Cov lus txib nres yog siv los nres kev pabcuam hauv lub network. | |
Lub sijhawm Net tuaj yeem siv los tso saib lub sijhawm tam sim no thiab hnub tim ntawm lwm lub khoos phis tawj ntawm lub network. | |
Cov lus txib siv net yog siv los qhia cov ntaub ntawv hais txog kev sib koom ua ke ntawm lub network uas koj tab tom txuas nrog tam sim no, nrog rau txuas rau cov peev txheej tshiab thiab txiav tawm ntawm cov kev sib txuas. Hauv lwm lo lus, net siv cov lus txib tuaj yeem siv los qhia cov drives sib koom uas koj tau teeb tsa thiab tso cai rau koj los tswj cov duab kos duab. | |
Tus neeg siv cov lus txib yog siv los ntxiv, tshem tawm, thiab tswj hwm cov neeg siv ntawm lub computer. | |
view | Net saib yog siv los qhia cov npe ntawm cov khoos phis tawj thiab cov khoom siv sib txuas hauv lub network. |
helpmsg | Lub net helpmsg yog siv los tso saib cov ntaub ntawv ntau ntxiv txog cov xov tooj ntawm tes koj yuav tau txais thaum siv cov lus txib net. Piv txwv li, thaum ua haujlwm net pab pawg ntawm tus qauv Windows workstation, koj yuav tau txais cov lus pab 3515. Txhawm rau txiav txim siab cov lus no, ntaus net helpmsg 3515 uas qhia tias "Cov lus txib no tuaj yeem siv rau ntawm Windows Domain Controller nkaus xwb." ntawm qhov screen. |
/? | Siv kev pab hloov nrog cov lus txib net los qhia cov ncauj lus kom ntxaws txog cov lus txib ob peb xaiv. |
Txuag rau hauv cov ntaub ntawv txawm li cas los xij netcov lus txib qhia ntawm kev tshuaj ntsuam siv tus neeg teb xov tooj rov qab nrog cov lus txib. Kawm paub yuav ua li cas hloov cov lus txib tso tawm mus rau cov ntaub ntawv lossis saib peb cov npe ntawm cov lus txib kom ua kom yuam kev kom paub ntau ntxiv.
Tsuas yog hauv Windows NT thiab Windows 2000 muaj qhov sib txawv ntawm net hais kom ua thiab net1 cov lus txib. Cov lus txib net1 tau tsim muaj nyob rau hauv ob qhov kev ua haujlwm no ua kev kho ib ntus rau Y2K teeb meem uas cuam tshuam rau net hais kom ua.
Net Command Piv txwv
net view
Nov yog ib qho ntawm cov lus txib yooj yim tshaj plaws uas teev tag nrho cov khoom siv sib txuas.
net share Downloads=Z:\Downloads /GRANT:everyone, FULL
Hauv qhov piv txwv saum toj no, Kuv tab tom sib koom Z:\Downloads nplaub tshev nrog txhua tus neeg hauv lub network thiab muab tag nrho cov ntawv nyeem / sau nkag. Koj tuaj yeem hloov kho qhov no los ntawm kev hloov FULL nrog READ lossis CHANGE rau cov cai nkaus xwb, nrog rau hloov txhua tus neeg siv lub npe tshwj xeeb los muab kev nkag mus rau ib tus neeg siv nkaus xwb.
net accounts /MAXPWAGE:180
Qhov piv txwv no ntawm net accounts txib yuam tus neeg siv tus password kom tas sijhawm tom qab 180 hnub. Tus lej no tuaj yeem nyob qhov twg los ntawm 1 txog 49, 710, lossis UNLIMITED tuaj yeem siv kom tus password tsis tas sijhawm. Default yog 90 hnub.
net stop "print spooler"
Cov piv txwv saum toj no net hais kom ua yog li cas koj yuav tsum nres qhov Kev Pabcuam Luam Ntawv los ntawm kab hais kom ua. Cov kev pabcuam tseem tuaj yeem pib, nres, thiab rov pib dua ntawm Cov Kev Pabcuam graphical cuab yeej hauv Windows (services.msc), tab sis siv cov lus txib nres nres cia koj tswj lawv los ntawm qhov chaw xws li Command Prompt thiab BAT cov ntaub ntawv.
net pib
Ua tiav cov lus txib pib net yam tsis muaj kev xaiv tom qab nws (piv txwv li, net pib "print spooler") yog qhov tseem ceeb yog tias koj xav pom cov npe ntawm cov kev pabcuam tam sim no. Daim ntawv teev npe no tuaj yeem pab tau thaum tswj xyuas cov kev pabcuam vim tias koj tsis tas yuav tawm ntawm kab hais kom pom seb cov kev pabcuam twg khiav haujlwm.
Cov lus txib sib xws
Cov lus txib net yog cov lus txib ntsig txog kev sib txuas thiab yog li feem ntau siv rau kev daws teeb meem lossis kev tswj hwm nrog cov lus txib xws li ping, tracert, ipconfig, netstat, nslookup, thiab lwm yam.