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 Sample Chapter related to this title:
(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.
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.
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.
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.
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.
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.
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).
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.
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.
Modules Used in This Book.
Web Sites. Usenet. List Servers. Electronic Magazines and Journals. Worthwhile Win32 Perl Administration Books.