TAILIEUCHUNG - Windows Admin Scripting Little Black Book- P15

Windows Admin Scripting Little Black Book- P15:This book may not be duplicated in any way without the express written consent of the publisher, except in the form of brief excerpts or quotations for the purposes of review. The information contained herein is for the personal use of the reader and may not be incorporated in any commercial programs, other books, databases, or any kind of software without written consent of the publisher. Making copies of this book or any portion for any purpose other than your own is a violation of United States copyright laws | A common administrative task is to change the local administrator password on a system. To change the local administrator password using ADSI proceed as follows 1. Create a new directory to store all files included in this example. 2. Download and install the latest version of ADSI and Windows Script Host from to the new directory. 3. Select Start Run and enter cscript . Here scriptfile is the full path and file name of a script file that contains the following On Error Resume Next Set DomObj GetObject WinNT Domain Computer Administrator user pswd Note The highlighted code above must be placed on one line. Here domain is the name of the domain computer is the computer containing the local administrator account Administrator is the name of the local administrator account and pswd is the new password to assign. Creating a User Account To create a user account using ADSI proceed as follows 1. Create a new directory to store all files included in this example. 2. Download and install the latest version of ADSI and Windows Script Host from to the new directory. 3. Select Start Run and enter cscript . Here scriptfile is the full path and file name of a script file that contains the following On Error Resume Next Set DomObj GetObject WinNT Domain Set User User Name pswd fullname homedir profiledir script describe Here domain is the name of the domain name is the name of the user account to create pswd is the password to assign to the new account fullname is the user s full name homedir is the path of the user s home directory profiledir is the path of the user s profile script is the name of the logon script and describe is the user description. Tip You can create new users with initial blank passwords by omitting the highlighted line in the script above. Deleting a

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.