Book description
Focusing on scripting for the administrator, this guide helps you understand important scripting concepts and technologies, and it shows how to use common scripting tools and techniques to complete routine tasks in core administrative areas.
Table of contents
- Copyright
- Introduction
-
I. Scripting Concepts and Technologies for System Administration
- 1. Introduction to Windows Script Technologies
-
2. VBScript Primer
- VBScript Overview
- VBScript Reference
-
3. WSH Primer
- WSH Overview
- WSH Architecture
- Running WSH Scripts
-
WSH Objects
- WScript Object
- WshShell Object
- WshNetwork Object
- WshController Object
- Securing Scripts
-
4. Script Runtime Primer
- Script Runtime Overview
- FileSystemObject
- Dictionary Object
-
5. ADSI Scripting Primer
- ADSI Overview
- ADSI Scripting Fundamentals
-
Advanced ADSI Scripting Operations
-
Administering Multivalued Attributes
-
Modifying Multivalued Attributes
- Restrictions in performing modifications by using the PutEx method
- Clearing multivalued and single-valued attributes with the PutEx method
- Updating a Multivalued Attribute of a Group
- Appending an Entry to a Multivalued Attribute of a Group
- Deleting an Entry from a Multivalued Attribute of a Group
- Clearing a Multivalued Attribute of a Group
- Updating Multivalued Attributes of a User Account
- Reading Multivalued Attributes
-
Modifying Multivalued Attributes
- Data Caching
- Copying, Moving, and Renaming Objects
-
Searching
-
Searching Active Directory
- Creating a Simple Search Script
- Scripting the Attributes to Be Returned by the Search
- Limiting a Search to a Specific Type of Object
- Specifying the Global Catalog in the Search Base
- Using Referral Chasing to Expand the Result Set
- Controlling the Scope of a Search
- Sorting the Results of a Search
- Retrieving Multivalued Attributes from a Search
- Using Range Limits When Retrieving Multivalued Attributes
- Optimizing Search Performance
- Performing an Administrative Task Using a Result Set
-
Searching Active Directory
- Enumerating Active Directory Objects in Containers
- Root Directory Service Entry
-
Administering Multivalued Attributes
- Active Directory Architecture
- ADSI Architecture
-
6. WMI Scripting Primer
- WMI Overview
- WMI Architecture
- Common Information Model
- WMI Scripting Library
-
Writing WMI Scripts
- Connecting to WMI Using the WMI Moniker
-
Retrieving Managed Resources Using WMI Query Language
- Returning All Properties of All Instances of a Class
- Returning Selected Properties of All Instances of a Class
- Returning All Properties of Selected Instances of a Class
- Creating Targeted Queries Using AND or OR
- Returning Selected Properties of Selected Instances of a Class
- Creating Faster Queries by Using a Forward-only Enumerator
- Working with Dates and Times
- Creating Scripts Based on WMI Templates
-
Monitoring Resources by Using WMI Event Notifications
- Three Steps in a WMI Monitoring Script
- How WMI Event Notification Works
-
Enhanced WMI Monitoring Scripts
- Targeting a Particular Resource
- Handling More than One Event
- Handling More than One Type of Event
- Monitoring More than One Type of Managed Resource
- Monitoring Events by Using a Permanent Event Subscription
- The __EventFilter Class
- The Prebuilt __EventConsumer Classes
- The __FilterToConsumerBinding Class
-
II. Scripting Solutions for System Administration
-
7. Active Directory Users
- User Account Overview
- Active Directory User Accounts
- Creating User Accounts
- Managing User Accounts
- Deleting User Accounts
-
Searching Active Directory for User Accounts
- Searching for an Attribute in a Container
- Limiting a Search for an Attribute in a Container to User Account Types
- Searching for a User Account Attribute in a Container and Its Subcontainers
- Verifying That an Attribute Is Unique in the Forest
- Searching for Empty Attribute Values
- Using Wildcards in Search Filters
- Searching for Multivalued Attributes
- Sorting the Result Set
- Modifying Multiple User Accounts by Using the Result Set from a Search
- Managing User Accounts by Enumeration
-
8. Computer Assets
- Computer Assets Overview
- Managing Operating Systems
- Managing WMI Settings
- Managing Software
- Managing Computer States
-
9. Computer Roles
- Computer Roles Overview
- Managing Computer Accounts
- Managing Computer Roles
- 10. Disks and File Systems
-
11. Files and Folders
- Files and Folders Overview
- Folders and Folder Objects
- Files and File Objects
- Monitoring the File System
- Managing Shared Folders
- 12. Logs
-
13. Printing
- Printing Overview
- Monitoring Printers, Print Queues, and Print Jobs
- Managing Printer Operations, Print Queues, and Print Jobs
- Configuring Printers and Print Jobs
- Managing Printer Connections on Client Computers
- Searching for Printers in Active Directory
- 14. Processes
- 15. Services
-
16. Registry
- Registry Overview
- Managing the Registry
- Monitoring the Registry
-
7. Active Directory Users
-
III. Scripting for the Enterprise
-
17. Creating Enterprise Scripts
- Enterprise Scripts Overview
- Retrieving Arguments
- Displaying Output
- Working with Databases
- Masking Passwords
- Sending E-Mail
- Tracking Script Progress
- Managing Scheduled Tasks
- 18. Scripting Guidelines
-
17. Creating Enterprise Scripts
- System Requirements
- Faucet-Handle Puller
Product information
- Title: Microsoft® Windows® 2000 Scripting Guide
- Author(s):
- Release date: December 2002
- Publisher(s): Microsoft Press
- ISBN: 9780735618671
You might also like
book
CLR via C#, Fourth Edition
Dig deep and master the intricacies of the common language runtime, C#, and .NET development. Led …
book
Building Microservices, 2nd Edition
As organizations shift from monolithic applications to smaller, self-contained microservices, distributed systems have become more fine-grained. …
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Problem Solving, 2nd Edition
The way that we assess and overcome problems is an essential part of everyday life. Problem …