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)
Please log in to answer
Posted by:
Nico_K
3 years ago
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