Torna al Thread
'qui secondo me devi aggiungere Utente e Pwd (e magari anche dominio ) con sufficienti privilegi per fare
'uno shutdown da reomoto
Dim s As New ProcessStartInfo("shutdown", " /r /m \\DANIELE1 /T 20")
s.UseShellExecute = False
s.CreateNoWindow = True
'il redirect dello standardOutput a me spesso dà problemi (tipo che dall'altra parte non si muove più niente finchè non lo libero)
s.RedirectStandardOutput = True
s.RedirectStandardError = True
Dim P As Process 'niente new qui, se la fai dopo
P = New Process 'sennò togli questa riga
P.EnableRaisingEvents = True
AddHandler P.Exited, AddressOf SendComplete
P.StartInfo = s
P.Start()