script or policy....

  • Thread starter Thread starter rob davis
  • Start date Start date
R

rob davis

Currently, I have all of my client pc's configured with a
static DNS server... Can someone tell me how i can setup a
policy or script to run one time at logon, and change the
'Use the following DNS server address' to
'Obtain DNS server address automatically' in the TCP/IP
properties of each client pc (win2k pro) in my win2k
network.

thank you
 
You could use a vbscript and write to the registry that the client's DNS
settings come from a DHCP server. You'll probably want to have some sort of
check in place to see whether or not the update has already been applied.

You may want to look here to get you started...
http://msdn.microsoft.com/scripting


Brian
 
thank you
-----Original Message-----
You could use a vbscript and write to the registry that the client's DNS
settings come from a DHCP server. You'll probably want to have some sort of
check in place to see whether or not the update has already been applied.

You may want to look here to get you started...
http://msdn.microsoft.com/scripting


Brian







.
 
Hello,

Thank you for your post.

We can use the Windows 2000 built-in tool netsh.exe to change the TCP/IP
settings. For example, we can use a batch file with the following content:

netsh interface ip delete dns "Local Area Connection" all
netsh interface ip delete wins "Local Area Connection" all
netsh interface ip set address name="Local Area Connection" source=dhcp
ipconfig /renew

I hope the above information helps. Thanks!

Regards,
Joe Wu
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top