Net Tus Neeg Siv Lus txib (Piv txwv, Options, Hloov, & Ntau)

Cov txheej txheem:

Net Tus Neeg Siv Lus txib (Piv txwv, Options, Hloov, & Ntau)
Net Tus Neeg Siv Lus txib (Piv txwv, Options, Hloov, & Ntau)
Anonim

Tus neeg siv cov lus txib yog siv los ntxiv, tshem tawm, thiab hloov pauv rau cov neeg siv nyiaj hauv computer, tag nrho los ntawm Command Prompt.

Tus neeg siv cov lus txib yog ib qho ntawm ntau cov lus txib.

Koj tuaj yeem siv cov neeg siv net los ntawm cov neeg siv net. Lawv sib pauv tau kiag li.

Image
Image

Net User Command Availability

Cov neeg siv cov lus txib muaj nyob rau hauv Command Prompt hauv feem ntau ntawm Windows suav nrog Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server operating systems, thiab qee qhov qub ntawm Windows, ib yam nkaus..

Qhov muaj ntawm qee tus neeg siv cov lus txib hloov pauv thiab lwm yam net cov neeg siv cov lus txib yuav txawv ntawm kev khiav hauj lwm rau kev ua haujlwm.

Net User Command Syntax

net user [username [password |] [ /add] [Options] [ /domain] [username [/delete ] [/domain ] [/help ] [/?

Saib Yuav Ua Li Cas Nyeem Command Syntax yog tias koj tsis paub meej yuav ua li cas nyeem cov net user command syntax piav saum toj no lossis hauv cov lus hauv qab no.

Net User Command Options
piav qhia
net user Ua cov neeg siv cov lus txib ib leeg los qhia cov npe yooj yim ntawm txhua tus neeg siv nyiaj, nquag siv lossis tsis ua, ntawm lub khoos phis tawj koj tab tom siv tam sim no.
username Nov yog lub npe ntawm tus neeg siv nyiaj, txog li 20 lub cim ntev, uas koj xav hloov pauv, ntxiv, lossis tshem tawm. Siv username uas tsis muaj lwm txoj kev xaiv yuav qhia cov ncauj lus kom ntxaws txog tus neeg siv nyob rau hauv Command Prompt window.
password Siv tus password xaiv los hloov kho tus password uas twb muaj lawm lossis muab ib qho thaum tsim lub npe siv tshiab. Cov cim yam tsawg kawg nkaus uas xav tau tuaj yeem saib tau siv cov lus txib net account. Qhov siab tshaj plaws ntawm 127 cim tau tso cai1.
Koj kuj muaj kev xaiv siv nyob rau hauv qhov chaw ntawm lo lus zais los yuam kom nkag mus rau tus password hauv Command Prompt qhov rai tom qab ua tiav cov neeg siv cov lus txib.
/ ntxiv Siv qhov / ntxiv kev xaiv ntxiv rau tus neeg siv lub npe tshiab ntawm qhov system.
xaiv Saib ntxiv Net Tus Neeg Siv Cov Lus Qhia Ntxiv hauv qab no kom tiav cov npe ntawm cov kev xaiv muaj los siv rau ntawm qhov no thaum ua tiav cov neeg siv net.
/domain Qhov hloov pauv no yuam cov neeg siv net kom ua tiav ntawm tus tswj hwm tam sim no tsis yog lub khoos phis tawj hauv zos.
/delete Tus /delete hloov pauv tshem tawm cov npe siv los ntawm lub kaw lus.
Siv qhov hloov pauv no los tso saib cov ncauj lus kom ntxaws txog tus neeg siv cov lus txib. Kev siv qhov kev xaiv no zoo ib yam li kev siv net pab hais kom ua nrog tus neeg siv net: net pab neeg siv.
/? Tus qauv kev pabcuam kev hloov pauv kuj tseem ua haujlwm nrog cov neeg siv cov lus txib tab sis tsuas yog qhia cov lus txib yooj yim. Executing net user yam tsis muaj kev xaiv yog sib npaug rau kev siv /? hloov.

[1] Windows 98 thiab Windows 95 tsuas yog txhawb cov passwords ntev txog 14 cim. Yog tias koj tab tom tsim ib tus as-qhauj uas yuav raug siv los ntawm lub khoos phis tawj nrog ib qho ntawm cov versions ntawm Windows, xav txog kev khaws tus password ntev nyob rau hauv qhov yuav tsum tau ua rau cov kev khiav haujlwm.

Cov kev xaiv hauv qab no yuav tsum tau siv qhov kev xaiv tau sau tseg hauv tus neeg siv cov lus txib saum toj no:

Ntxiv Net Tus Neeg Siv Cov Lus Qhia Ntxiv
piav qhia
/active: { yes | no} Siv qhov kev hloov no mus rau qhov nquag lossis tsis ua haujlwm rau tus useraccount teev. Yog tias koj tsis siv qhov kev xaiv / nquag, tus neeg siv net xav tias yog.
/comment:" text" Siv qhov kev xaiv no los sau cov lus piav qhia ntawm tus as khauj. Qhov siab tshaj plaws ntawm 48 cim tau tso cai. Cov ntawv sau tau siv qhov / tawm tswv yimhloov tau tuaj yeem pom nyob rau hauv Cov lus piav qhia hauv tus neeg siv qhov profile hauv Cov Neeg Siv thiab Pawg hauv Windows.
/countrycode: nnn Qhov kev hloov no yog siv los teeb tsa lub tebchaws rau tus neeg siv, uas txiav txim siab cov lus siv rau kev ua yuam kev thiab pab cov lus. Yog tsis siv lub /countrycode, lub computer lub teb chaws chaws yog siv: 000.
/expires: { hnub | never} Tus / tas sij hawm hloov pauv yog siv los teeb tsa hnub tshwj xeeb (saib hauv qab) uas tus account, tsis yog tus password, yuav tsum tas sijhawm. Yog hais tias tus / tas sij hawmtsis siv, tsis tau yog xav.
date (nrog /expires xwb) Yog koj xaiv qhia hnub ces nws yuav tsum yog mm / dd / yy lossis mm / dd / yyyy hom, hli thiab hnub ua tus lej, sau tag nrho, lossis sau ua peb tsab ntawv.
/fullname:" npe" Siv tus /fullname hloov los qhia lub npe tiag tiag ntawm tus neeg siv tus username account.
/homedir: kab npe Tsim lub npe nrog rau /homedir hloov yog tias koj xav tau lub tsev teev npe uas tsis yog lub neej ntawd2.
/passwordchg: { yes | no} qhov kev xaiv no qhia meej seb tus neeg siv no puas tuaj yeem hloov nws tus password. Yog tias /passwordchg tsis siv, tus neeg siv net xav tias yog.
/passwordreq: { yes | no} qhov kev xaiv no qhia seb tus neeg siv no puas yuav tsum muaj tus password txhua. Yog tias tsis siv qhov hloov pauv no, yog yog xav.
/logonpasswordchg: { yes | no} Qhov kev hloov no yuam tus neeg siv hloov nws tus password ntawm lub logo tom ntej. Cov neeg siv Net xav tias no yog tias koj tsis siv qhov kev xaiv no. Lub /logonpasswordchg hloov tsis muaj nyob hauv Windows XP.
/profilepath: kab npe qhov kev xaiv no teeb tsa lub npe rau tus neeg siv lub logon profile.
/scriptpath: kab npe qhov kev xaiv no teeb tsa lub npe rau tus neeg siv lub logon tsab ntawv.
/times:[timeframe | tag nrho Siv qhov hloov pauv no los qhia lub sijhawm (saib hauv qab) uas tus neeg siv tuaj yeem nkag mus. Yog tias koj tsis siv /times ces tus neeg siv net xav tias all zaug. Yog tias koj siv qhov hloov pauv no, tab sis tsis qhia lub sijhawm lossis tag nrho, tus neeg siv net xav tias tsis muaj sijhawm thiab tus neeg siv tsis raug tso cai nkag mus.
timeframe (nrog /times nkaus xwb) Yog tias koj xaiv los qhia lub sijhawm koj yuav tsum ua li ntawd hauv ib txoj kev tshwj xeeb. Hnub ntawm lub limtiam yuav tsum tau sau tag nrho lossis luv luv hauv MTWThFSaSu hom ntawv. Lub sijhawm ntawm hnub tuaj yeem ua 24-teev hom, lossis 12-teev hom siv AM thiab PM lossis AM. thiab P. M. Lub sij hawm ntawm lub sij hawm yuav tsum siv dashes, hnub thiab sij hawm yuav tsum tau muab cais los ntawm commas thiab hnub / sij hawm pawg los ntawm semicolons.
/usercomment:" text" Qhov hloov pauv no ntxiv lossis hloov pauv Tus Neeg Siv Cov Lus Qhia rau tus lej teev npe.
/workstations: { computername [, …] | } Siv qhov kev xaiv no los qhia cov npe hostnames txog li yim lub khoos phis tawj uas tus neeg siv tau tso cai nkag mus rau. Qhov kev hloov no tsuas yog siv tau thaum siv nrog /domain Yog tias koj tsis siv /workstations txhawm rau qhia cov khoos phis tawj tso cai ces txhua lub khoos phis tawj () yog assumed.

Koj tuaj yeem khaws cov khoom tso tawm ntawm txhua yam uas tau pom ntawm lub vijtsam tom qab ua haujlwm cov neeg siv cov lus txib los ntawm kev siv tus neeg teb xov tooj rov qab. Saib Yuav Ua Li Cas Redirect Command Output rau Cov Ntaub Ntawv rau cov lus qhia.

[2] Cov npe hauv tsev ua ntej yog C:\Users\ hauv Windows 10, Windows 8, Windows 7, thiab Windows Vista. Nyob rau hauv Windows XP, lub neej ntawd lub tsev directory yog C:\Documents and Settings\. Piv txwv li, yog tias tus neeg siv nyiaj ntawm lub Windows 8 ntsiav tshuaj muaj npe "Tim," lub npe hauv tsev pib tsim thaum tus account yog thawj qhov teeb tsa yog C:\Users\Tim\.

Net User Command Piv txwv

Qhov piv txwv thawj ntawm tus neeg siv net qhia tau hais tias ntawm nws daim ntawv yooj yim tshaj plaws, nws yuav tsim cov npe ntawm txhua tus neeg siv hauv lub computer, zoo li qhov no:

Administrator Amy Andy

Anette Bill Carol

Cole DefaultAccount Grace

Guest Jasmine Jason

Jeff jonfi Joshua

Mark Martha Stacy Susan Tim Tom

Trenton WAGUtilityAccount

Cov lus txib ua tiav tiav.

Lub khoos phis tawj no muaj ntau dua kaum tus neeg siv nyiaj, yog li lawv tau muab cais ua ntau pawg.

net user administrator

Nyob rau hauv qhov piv txwv no tus neeg siv net, cov lus txib tsim tawm tag nrho cov ntsiab lus ntawm tus neeg siv tus account. Nov yog ib qho piv txwv ntawm qhov yuav tshwm sim:

Tus neeg siv lub npe Administrator

Pab Npe

Cov Lus Qhia Built-in account rau kev tswj hwm lub khoos phis tawj / sau npe

Tus neeg siv cov lus pom

Lub tebchaws code 000 (System Default)

Account active No

Account expires Never

Password zaum kawg 1/16/2019 7:43:03 AM

Password expires Never

Password changeable 1/16/2019 7:43:03 AM

Password xav tau Yes

User yuav hloov lo lus zais Yes

Workstations tso cai Txhua tus

Logon script

User profile

Home directory

Log npe kawg 1/16/2019 7:41:15 AM

Logon teev tso cai Txhua tus

Local Group Memberships Administrators HomeUsers Global Group ua tswv cuab None

Raws li koj tuaj yeem pom, tag nrho cov ntsiab lus rau tus thawj tswj hwm tus account ntawm lub khoos phis tawj Windows 7 no tau teev tseg.

net user rodriguezr /times:M-F, 7AM-4PM;Sa, 8AM-12PM

Ntawm no yog ib qho piv txwv uas kuv, xav tias ib tus neeg lav ris rau tus neeg siv nyiaj no [rodriguezr], hloov pauv rau hnub thiab sijhawm [ /times] tias tus account no muaj peev xwm ua tau nkag mus rau Windows: Monday txog Friday [M–F] thaum 7:00 teev sawv ntxov txog 4:00 teev tsaus ntuj [7AM–4PM] thiab Hnub Saturday [Sa] thaum 8:00 teev sawv ntxov txog tav su [8AM–12PM].

net user nadeema r28Wqn90 /add / comment: "Basic user account." /fullname:"Ahmed Nadeem" /logonpasswordchg:yes /workstations:jr7tww, jr2rtw /domain

Peb xav tias peb yuav muab lub dab ntxuav muag pov rau koj nrog qhov piv txwv no. Nov yog hom kev siv net uas koj yuav tsis ua hauv tsev, tab sis koj yuav pom zoo heev hauv tsab ntawv luam tawm rau tus neeg siv tshiab los ntawm IT department hauv ib lub tuam txhab.

Ntawm no, peb tab tom teeb tsa tus neeg siv nyiaj tshiab [ / ntxiv] nrog lub npe nadeema thiab teeb tsa tus password thawj zaug li r28Wqn90. Nov yog tus lej account hauv peb lub tuam txhab, uas peb sau tseg hauv tus account nws tus kheej [ / comment:" Tus neeg siv tus account. "], thiab yog Tus tshiab Human Resources executive, Ahmed [ /fullname:" Ahmed Nadeem "].

Peb xav kom Ahmed hloov nws tus password rau qee yam uas nws yuav tsis hnov qab, yog li peb xav kom nws teeb tsa nws tus kheej thawj zaug nws nkag rau [ /logonpasswordchg:yes]. Tsis tas li, Ahmed tsuas yog yuav tsum nkag mus rau ob lub khoos phis tawj hauv Human Resources office [ /workstations: jr7twwr, jr2rtwb]. Thaum kawg, peb lub tuam txhab siv tus tswj hwm sau npe [ /domain], yog li Ahmed tus account yuav tsum tau teeb tsa rau ntawd.

Raws li koj tuaj yeem pom, tus neeg siv cov lus txib tuaj yeem siv tau ntau dua li cov neeg siv yooj yim ntxiv, hloov pauv, thiab tshem tawm. Peb tau teeb tsa ntau yam ntawm Ahmed tus account tshiab txoj cai los ntawm Command Prompt.

net user nadeema /delete

Tam sim no, peb yuav ua tiav nrog ib qho yooj yim. Ahmed [nadeema] tsis ua haujlwm li HR tus tswv cuab tshiab, yog li nws raug tso tawm thiab nws tus account tshem tawm [ /delete].

Net User Related Commands

Tus neeg siv net command yog subset ntawm net command thiab yog li zoo ib yam li nws tus muam commands xws li net siv, net sij hawm, net xa, net saib, thiab lwm yam.

Pom zoo: