VBScript, WMI, and ADSI Unleashed: Using VBScript, WMI, and ADSI to Automate Windows Administration, 2/e

Don Jones

  • 出版商: SAMS
  • 出版日期: 2007-07-01
  • 售價: $2,170
  • 貴賓價: 9.5$2,062
  • 語言: 英文
  • 頁數: 576
  • 裝訂: Paperback
  • ISBN: 0321501713
  • ISBN-13: 9780321501714
  • 已絕版

買這商品的人也買了...

相關主題

商品描述

Description

 

If you’re a Windows administrator, scripting expertise can liberate you from boring, repetitive work–so you can take on the sophisticated, high-value projects you really want. Top scripting guru Don Jones has written the definitive administrator’s guide to getting results with Microsoft’s key scripting technologies: VBScript, WMI, and ADSI.

 

Jones draws on his unsurpassed experience training Windows administrators in conferences, classes, and from his enormously popular site, ScriptingAnswers.com.

 

You’ll learn how to use VBScript, WMI, and ADSI to gain administrative control over nearly every aspect of every recent Windows server or client, including Windows Server 2003, Vista, XP, 2000, and NT. As you gain experience, Jones introduces more advanced techniques, ranging from modular scripting and script encryption to integrating VBScript with HTML code.

 

Jones concludes with a full section of ready-to-run, real-world examples–from logon/logoff scripts to automated domain and network administration, from querying WMI to creating Active Directory groups. Every script is explained line-by-line, with challenging techniques described in even greater detail.

 

Detailed information on how to…

 

  • Decide what you can script: a framework for getting started fast
  • Understand how scripts are designed, assembled, and run
  • Master VBScript from start to finish: functions, I/O, data manipulation, program flow, and much more
  • Use scripting objects for tasks ranging from retrieving network information to mapping drives
  • Utilize FileSystemObject to manipulate the Windows filesystem
  • Write ADSI scripts to manipulate any directory service your company uses, from Active Directory to Novell NDS
  • Modify domain information, users, groups, and policies
  • Query WMI information–from basic to advanced
  • Plan for errors, and test and debug your scripts
  • Build your own “resource kit” of reusable script components

Table of Contents

 

Introduction 1

 

Part I: Introduction to Windows Administrative Scripting 11

Chapter 1: Scripting Concepts and Terminology 13

Chapter 2: Running Scripts 21

Chapter 3: The Components of a Script 39

Chapter 4: Designing a Script 55

 

Part II: VBScript Tutorial 73

Chapter 5: Functions, Objects, Variables, and More 75

Chapter 6: Input and Output 101

Chapter 7: Manipulating Numbers 115

Chapter 8: Manipulating Strings 129

Chapter 9: Manipulating Other Types of Data 145

Chapter 10: Controlling the Flow of Execution 155

Chapter 11: Built-In Scripting Objects 173

Chapter 12: Working with the File System 193

Chapter 13: Putting It All Together: Creating Your First Script from Scratch 219

 

Part III: Windows Management Instrumentation and Active Directory Services Interface 245

Chapter 14: Working with ADSI Providers 247

Chapter 15: Manipulating Domains 257

Chapter 16: Manipulating Users and Groups 271

Chapter 17: Understanding WMI 283

Chapter 18: Querying Basic WMI Information 299

Chapter 19: Querying Complex WMI Information 317

Chapter 20: Putting It All Together: Your First WMI/ADSI Script 335

Chapter 21: Testing and Debugging WMI and ADSI Queries 357

 

Part IV: Advanced Scripting Techniques 371

Chapter 22: Modular Script Programming 373

Chapter 23: Scripts Packaging and Protection 389

Chapter 24: Scripting Security 399

Chapter 25: Introduction to HTML Applications 409

Chapter 26: Debugging Tips, Tools, and Techniques 421

 

Part V: Ready-to-Run Examples 437

Chapter 27: Logon and Logoff Scripts 439

Chapter 28: Windows and Domain Administration Scripts 455

Chapter 29: Network Administration Scripts 481

Chapter 30: WMI and ADSI Scripts 497

 

Appendix 509

Index 523

商品描述(中文翻譯)

描述

如果您是 Windows 管理員,擁有腳本編寫專業知識可以讓您擺脫無聊且重複的工作,讓您能夠專注於真正想要的複雜且高價值的專案。頂尖的腳本專家 Don Jones 撰寫了這本權威的管理員指南,幫助您使用 Microsoft 的關鍵腳本技術:VBScript、WMI 和 ADSI 來獲得成果。

Jones 利用他在會議、課程中培訓 Windows 管理員的無與倫比的經驗,以及他極受歡迎的網站 ScriptingAnswers.com。

您將學會如何使用 VBScript、WMI 和 ADSI 獲得對幾乎所有近期 Windows 伺服器或客戶端的管理控制,包括 Windows Server 2003、Vista、XP、2000 和 NT。隨著經驗的增長,Jones 會介紹更高級的技術,從模組化腳本和腳本加密到將 VBScript 與 HTML 代碼整合。

Jones 最後提供了一整個部分的即用型真實範例,從登錄/登出腳本到自動化的域和網路管理,從查詢 WMI 到創建 Active Directory 群組。每個腳本都逐行解釋,挑戰性的技術則更詳細地描述。

詳細資訊包括如何……

- 決定您可以編寫什麼腳本:快速入門的框架
- 理解腳本的設計、組裝和執行方式
- 從頭到尾掌握 VBScript:函數、I/O、數據操作、程式流程等
- 使用腳本物件執行從檢索網路資訊到映射磁碟的任務
- 利用 FileSystemObject 操作 Windows 檔案系統
- 編寫 ADSI 腳本以操作您公司使用的任何目錄服務,從 Active Directory 到 Novell NDS
- 修改域資訊、用戶、群組和政策
- 查詢 WMI 資訊——從基本到高級
- 為錯誤做計劃,測試和除錯您的腳本
- 建立您自己的“資源包”,包含可重用的腳本元件

目錄

引言 1

第一部分:Windows 管理腳本介紹 11

第 1 章:腳本概念與術語 13