for /F "tokens=*" %%x in ('type c:\tmp\restart.txt') do ( shutdown.exe -m "%%x" -t 0 -r -f )
pause
pause
in txt file write computer fqdn names
netstat -ano | findstr :<listenport number>run CMD as Administrator:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "c:\myservice.exe"
telnet localhost smtp HELO yahoo.com mail from: sender@test.com 250 2.1.0 sender@tecadmin.net... Sender okrcpt to: myemail@mail.com 250 2.1.5 myemail@mail.com... Recipient okdata 354 Enter mail, end with "." on a line by itselfHey This is test email only Thanks . 250 2.0.0 r9M95xgc014513 Message accepted for deliveryquit 221 2.0.0 fbreveal.com closing connection Connection closed by foreign host.