TAILIEUCHUNG - Windows Admin Scripting Little Black Book- P12

Windows Admin Scripting Little Black Book- P12: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 | Currently there is no Microsoft method to set share permissions from the command line. However you can use the resource kit utility to copy permissions from one share to another. To use to copy permissions from one share to another start a command prompt and enter the following PERMCOPY source sname destination dname Here source is the computer containing the share sname with proper permissions and destination is the computer containing the share dname to copy permissions to. Tip Supplying both the source and destination with the local computer name will copy permissions from one local share to another. Warning Do not use to copy permissions on administrative shares for example C . This will cause to crash. Creating Shares with Permissions Currently there is no Microsoft method to create shares with permissions from the command line. is a resource kit utility to create shares with permissions on remote stations. You can provide this utility with the local computer name to create shares with permissions on the local station. To use to create shares with permissions start a command prompt and enter the following RMTSHARE computer name path GRANT guser permission REMOVE ruser Note The code above must be placed on one line. Here computer is the computer name to create the share on name is the name of the share path is the path to create the share to guser is the username to grant permissions to and ruser is the username to deny share access to. Tip also supports the same switches as the NET SHARE command. Calling System Events In Chapter 4 you learned how to call system events for example shutdown restart using DLL calls. In this section you will learn how to call these events without using DLL calls. Shutting Down Restarting the Computer The resource kit utility allows you to shut down or restart Windows. The basic syntax of the SHUTDOWN command is SHUTDOWN .

Đã 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.