This book will give network administrators the knowledge and tools to develop time-saving scripts that will automate time-consuming tasks. They will also get the inside scoop on the new features found in the newest Script Host version, WSH 5.6. Readers will not find this new material on 5.6 in current WSH books.
(NOTE: Each chapter concludes with a Summary.)
1. Introduction to Scripting.
What Is Scripting? Scripting Languages in Depth. Various Types of Script Files. Script Host Environments. What Is Windows Script Host?
Grouping Script Switches. Script Self-Documenting. Sharing the Environment. Accessing Standard Streams Programmatically. Spawned Processes in WSH 5.6. Accessing Command-Line named Arguments. WshNamed Objects. Remote Scripting. WshRemote Object. Execute Method. Accessing Active Directory Information with the CurrentDirectory _Property. Scripting Security.
Tools for Creating Scripts. Creating Reusable Scripts. Linking Scripts. The WSH Object Model.
.wsf File Support. Drag-and-Drop Support in Files. Set Script Properties. Running Script Files from CScript.exe and WScript.exe.
Accessing the File System with Malicious Code. Accessing Registries with Malicious Code. Scripting with the CryptoAPI Tools. Securing Scripts with Signing. Using Certificates to Sign Scripts. Establishing Trusts Within Scripts.
The Active Directory Service Interfaces (ADSI).
ADSI Objects. Namespaces. ADSI Providers. ADSI Schema Model. Programming Language Support.
Binding to ADSI Objects.
ADSI Properties and Attributes. Working with ADSI Objects and Their Properties. Property Cache. Single and Multiple Value Attributes. IADs and IDirectoryObject Interface. Accessing Attributes. Modifying Attributes. Accessing the Property Cache Directly with the IADsProperty _Interfaces. ADSI Attribute Syntax. Collections and Groups.
Query Scope. Query Depth. Working with Large Resultsets. Searches. Dialects Used for Searching Active Directory. Processing Resultsets.
Authentication. Access Control. Creating a Security Descriptor Object. Enumerating ACLs on an ADSI Object.
The .NET Common Language Runtime. Languages in .NET.
Objects. Properties. Methods. Events. XML Elements.
Data Types. Constants. ADSI Error Codes.