Home > Store > Operating Systems, Server > Microsoft Servers

Win32 Perl Scripting: The Administrator's Handbook

Register your product to gain access to bonus material or receive a coupon.

Win32 Perl Scripting: The Administrator's Handbook


  • Your Price: $31.99
  • List Price: $39.99
  • Usually ships in 24 hours.


  • Copyright 2000
  • Dimensions: 6 X 9
  • Pages: 416
  • Edition: 1st
  • Book
  • ISBN-10: 1-57870-215-1
  • ISBN-13: 978-1-57870-215-2

Scripting has become an enormously popular method of managing and maintaining Windows NT and 2000 networks—as evidenced by the success of Windows NT Shell Scripting, which has sold over 30,000 copies in 2 years. Simpler than programming, yet allowing greater complexity and utility than packaged network management tools, scripting is now the tool of choice by many of you network administrators. Perl is yet another powerful element of the scripting arsenal, yet since it has been ported to the Windows environment, very little information has been published on how to employ this extremely effective tool. Win32 Perl is so powerful that it can accomplish virtually any task that you may want to perform. Dave Roth, prolific creator of Win32 extensions, is prepared to share his unique insight into how these tasks can be accomplished and provide scripts that can be immediately employed. This book illustrates how Perl can automate many current mundane administrative tasks.



Click below for Downloads related to this title:
1578702151.zip (124k)

Sample Content

Downloadable Sample Chapter

Click below for Sample Chapter related to this title:

Table of Contents

(NOTE: Each chapter ends with a Conclusion.)

1. Perl and the Admin.

A Note About This Book. Reusing Code. Perl.

Running Perl Scripts from a Command Line. Using Perl over a Network.

Extensions. Consistency. Administration and Computer Languages. Most Useful Extensions.

2. Account Maintenance.

Creating Accounts. Examining Accounts. Disabling Accounts. Deleting Accounts. Last Logon and Logoff. Unlocking Accounts. Expiring Passwords. Renaming Accounts. Privileges.

Displaying Available Privileges. Displaying Who Has a Privilege. Displaying and Modifying User and Group Privileges.

Synchronizing Domain Controllers.

3. Tools.

The File System.

Discovering Shared Directories. Volume Information. Creating Hard File Links. Creating Directories. NTFS Streams. Discovering File Versions.


Displaying Permissions. Displaying Verbose Permissions. Ownership. DCOM Configurations.


Regfind. Setting Autologon. TCP/IP Configuration.

4. Crisis Management.

Backing Up and Restoring Network Shares. Backing Up and Restoring User and Machine Accounts.

Backing Up Machine Accounts. Restoring Accounts.

Backing Up and Restoring Permissions. Discovering Open Files. Closing Open Connections. Recovering Documents.

5. Monitoring and Reporting.

Detection. Alerting.

Event Logs. Event Logs and Message Tables.

Event Log Sources. Monitoring.

Monitoring Internal Processes. Monitoring Network Server States. Scanning Event Logs for Errors.

Creating an Alert.

Network Messages. Paging. Email.

6. Logon Scripts.

How Logon Scripts Work. Configuring Logon Scripts. Modifying the User Environment.

Environment Variables. Perl and Environment Variables.

Effectively Processing Logon Scripts.

Unified Logon Scripts. Processing User Groups.

Machine Setup Script.

7. Processes.

Win32 Processes. Creating Processes.

Backticks. Piping (with open()).The system() function. Win32::Spawn(). Win32: Process. Win32::AdminMisc. Forking.

Running Processes as Another User. Enumerating Processes. The PSAPI Library. Killing a Process.


Inheriting File Handles (Pseudo-Forking).

8. Win32 Services.

What Are Win32 Services? Controlling Services.

Lists of Services. Starting, Stopping, Pausing, and Resuming. Service Status.

Creating and Removing Services.

Installing Services. Reconfiguring a Service. Removing Services.

Running Perl Scripts as Win32 Services.

Services Using SRVANY.EXE. Services Using Win32:Daemon.

Issues with Perl-Based Services.

Debugging. Child Processes. Accounts. Obtaining CDO. Installing and Removing the Service. Using the Service.

9. ADSI and WMI.

Active Directory Services Interface.

How Do You Get ADSI? Learning About ADSI. Using ADSI.

The IIS ADSI Provider.

Discovering IIS Properties. Modifying IIS Properties. Displaying an IIS Tree.

Windows Management Instrumentation.

WMI Details. Discovering Disks on Remote Machines. Process Lists. Killing Processes. Creating Remote Processes.

Appendix A. Example Code and Online Book Discussions.

Modules Used in This Book.

Installing Extensions.

Perl Information.

Web Sites. Usenet. List Servers. Electronic Magazines and Journals. Worthwhile Win32 Perl Administration Books.




Click below for Errata related to this title:

Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership