Machine Management

Administrating a domain of machines can be quite a job. Users are always deleting system files, changing bootup configurations, and reconfiguring software. Something is always happening to keep a team of administrators running from desktop to desktop. Luckily, Perl’s Win32 extensions have some handy functions that make this administration easier.

Administrators of Win32 machines need to manage INI files and the Registry. Additionally, NT/Win2k/XP machines need the Event Log to be managed. Perl provides the capability to perform such tasks.

Discovering Drives

You can find what drives a computer has by calling the Win32::Lanman::NetServerDiskEnum() function:

Win32::Lanman::NetServerDiskEnum( $Machine, \@List ); 

The first ...

Get Win32 Perl Programming: The Standard Extensions, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.