iis service restart from services.msc code example Example: iis restart cfrom command promt windows iisreset /noforce