Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


August 01, 1998

Obtaining and Installing Perl for Win32's AdminMisc Extension


RSS
Subscribe to Windows IT Pro | See More Task Automation Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    How to Manage Your Enterprise's Passwords the Easy Way

Obtaining and Installing Perl for Win32's AdminMisc Extension One attractive aspect of the Perl language is the large number of add-on modules available. These add-on modules are collections, or libraries, of additional functions that you can download for free on the Internet. Corporate and independent developers developed these modules and contributed them to the Perl community. You can usually find the modules at http://www.perl.com, which is the Web site of Comprehensive Perl Archive Network (CPAN).

You can also find modules at the Web sites of the developers who created them. For example, Dave Roth developed AdminMisc to address deficiencies in the NetAdmin module. (NetAdmin is part of the standard Perl for Win32 distribution.) Table A lists all the functions in AdminMisc. You can download the AdminMisc module from Roth’s Web site at http://www.roth.net/perl/adminmisc.

Downloading and installing extensions is simple. The potential snag is making sure you fetch the appropriate type and version based on the distribution and version of Perl you’re running. Let me explain. Two primary Perl distributions are available for the Win32 platform: core and ActiveState. First, you want to make sure you retrieve the extension that’s appropriate for your Perl distribution. For example, I’m running ActiveState’s Perl for Win32 so I need the ActiveState build, not the core build. Second, you need to make sure the extension supports the specific version of Perl you’re using. For example, my ActiveState version is 5.003_07, build 316, so I need to look for the corresponding extension version. However, the extensions and Perl versions don’t always have to match. A good rule of thumb is the closer the version numbers, the better. The developer usually provides instructions telling you which version you’ll need.

The following steps guide you through the download and install process for the AdminMisc extension appropriate for ActiveState’s Perl for Win32, version 5.003_07, build 316. Here are the nine steps:

  1. Using your favorite browser, go to http://www.roth.net/perl/adminmisc.
  2. From the Win32::AdminMisc FAQ Web page, click the Go and get it! link.
  3. Download AdminMisc_Build_311.zip (located in the bin/ subdirectory) to an empty temporary directory. If you're using the core distribution, download AdminMisc_Build_CORE.zip and follow the instructions included in readme.
  4. Unzip AdminMisc_Build_311.zip in the temporary directory. The archive will contain four files: AdminMisc_311.pll, adminmisc.pm, readme, and test.pl.
  5. Rename AdminMisc_311.pll to AdminMisc.pll.
  6. In the ActiveState Perl for Win32 directory drive:\Perl\lib\Auto\Win32\, create a new directory, calling it AdminMisc.
  7. Copy AdminMisc.pll to the newly created drive:\Perl\lib\Auto\Win32\AdminMisc\ directory.
  8. Copy AdminMisc.pm to the drive:\Perl\lib\Win32\ directory.
  9. Test your installation by running: c:\> perl test.pl.

If this procedure is unacceptable, you'll be glad to hear that ActiveState Tool and O’Reilly & Associates are developing a Perl for Win32 Resource Kit that will address this and several other Perl for Win32 nuances. I will review the Perl for Win32 Resource Kit in a future column.

TABLE A: AdminMisc Functions
CreateProcessAsUser GetEnvVar GetStdHandle ScheduleDel
DNSCache GetFileInfo GetTOD ScheduleList
DNSCacheSize Gethostbyaddr GetWinVersion ScheduleList
DNSCacheCount gethostbyname LogonAsUser UserCheckPassword
ExitWindows GetHostAddress LogoffAsUser UserChangePassword
GetComputerName GetHostName ReadINI UserGetAttributes
GetDC GetIDInfo RenameUser UserGetMiscAttributes
GetDriveGeometry GetLogonName SetComputerName UserSetAttributes
GetDrives GetMemoryInfo SetEnvVar UserSetMiscAttributes
GetDriveSpace GetProcessorInfo SetPassword WriteINI
GetDriveType GetPDC ScheduleAdd  

End of Article



Reader Comments
I am not able to get the link that you specified for AdminMinsc Download.

Please let me know the password for the AdminMisc Downloading.

Thanks in Advance

Sitaram April 20, 2004


This install does not work. I still get errors.

Anonymous User October 14, 2004 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Task Automation Whitepapers From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Task Automation eBooks Spam Fighting and Email Security for the 21st Century

A Guide to Windows Certification and Public Keys

Keeping Your Business Safe from Attack: Patch Management

Related Task Automation Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement