Also, take a peek on Scriptomatic V 2.0. It's a free download from MS and
generates WMI scripts in Perl and another languages too.

http://www.microsoft.com/downloads/details.aspx?FamilyID=09dfc342-648b-4119-
b7eb-783b0f7d1178&DisplayLang=en

-Craig

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob
Martin
Sent: Friday, January 28, 2005 10:49
To: Roderick A. Anderson
Cc: perl-win32-admin@listserv.ActiveState.com
Subject: Re: WMI, OLE and VBScript vs perl


Theres a much better native windows tool for configuring adapters, and 
it plays nice with perl. It's called netsh, and it's in the help 
documents, and on line doc's are at MSDN

Bob

Roderick A. Anderson wrote:
> If that subject doesn't heat a few up I must be losing my touch.
> 
> Actually I have two questions so first some background.
> 
> We have the mail for several domain's hosted on a Win2K servers ( 
> iMail
> ) and just had a NIC start going south on us.  Since there were so many 
> IPs bound to the adapter I went looking for a command line method to 
> enter them for the new NIC.
> 
> Found David Roth's GetIPs.pl script to pull the values and some 
> VBScript
> ( WMI ) code that set the values.  Everything ( appeared to ) worked 
> fine on a test system.  We then took the system down and replaced the 
> bad NIC.  Brought the system back up , ran the VBScript and all the IPs 
> were entered.  Problem was the IPs didn't bind to the adapter.  It took 
> going through the list and making a null-edit to bind them.  ( I suspect 
> it was because the old adapter entrys were still in the registry. )
> 
> So question one.  Is there a (semi-)standard method to translate
> VBScript and WMI to perl code ( Win32::OLE )?  All my searching for a 
> pure Perl solution to get and set registry entrys and especially IPs 
> bound to adapters has been to no avail.  Usually I could get the info OK 
> ( but was totally lost as to how the correct path was determined ) and I 
> have never got a Perl script to set/change/make a registry entry.
> 
> Question two.  What are your recommendations for reading on how to do
> this kind of stuff and/or references to what registry entry holds what 
> data.
> 
> 
> Rod
_______________________________________________
Perl-Win32-Admin mailing list Perl-Win32-Admin@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


_______________________________________________
Perl-Win32-Admin mailing list
Perl-Win32-Admin@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to