/build/static/layout/Breadcrumb_cap_w.png

PowerShell Script to IPconfig/release renew and then flush dns

Can someone please help me with a script which

1) Will take server names from a text file2) Perform Ipconfig /release and IPconfig /renew3) Perform IPconfig /flushdns

0 Comments   [ + ] Show comments

Answers (2)

Posted by: Nico_K 3 years ago
Red Belt
1

can you please be more specific?
Setting DHCP via Powershell: Set-NetIPInterface -InterfaceIndex 1 -Dhcp Enabled
Setting DNS via Powershell: Set-DnsClientServerAddress -InterfaceIndex 1 -ServerAddresses ("192.168.255.1","192.168.255.2")
Cleaning the DNS cache can be doe via: Clear DnsClientCache

Posted by: zamank 3 years ago
White Belt
0

the dns entries are already updated across 300 servers, i just need to run the script to ipconfig /release and renew and then flushdns so that the new dns entries get reflected at the client side.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ