Yuav ua li cas Siv Net Siv Cov Lus txib hauv Windows

Cov txheej txheem:

Yuav ua li cas Siv Net Siv Cov Lus txib hauv Windows
Yuav ua li cas Siv Net Siv Cov Lus txib hauv Windows
Anonim

Cov lus txib siv net yog Command Prompt hais kom siv los txuas rau, tshem tawm, thiab teeb tsa kev sib txuas rau cov peev txheej sib koom, xws li mapped drives thiab network printers.

Nws yog ib qho ntawm ntau cov lus txib xws li net xa, net sijhawm, net neeg siv, net saib, thiab lwm yam.

Net Use Command Availability

Cov lus txib no muaj nyob hauv qhov Command Prompt hauv Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, thiab Windows XP, thiab hauv cov laus ntawm Windows thiab hauv Windows Server operating systems.

Image
Image

Rov qab Console, kev kho offline hauv Windows XP, kuj suav nrog cov lus txib siv, tab sis nws tsis tuaj yeem siv nws hauv lub cuab yeej.

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

Net Siv Command Syntax

Cov lus txib no siv cov lus qhia dav dav hauv qab no:

net use [{ devicename | }] [ computername sharename [ ntim] [{ password | }] [ /user:[domainname ] username] [ /user:[dotteddomainname ] username] [ /user:[username @dotteddomainname] [ /home { lub npe khoom | } [{ password | }] [ /persistent: { yes | no }] [ /smartcard] [ /savecred] [ /delete] [ /help] [ /?

Saib xyuas yuav ua li cas nyeem cov lus txib yog tias koj tsis paub meej yuav txhais li cas net siv cov lus txib raws li nws tau qhia saum toj no lossis piav qhia hauv cov lus hauv qab no.

Net Siv cov kev xaiv xaiv
Option piav qhia
net use Ua cov lus txib siv net ib leeg los qhia cov ncauj lus kom ntxaws txog tam sim no mapped drives thiab cov khoom siv.
devicename Siv qhov kev xaiv no los qhia cov ntawv tsav tsheb lossis lub tshuab luam ntawv chaw nres nkoj uas koj xav tau los qhia cov peev txheej network rau. Rau ib daim nplaub tshev sib koom hauv lub network, qhia ib tsab ntawv tsav los ntawm D: txog Z:, thiab rau lub tshuab luam ntawv sib koom, LPT1: txog LPT3:. Siv es tsis txhob qhia lub npe ntaus ntawv kom tau txais daim ntawv tsav tsheb tom ntej, pib nrog Z: thiab rov qab mus, rau daim ntawv qhia tsav.
computername sharename Qhov no qhia lub npe ntawm lub khoos phis tawj, lub npe computer, thiab cov peev txheej sib koom, sharename, zoo li daim nplaub tshev sib koom lossis lub tshuab luam ntawv sib koom txuas nrog lub npe computer. Yog tias muaj qhov chaw nyob qhov twg ntawm no, nco ntsoov muab tag nrho txoj hauv kev, slashes suav nrog, hauv nqe lus.
volume Siv qhov kev xaiv no los qhia qhov ntim thaum txuas mus rau NetWare server. Client Service rau NetWare lossis Gateway Service rau Netware yuav tsum tau nruab.
password Nov yog lo lus zais uas xav tau los nkag rau cov peev txheej sib koom ntawm lub npe computer. Koj tuaj yeem xaiv nkag mus rau tus password thaum lub sijhawm ua tiav ntawm net siv cov lus txib los ntawm kev ntaushloov tus password tiag tiag.
/user Siv qhov kev xaiv net no los qhia tus neeg siv lub npe los txuas rau cov peev txheej nrog. Yog tias koj tsis siv /user, kev siv net yuav sim txuas mus rau lub network sib koom lossis lub tshuab luam ntawv nrog koj lub npe siv tam sim no.
domainname Thov qhia qhov sib txawv dua li qhov koj nyob, piv txwv tias koj nyob ntawm ib qho, nrog rau qhov kev xaiv no. Hla domainname yog tias koj tsis nyob ntawm tus sau lossis koj xav siv net siv tus uas koj twb tau nyob.
username Siv qhov kev xaiv no nrog /user txhawm rau qhia tus neeg siv lub npe siv los txuas rau cov peev txheej sib koom.
dotteddomainname qhov kev xaiv no qhia meej lub npe tsim nyog uas muaj npe siv nyob qhov twg.
/home Qhov kev xaiv siv net no qhia tus neeg siv tam sim no cov npe hauv tsev mus rau cov ntawv tsav lub npe lossis tsab ntawv tsav tsheb tom ntej nrog .
/persistent: { yes | no} Siv qhov kev xaiv no los tswj kev pheej hmoo ntawm kev sib txuas tsim nrog cov lus txib siv net. Xaiv yog kom rov qab tsim cov kev sib txuas ntawm tus ID nkag mus tom ntej lossis xaiv no txhawm rau txwv lub neej ntawm kev sib txuas rau qhov kev sib tham no. Koj tuaj yeem txo qhov kev hloov no mus rau /p yog tias koj nyiam.
/smartcard Qhov kev hloov no qhia txog kev siv net kom siv cov ntaub ntawv pov thawj tam sim no ntawm daim npav ntse muaj.
/savecred Qhov kev xaiv no khaws tus password thiab user cov ntaub ntawv siv rau lwm zaus koj txuas rau hauv qhov kev sib tham no lossis hauv txhua qhov kev sib tham yav tom ntej thaum siv nrog / pheej: yog.
/delete Qhov kev siv net no yog siv los tshem tawm kev sib txuas hauv network. Siv /delete nrog lub npe ntaus ntawv kom tshem tawm qhov kev sib txuas tshwj xeeb lossis nrog txhawm rau tshem tawm tag nrho cov duab kos thiab cov khoom siv. Qhov kev xaiv no tuaj yeem raug luv rau /d.
Siv qhov kev xaiv no, lossis luv luv /h, los tso saib cov ntaub ntawv ntxaws ntxaws rau kev siv net. Kev siv qhov hloov pauv no zoo ib yam li kev siv net pab hais kom ua nrog kev siv net: net pab siv.
/? Tus qauv kev pab hloov kuj ua haujlwm nrog cov lus txib siv net tab sis tsuas yog qhia cov lus hais kom ua, tsis muaj cov ncauj lus kom ntxaws txog cov lus txib xaiv.

Txuag cov zis ntawm kev siv net rau cov ntaub ntawv siv tus neeg teb xov tooj rov qab. Yog tias koj tsis paub txog qhov kev ua haujlwm no, tshuaj xyuas yuav ua li cas hloov pauv cov lus txib tawm mus rau cov ntaub ntawv rau kev taw qhia.

Net Siv Cov Piv Txwv

Ua raws li yog ob peb txoj hauv kev uas koj tuaj yeem siv cov lus txib no:

Tsev daim ntawv qhia ib ntus


net use"\\server\my media" /persistent:no

Hauv qhov piv txwv no, peb tau siv net siv cov lus txib los txuas rau kuv cov ntaub ntawv tshaj tawm sib koom ntawm lub khoos phis tawj hu ua server. Kuv cov ntaub ntawv xov xwm yuav raug mapped rau lub siab tshaj plaws muaj ntawv tsav , uas hauv peb qhov piv txwv tshwm sim yog y:, tab sis peb tsis xav txuas ntxiv daim ntawv qhia tsav no txhua zaus peb nkag mus rau hauv lub computer [ /persistent:no].

Permanent Mapped Drive


net use e: \\usrsvr002\smithmark Ue345Ii /user:pdc01\msmith2 /savecred /p:yes

Cov saum toj no yog ib qho piv txwv nyuaj me ntsis uas koj yuav pom hauv qhov chaw lag luam.

Nyob rau hauv qhov piv txwv siv net, peb xav qhia peb e: tsav mus rau smithmark share folder ntawm usrsvr002. Peb xav txuas ua lwm tus neeg siv nyiaj peb muaj [ /user] los ntawm lub npe ntawm mssmith2 uas tau khaws cia rau ntawm pdc01 sau nrog tus password ntawm Ue345Ii. Peb tsis xav kom daim ntawv qhia tsav no manually txhua zaus peb pib lub computer [ /p: yog], thiab peb tsis xav sau tus username thiab password txhua zaus [ /savecred].

Lus tag nrho cov peev txheej sib koom


net use

Hauv qhov piv txwv yooj yim no ntawm kev siv net, peb tau txais ib daim ntawv teev tag nrho cov kev sib koom siv tam sim no nyob rau hauv tus neeg siv tus account uas tam sim no nkag rau hauv. Hauv peb qhov piv txwv, qhov tshwm sim hauv Command Prompt qhia "Z: / \server\shared folder\" txij li z: yog daim ntawv tsav uas txuas mus rau cov folders sib koom ntawm server.

Cov lus "Tsis muaj kev nkag rau hauv daim ntawv teev npe no." yuav qhia yog tias tsis muaj kev sib txuas tam sim no tau teeb tsa.

Unmap a Drive


net use p: /delete

Ib qho piv txwv kawg uas tsim nyog ntawm kev siv net yog kev tshem tawm [ /delete] ntawm tus tsav tam sim no, qhov no, p:.

Pom zoo: