Check out Automating Windows (DNS) with Perl at:
http://www.perl.com/pub/a/2005/03/24/perl_dns.html.
Just came out... | [reply] |
I think then you had better explain in better detail exactly what "add some DNS entries" means in this case.
/J\
| [reply] |
Sorry, I need to add some searchlist entries into the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters. But Windows NT4.0 and Windows 2000 have entries that are different like nt has spaces in between entries and 2000 has commas. Let me know if you need anything else.
| [reply] |
get me started on how to do a if statement.
Sounds like you know what you need to do on each flavor of client already, so perhaps you can create a subroutine for each type of Windows system.
Then, using Win32::API or Win32::TieRegistry, read the registry, and execute the proper subroutine from a dispatch table. Of course, if the workstations are not running perl locally you may also have to distribute the script to each, or do a login routine that does this.
But- why not use DHCP to do this for you?
| [reply] [d/l] |