Win32 Perl Scripting: The Administrator's Handbook by Dave Roth

Win32 Perl Scripting: The Administrator's Handbook

byDave Roth

Paperback | October 31, 2000

not yet rated|write a review

Pricing and Purchase Info


Earn 210 plum® points

Out of stock online

Not available in stores


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.

About The Author

Dave Roth is the contributor of various popular Win32 Perl extensions, including Win32::ODBC, Win32::AdminMisc, Win32::Daemon, and Win32::Perms. He has been providing solutions to the Perl community for difficult-to-solve problems since 1994. Dave has been a speaker at the O'Reilly Perl Conferences as well as the USENIX LISA-...

by David Male


Available for download

Not available in stores

Don't Buy A Money Pit
Don't Buy A Money Pit

by David Roth


Available for download

Not available in stores

Rampage: The Social Roots of School Shootings
Rampage: The Social Roots of School Shootings

by Katherine S. Newman


Available for download

Not available in stores

Shop this author

Details & Specs

Title:Win32 Perl Scripting: The Administrator's HandbookFormat:PaperbackDimensions:416 pages, 8.9 × 5.9 × 1 inPublished:October 31, 2000Publisher:Pearson EducationLanguage:English

The following ISBNs are associated with this title:

ISBN - 10:1578702151

ISBN - 13:9781578702152

Look for similar items by category:

Customer Reviews of Win32 Perl Scripting: The Administrator's Handbook


Extra Content

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.