If you want to reset network adapters on Windows Server, execute the following script on PowerShell (run PowerShell with admin privileges)

You have to run the script locally on a server machine.

while($(ping -like "*Reply*"){
"Server replied"
"Server unreachable"
Restart-NetAdapter Ethernet0
Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject "server down" -SmtpServer "smtp.yourdomain.com"


Script to Reset Windows Network Adapters

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *