TAILIEUCHUNG - Windows Admin Scripting Little Black Book- P13

Windows Admin Scripting Little Black Book- P13: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 | SType InputBox TypeMenu Share Type 0 SMax InputBox Enter the maximum number of users Maximum Users 10 SDescribe InputBox Enter the description of the share Share Description Temp Share SPass InputBox Enter the password to access the share Share Password Temp Password Set Security GetObject winmgmts impersonationLevel impersonate Security Computer root cimv2 Set Share Win32 Share Set Methods Create Create . .Item Description SDescribe .Item MaximumAllowed SMax .Item Name SName .Item Password SPass .Item Path SPath .Item Type SType Set Complete Create Methods Note The highlighted code above must be placed on one line. The Security statement is necessary because this script modifies share access. Related solution Found on page Adding Shares 159 Deleting a Share The Delete method for Win32_Share allows you to delete a share from a manageable system. To delete a share using WMI proceed as follows 1. Create a new directory to store all files included in this example. 2. Download and install the latest version of WMI 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 Computer InputBox Enter the computer name Delete Share localhost SName InputBox Enter the name of the share Delete Share Set Shares GetObject winmgmts impersonationLevel impersonate Computer root cimv2 .ExecQuery select from Win32 Share where Name SName For each Share in Shares Next Note The highlighted code above must be placed on one line. Related solution Found on page Removing Shares 160 Listing Processes The Win32_Process class manages all running processes on a system. These processes include all running applications .

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.