Windows Admin Scripting Little Black Book- P21

Windows Admin Scripting Little Black Book- P21: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 | 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 Dim Name 2 Name 0 emailaddress1 Name l emailaddress2 Dim File 2 File 0 file1 File 1 file2 SUB subject MSG message Set Outlook CreateObject Set MAPI MAPI Set NewMail 0 SUB MSG For X 0 to UBound Name -l Name X Next For X 0 to UBound File -1 file X Next MAPI. Logon profile password Here name is the array that holds the email addresses to email file is the array that holds the file names to attach to the message SUB is the email subject MSG is the message to send and profile and password are the logon credentials to send the email. Tip You can omit the highlighted lines above if you do not need to log on to a mail server or if your information is cached. Chapter 12 Logon Scripts In Brief A logon script is a script that runs automatically each time a user logs on to the network. This script can contain various commands or programs that process on the local station such as mapping printers or updating the local system time. In this chapter you will learn how to create logon scripts to easily standardize and update your environment automatically. Tip Although this chapter discusses tasks specifically geared toward logon scripts you can use any of the scripts within this book in a logon script. Common Logon Script Tasks The difference between a regular script and a logon script is that a logon script performs its functions when the user logs on. Logon scripts are not limited in functionality but actually contain the same functionality as any other script. Although logon scripts can perform many different tasks several tasks are commonly performed in logon scripts Synchronize the local time Manage network printers and drives Update drivers or settings

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.