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 1 year ago
Red Belt

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 ("","")
Cleaning the DNS cache can be doe via: Clear DnsClientCache

Posted by: zamank 1 year ago
White Belt

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.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


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