Diễn Đàn » Hỏi Ðáp Tin Học

tạo user trong 2k3

9 trả lời, 1.641 lượt xem — Trang 1 / 1
Cho sweet hỏi có vị nào biết cách tạo user bằng dòng lệnh trong windows sk3, server, ...
Đặc điểm của cách tạo này:
Tạo hàng loạt nhiều user (vd: 3000 user) có quyền truy cập tài nguyên giống nhau, đặc điểm giống nhau,...
sweet xin đa tạ trước [:D]
Bình luận văn học: http://diendan.vnthuquan.net/tt.aspx?forumid=242
New app for Windows Phone 8: Location Reminder
http://diendan.vnthuquan.net/tm.aspx?high=&m=792697&mpage=1#792697
Đăng nhập để trả lời
0
Í ẹ, có người muốn tấn công server của người ta kìa... Hông thèm chỉ ! [:D]
 
Đăng nhập để trả lời
0
Ơ, đào đâu ra cái tên đáng ghét thế này nhỉ?[8D]
Người ta vô tội mà lị. Chắc là tên màu xanh này đã phá server nên mới gắp lửa bỏ tay người thế!
Thôi, cho sweet hỏi thiệt đó, sweet chưa đủ trình độ để tấn công server ai đâu, chỉ có thể tự dựng lên chơi mà thui! Vô hại mà, plz,... ai biết giúp với hén[:D]
Bình luận văn học: http://diendan.vnthuquan.net/tt.aspx?forumid=242
New app for Windows Phone 8: Location Reminder
http://diendan.vnthuquan.net/tm.aspx?high=&m=792697&mpage=1#792697
Đăng nhập để trả lời
0
Hehehe, nói chơi thôi, KDG cũng hông rành đâu. Sweet thử cái command Dsadd.exe coi sao :
 
Dsadd user «CN= Sweet Ca-Chua, OU=Hang Thit, DC=Cho Troi, DC=LAN » -samid SCACHUA –upn=sweet.cachua@vnthuquan.net –fn Sweet –ln CA-CHUA –desc « Lam bieng nhat lop » –pwd 1234567

[:)]
Đăng nhập để trả lời
0
KDG ui, Ghet ko nói cho sweet biết nó tạo ra cái gì thì sao hỉu đc?[:(] đầu óc sweet tăm tối lắm, đọc thấy hình như là ... Ghet tạo cho sweet user sweet trong OU hàng thịt hả, còn DC là gì thì sweet ko bít[&:], còn số user tạo ra thì hình như là 1234567? Ghet giúp người thì giúp tới cùng đi hén, kẻo sweet làm sai, ko sửa lại đc, biết túm áo ai để bắt đền đây hừ! còn chạy ra sao nữa dsadd.exe nằm ở đâu?
Bình luận văn học: http://diendan.vnthuquan.net/tt.aspx?forumid=242
New app for Windows Phone 8: Location Reminder
http://diendan.vnthuquan.net/tm.aspx?high=&m=792697&mpage=1#792697
Đăng nhập để trả lời
0
Nếu Dsadd.exe không nằm trong folder Windows thì chắc là nằm trên cái install CD chớ đâu ! [:)]
 
Sweet khỏ lệnh "dsadd user /?" nó sẽ hiện ra kiểu như :
 
DSADD USER

Description:  Adds a user to the directory.
Syntax:  dsadd user <UserDN> [-samid <SAMName>] [-upn <UPN>] [-fn <FirstName>]
        [-mi <Initial>] [-ln <LastName>] [-display <DisplayName>]
        [-empid <EmployeeID>] [-pwd {<Password> | *}] [-desc <Description>]
        [-memberof <Group ...>] [-office <Office>] [-tel <Phone#>]
        [-email <Email>] [-hometel <HomePhone#>] [-pager <Pager#>]
        [-mobile <CellPhone#>] [-fax <Fax#>] [-iptel <IPPhone#>]
        [-webpg <WebPage>] [-title <Title>] [-dept <Department>]
        [-company <Company>] [-mgr <Manager>] [-hmdir <HomeDir>]
        [-hmdrv <DriveLtr:>] [-profile <ProfilePath>] [-loscr <ScriptPath>]
        [-mustchpwd {yes | no}] [-canchpwd {yes | no}]
        [-reversiblepwd {yes | no}] [-pwdneverexpires {yes | no}]
        [-acctexpires <NumDays>] [-disabled {yes | no}]
        [{-s <Server> | -d <Domain>}] [-u <UserName>]
        [-p {<Password> | *}] [-q] [{-uc | -uco | -uci}]
Parameters:
Value                   Description
<UserDN>                Required. Distinguished name (DN) of user to add.
   If the target object is omitted, it will be taken
   from standard input (stdin).
-samid <SAMName>        Set the SAM account name of user to <SAMName>.
   If not specified, dsadd will attempt
   to create SAM account name using up to
   the first 20 characters from the
   common name (CN) value of <UserDN>.
-upn <UPN>              Set the upn value to <UPN>.
-fn <FirstName>         Set user first name to <FirstName>.
-mi <Initial>           Set user middle initial to <Initial>.
-ln <LastName>          Set user last name to <LastName>.
-display <DisplayName>  Set user display name to <DisplayName>.
-empid <EmployeeID>     Set user employee ID to <EmployeeID>.
-pwd {<Password> | *}   Set user password to <Password>. If *, then you are
                        prompted for a password.
-desc <Description>     Set user description to <Description>.
-memberof <Group ...>   Make user a member of one or more groups <Group ...>
-office <Office>        Set user office location to <Office>.
-tel <Phone#>           Set user telephone# to <Phone#>.
-email <Email>          Set user e-mail address to <Email>.
-hometel <HomePhone#>   Set user home phone# to <HomePhone#>.
-pager <Pager#>         Set user pager# to <Pager#>.
-mobile <CellPhone#>    Set user mobile# to <CellPhone#>.
-fax <Fax#>             Set user fax# to <Fax#>.
-iptel <IPPhone#>       Set user IP phone# to <IPPhone#>.
-webpg <WebPage>        Set user web page URL to <WebPage>.
-title <Title>          Set user title to <Title>.
-dept <Department>      Set user department to <Department>.
-company <Company>      Set user company info to <Company>.
-mgr <Manager>          Set user's manager to <Manager> (format is DN).
-hmdir <HomeDir>        Set user home directory to <HomeDir>. If this is
                        UNC path, then a drive letter that will be mapped to
                        this path must also be specified through -hmdrv.
-hmdrv <DriveLtr:>      Set user home drive letter to <DriveLtr:>
-profile <ProfilePath>  Set user's profile path to <ProfilePath>.
-loscr <ScriptPath>     Set user's logon script path to <ScriptPath>.
-mustchpwd {yes | no}   User must change password at next logon or not.
                        Default: no.
-canchpwd {yes | no}    User can change password or not. This should be
                        "yes" if the -mustchpwd is "yes". Default: yes.
-reversiblepwd {yes | no}
                        Store user password using reversible encryption or
                        not. Default: no.
-pwdneverexpires {yes | no}
                        User password never expires or not. Default: no.
-acctexpires <NumDays>  Set user account to expire in <NumDays> days from
                        today. A value of 0 implies account expires
                        at the end of today; a positive value
                        implies the account expires in the future;
                        a negative value implies the account already expired
                        and sets an expiration date in the past;
                        the string value "never" implies that the
                        account never expires.
-disabled {yes | no}    User account is disabled or not. Default: no.
{-s <Server> | -d <Domain>}
                        -s <Server> connects to the domain controller (DC)
                        with name <Server>.
                        -d <Domain> connects to a DC in domain <Domain>.
                        Default: a DC in the logon domain.
-u <UserName>           Connect as <UserName>. Default: the logged in user.
                        User name can be: user name, domain\user name,
                        or user principal name (UPN).
-p {<Password> | *}     Password for the user <UserName>. If * is entered,
                        then you are prompted for a password.
-q                      Quiet mode: suppress all output to standard output.
{-uc | -uco | -uci} -uc Specifies that input from or output to pipe is
   formatted in Unicode.
   -uco Specifies that output to pipe or file is
   formatted in Unicode.
   -uci Specifies that input from pipe or file is
   formatted in Unicode.
Remarks:
If you do not supply a target object at the command prompt, the target
object is obtained from standard input (stdin). Stdin data can be
accepted from the keyboard, a redirected file, or as piped output from
another command. To mark the end of stdin data from the keyboard or
in a redirected file, use Control+Z, for End of File (EOF).
If a value that you supply contains spaces, use quotation marks
around the text (for example, "CN=John Smith,CN=Users,DC=microsoft,DC=com").
If you enter multiple values, the values must be separated by spaces
(for example, a list of distinguished names).
The special token $username$ (case insensitive) may be used to place the SAM
account name in the value of a parameter. For example, if the target user DN
is CN=Jane Doe,CN=users,CN=microsoft,CN=com and the SAM account name
attribute is "janed," the -hmdir parameter can have
the following substitution:
-hmdir \users\$username$\home
The value of the -hmdir parameter is modified to the following value:
- hmdir \users\janed\home

 
(DC=domain)
[:)]
Đăng nhập để trả lời
0
<Bài viết đã được chỉnh sửa lúc 2008-08-10 05:13:35sweet>
Đa tạ Kẻ đáng Yêu nha vì đây là kẻ duy nhất reply cho sweet![:D]
để vài bữa nửa, sweet tạo bản ghost rùi làm thử, chứ ko dám liều mạng đâu, nhìn cái mớ này ghê qué![8D]
Choáng!
mà KDG ghi tiếng Anh là Ghet ghi hay là máy nó ghi ra Ghet chép lại thế? Nếu Ghet chép lại thì cho sweet hỏi thêm một câu là Ghet chép ở đâu thế (help support ở đâu, hay là gõ gì nó hiện ra?) để sweet tiện xem thêm để khỏi phiền KDG nữa thui í mà.
khỏ lệnh "dsadd user /?" nó sẽ hiện ra kiểu như :

nhưng khỏ là khỏ ở đâu? có phải là ở cmd ko? sweet biết mỗi chỗ này để khỏ à hehe!


Hôm nay sweet mới thử trên cái máy ảo, khỏ dsadd user /? thì nó ra cái giống Ghet viết đó! Nhưng mà cái này nó ko giống cái sweet cần cho lém[:)]. Ý sweet là tạo ra 1 user mẫu có quyền truy cập tài nguyên (chẳng hạn như chỉ vào xem ko sao chép) sau đó tạo ra khoảng 300 user khác giống y hệt, chỉ có khác username và password mà thui à. Có người mô tả sơ sơ cho sweet về vụ này (nhưng người này ko nhớ cách làm chính xác [X(]) là tạo một file text, chép file này vào đâu đó, làm thao tác gì đó cho cái file chạy và tự động có 300 user (?!) file này ko dài lắm (nó chỉ chứa thông tin về quyền truy cập, username và pass thui) cái mà Ghet đưa cho sweet mặc dù rất đầy đủ nhưng hình như ko tạo hàng loạt user đc! cái này là lỗi tại sweet ko mô tả kỹ từ đầu làm Ghet tốn tgian, hehe, xin tạ lỗi[8D]
Bình luận văn học: http://diendan.vnthuquan.net/tt.aspx?forumid=242
New app for Windows Phone 8: Location Reminder
http://diendan.vnthuquan.net/tm.aspx?high=&m=792697&mpage=1#792697
Đăng nhập để trả lời
0
Chả lẽ ko có ai bít cách viêt đoạn script này sao?[X(] Sweet thật sự là vô phương rùi, ko biết cậy ai cả mới bay lên đây cậy mọi người. Bùn ghê![&amp;o]
Bình luận văn học: http://diendan.vnthuquan.net/tt.aspx?forumid=242
New app for Windows Phone 8: Location Reminder
http://diendan.vnthuquan.net/tm.aspx?high=&m=792697&mpage=1#792697
Đăng nhập để trả lời
0
Ai biểu hôm trước sweet hông chịu đăng baì mới muh chỉ sửa baì có sẳn làm chi, KDG hông thấy có bài mới đâu có dzô đọc đâu ! [;)]
 
Muốn tạo hàng loạt user thì sweet viết script, nhưng vẫn phải dùng tới lệnh Dsadd thôi...
 
KDG không rành về script, nhưng tìm cho sweet được 2 cái này nè, chịu khó tham khảo đi hén :
http://www.sd61.bc.ca/windows2000/VBscript.html
http://www.rlmueller.net/CreateUsers.htm
 
Nếu đọc tiếng Anh hông hiểu thì cứ réo KDG, KDG sẽ... gửi link tự điển online cho ! [:D]
 
Đăng nhập để trả lời
0
hehe, sweet cũng nghĩ là mọi người ko thấy bài của sweet nên mới vào đây đăng nhảm nhí dzậy đoá[8D]
Ghet đoán đúng ghê, sweet thấy tiếng Anh là méo xẹo[:-] nhưng đc cái reading thì no problem với sweet, hihi.(sweet chỉ ngại writing thui hehe). Ghet chu đáo dễ... ghét thiệt. cứ ngỡ đọc ko hỉu réo Ghet Ghet dịch dùm chớ hehe. link từ điển thì sweet cũng bít nhìu lắm, cũng đc vài tháng kinh nghiệm làm dịch thuật (A-&gt;V, ngược lại thì miễn[:D])
Dù sao cũng đa tạ Ghet nhìu nhìu lém. Tặng Ghet làm quà nè. --&lt;-------&lt;@ Hoa hồng ko gai đoá, nhìn ra hok? hihi
Để sweet phải từ từ ngâm cứu thêm nữa mới đc
Bình luận văn học: http://diendan.vnthuquan.net/tt.aspx?forumid=242
New app for Windows Phone 8: Location Reminder
http://diendan.vnthuquan.net/tm.aspx?high=&m=792697&mpage=1#792697
Đăng nhập để trả lời
0