O'Reilly logo

Win32 Perl Programming: The Standard Extensions, Second Edition by Dave Roth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required