PC Review


Reply
Thread Tools Rate Thread

Change workstations to DHCP

 
 
Mike
Guest
Posts: n/a
 
      12th Apr 2006
All workstations are static ip, XP sp2 on domain. DHCP server is Server2k3.

Is there an easy way to change all of my workstations from static to DHCP?
Group Policy? Logon script? Any good ideas?

Thanks,
Mike


 
Reply With Quote
 
 
 
 
Miha Pihler [MVP]
Guest
Posts: n/a
 
      12th Apr 2006
Hi,

I usually use netsh for tasks like this... Here is a sample script (e.g.
startup script)...

netsh interface ip set address name="Local Area Connection" source=dhcp
netsh interface ip set dns name="Local Area Connection" source=dhcp

I hope it helps,

--
Mike
Microsoft MVP - Windows Security

"Mike" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> All workstations are static ip, XP sp2 on domain. DHCP server is
> Server2k3.
>
> Is there an easy way to change all of my workstations from static to DHCP?
> Group Policy? Logon script? Any good ideas?
>
> Thanks,
> Mike
>



 
Reply With Quote
 
Nathan
Guest
Posts: n/a
 
      12th Apr 2006
assign a computer startup script via gpo using the following vbs script:

Option Explicit
On Error Resume Next

Dim strComputer
Dim oWMIService
Dim colNetAdapters
Dim oNetAdapter
Dim errEnable
Dim arrDNSServers

strComputer = "."
Set oWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetAdapters = oWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each oNetAdapter In colNetAdapters
errEnable = oNetAdapter.EnableDHCP()
arrDNSServers = Array()
oNetAdapter.SetDNSServerSearchOrder(arrDNSServers)
Next




















"Mike" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> All workstations are static ip, XP sp2 on domain. DHCP server is
> Server2k3.
>
> Is there an easy way to change all of my workstations from static to DHCP?
> Group Policy? Logon script? Any good ideas?
>
> Thanks,
> Mike
>



 
Reply With Quote
 
AJR
Guest
Posts: n/a
 
      12th Apr 2006
Why not select "Obtain an address automatically" under advanced tab of
TCP\IP?


"Mike" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> All workstations are static ip, XP sp2 on domain. DHCP server is
> Server2k3.
>
> Is there an easy way to change all of my workstations from static to DHCP?
> Group Policy? Logon script? Any good ideas?
>
> Thanks,
> Mike
>



 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      12th Apr 2006
Why do things manually when you can do them automatically. I really don't
feel like logging onto 500 machines and changing to "Obtain an address
automatically" under advanced tab of TCP\IP?

"AJR" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Why not select "Obtain an address automatically" under advanced tab of
> TCP\IP?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing Workstations to DHCP or Allowing Non-Admins Access to Alternate TCP/IP Config? Ben Windows XP Networking 4 5th Nov 2007 02:57 AM
Change workstations to DHCP Mike Windows XP Configuration 12 18th Apr 2006 08:51 AM
Change workstations to DHCP Mike Windows XP General 4 12th Apr 2006 11:17 PM
pushing a registry change to all workstations ? JAQK Microsoft Windows 2000 Registry 5 19th Mar 2006 03:30 PM
XP workstations lose DNS #'s from DHCP settings =?Utf-8?B?SmFuIEQ=?= Windows XP Networking 3 6th Apr 2005 11:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:36 AM.