Oh, it can be scripted with WMI using the Win32_NetworkAdapter class (or using wmic). I don't think that that provides any more flexibility than netsh (plus maybe psexec).
I don't know enough about the problem to determine what I consider the "best solution". It might be psexec pushing a netsh command. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Rutherford Sent: Tuesday, October 26, 2004 9:11 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] IP setting Script That's fine for a single PC, but how would you change a range of machines? How could you pull in from a list? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith Sent: 26 October 2004 13:51 To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] IP setting Script IP address: netsh int ip set address name="Local Area Connection" source=static 1.2.3.4 255.255.255.0 1.2.3.1 1 DNS addresses: netsh int ip set dns name="Local Area Connection" source=static 1.2.3.2 netsh int ip add dns name="Local Area Connection" 1.2.3.3 WINS address: netsh int ip set wins name="Local Area Connection" source=static 1.2.3.5 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Za Vue Sent: Tuesday, October 26, 2004 8:36 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] IP setting Script The university's main DNS servers are Linux. My active directory is running its own DNS servers on its own subnet, but the workstations on getting IPs from the university's DHCP servers. Thanks, Z.V -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Rutherford Sent: Tuesday, October 26, 2004 8:19 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] IP setting Script You can do this I'm sure... one of the script wizard will no doubt come back with a solution. I am just curious why you are using static IPs on your workstations? Is DHCP not a possibility? BR Rob List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ ======================================================================= Scanned for virus infection by Messagelabs ======================================================================= List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
