Restart Remote Computers vbscript
Need to restart all the Windows computers on the network? This script reads a text file populated with computer names and performs the remote remote restart on them. I use this all the time to forcibly restart computers that are still logged on - but in distant locations on the network - when performing system maintenance and software upgrades outside of office hours. ‘ *************************************************************** ‘ * Script to Restart Network Computers ‘ * based on computers names list in a file. ‘ * This script checks computer’s availability first via WMI ping ‘ * Ceyhun Kirmizitas ‘ *************************************************************** On Error Resume Next Dim strComputer Dim objShell, objExec, strCmd, strTemp Set fso = CreateObject("Scripting.FileSystemObject") Set objInputFile = fso.OpenTextFile("Dclist.txt",1,True) Do While objInputFile.AtEndOfLine <> True strComputer = objInputFile.ReadLine WScript.Echo strComputer & "…