VBScript, WMI and ADSI unleashed : using VBSscript, WMI, and ADSI to automate Windows administration
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 script...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
[Place of publication not identified]
Sams
2007
|
Edición: | 2nd edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009626994506719 |
Tabla de Contenidos:
- Cover
- Contents
- Introduction
- Who Should Read This Book?
- How to Use This Book
- Part I: Introduction to Windows Administrative Scripting
- Part II: VBScript Tutorial
- Part III: Windows Management Instrumentation and Active Directory Services Interface
- Part IV: Advanced Scripting Techniques
- Part V: Ready-to-Run Examples
- Appendix
- Preparing to Use This Book
- Typographical Elements
- Sample Scripts
- Sample Scripts-Explained
- Part I: Introduction to Windows Administrative Scripting
- 1 Scripting Concepts and Terminology
- Overview of Scripting
- Script Hosts
- ActiveX Scripting Languages
- The Component Object Model (COM)
- Critical Scripting Security Issues
- VBScript Versus Windows PowerShell
- Summary
- 2 Running Scripts
- Windows Script Host
- Command-Line Scripts
- Notepad and Script Editors
- Writing Your First Script
- Running Your First Script
- Debugging Your First Script
- Summary
- 3 The Components of a Script
- A Typical VBScript
- Functions
- Subroutines
- Main Script
- Comments and Documentation
- Summary
- 4 Designing a Script
- Creating a Task List
- Selecting the Appropriate Tools
- Creating Modules to Perform Tasks
- Validating User Input
- Planning for Errors
- Creating Script Libraries
- Summary
- Part II: VBScript Tutorial
- 5 Functions, Objects, Variables, and More
- Variables Defined
- Functions Defined
- Statements and Subroutines Defined
- Objects Defined
- Summary
- 6 Input and Output
- Displaying Messages
- Asking for Input
- Command-Line Parameters as Input
- Summary
- 7 Manipulating Numbers
- Numbers in VBScript
- Basic Arithmetic
- Advanced Arithmetic
- Boolean Math
- Converting Numeric Data Types
- Converting Other Data Types to Numeric Data
- Summary
- 8 Manipulating Strings
- Strings in VBScript
- Working with Substrings.
- Concatenating Strings
- Changing Strings
- Formatting Strings
- Converting Other Data Types to String Data
- Summary
- 9 Manipulating Other Types of Data
- Working with Dates and Times
- Working with Arrays
- Working with Bytes
- Summary
- 10 Controlling the Flow of Execution
- Conditional Execution
- Loops
- Putting It All Together
- Summary
- 11 Built-In Scripting Objects
- The WScript Object
- The Network Object
- The ADSystemInfo Object
- The Shell Object
- The Shortcut Object
- Objects in Detail
- Summary
- 12 Working with the File System
- The FileSystemObject Library
- Working with Drives
- Working with Folders
- Working with Files
- Reading and Writing Text Files
- Other FSO Methods and Properties
- Creating a Log File Scanner
- Summary
- 13 Putting It All Together: Creating Your First Script from Scratch
- Designing the Script
- Writing Functions and Subroutines
- Writing the Main Script
- Testing the Script
- Summary
- Part III: Windows Management Instrumentation and Active Directory Services Interface
- 14 Working with ADSI Providers
- Using ADSI Objects
- Using the WinNT Provider
- Using the LDAP Provider
- Other Providers
- Summary
- 15 Manipulating Domains
- Querying Domain Information
- Changing Domain Settings
- Working with OUs
- Putting It All Together
- Summary
- 16 Manipulating Users and Groups
- Creating Users and Groups
- Querying User Information
- Changing User Settings
- Working with Groups
- Putting It All Together
- Summary
- 17 Understanding WMI
- The WMI Hierarchy
- Exploring WMI's Capabilities
- Installing WMI
- Using the WMI Tools
- The Easy Way to Write WMI Scripts
- Summary
- 18 Querying Basic WMI Information
- The WMI Query Language (WQL)
- Determining What to Query
- Testing the Query
- Writing the Query in VBScript
- Using the Query Results.
- Alternative Methods
- Summary
- 19 Querying Complex WMI Information
- Understanding WMI Relationships
- Associating WMI Instances
- Writing the Query
- Testing the Query
- Writing the Query in VBScript
- Another Example
- Summary
- 20 Putting It All Together: Your First WMI/ADSI Script
- Designing the Script
- Writing Functions and Subroutines
- Writing the Main Script
- Testing the Script
- Summary
- 21 Testing and Debugging WMI and ADSI Queries
- Debugging Outside the Script
- Debugging WMI Queries
- Debugging ADSI Queries
- Summary
- Part IV: Advanced Scripting Techniques
- 22 Modular Script Programming
- Looking for Modules
- Introduction to Windows Script Components
- Scripting and XML
- Summary
- 23 Scripts Packaging and Protection
- Installing the Script Encoder
- Writing Encoded Scripts
- Running Encoded Scripts
- Encoding: The Downside
- Script Packaging
- Summary
- 24 Scripting Security
- Why Scripting Can Be Dangerous
- Security Improvements in Windows XP and Windows Server 2003
- Digitally Signing Scripts
- Running Only Signed Scripts
- Ways to Implement Safe Scripting
- Summary
- 25 Introduction to HTML Applications
- Event-Driven Scripting
- How an HTA Is Built
- HTA Differences
- Steps for Writing an HTA
- Summary
- 26 Debugging Tips, Tools, and Techniques
- Types of Bugs
- Preventing Syntax Errors
- Debugging Logic Errors
- Summary
- Part V: Ready-to-Run Examples
- 27 Logon and Logoff Scripts
- NT and Active Directory Logon Scripts
- Active Directory-Specific Logon Scripts
- Active Directory Logoff Scripts
- Summary
- 28 Windows and Domain Administration Scripts
- Automating User Creation
- Finding Inactive Users
- Collecting System Information
- Templates
- Summary
- 29 Network Administration Scripts
- Shutting Down Remote Computers
- Listing Remote Shares.
- Finding Out Who Has a File Open
- Uninstalling Remote MSI Packages
- Listing Hot Fixes and Software
- Summary
- 30 WMI and ADSI Scripts
- The All-Purpose WMI Query Script
- The All-Purpose WMI Update Script
- The All-Purpose ADSI Object Creation Script
- The All-Purpose ADSI Object Query Script
- The All-Purpose ADSI Object Deletion Script
- Mass Password Changes with ADSI
- Updating Service Accounts
- Summary
- Appendix: Administrator's Quick Script Reference
- Index.