Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote restart desktops 1

Status
Not open for further replies.

FatEric

IS-IT--Management
Nov 8, 2007
58
BE
Hi all,

At work we have 8 desktops at various locations which all show some info. But sometimes the desktop stops working / hangs ... Now I want to write op program which restarts the desktops trough the network. I have the network adress and my question to you all is how I can execture the shutdown command on a specific desktop. I know how I can do it on my on pc (shutdown -r -t 10 -f), and I know there is an option to do so over the netwerk.

But I want to create a form with 8 buttons, each button linked to a specific computer.

Can someone provide me the command how i can execute the shutdown on a remote pc?

Thanks FatEric
 
Lets think. If your computer hangs can you then still do "shutdown -r -t 10 -f" ? Me thinks not.

If a computer hangs then how are you going to communicate with it?

Christiaan Baes
Belgium

My Blog
 
Indeed good remark. I will correct myself. The application running on the computer hangs / is giving errors... The computer self is still running.

FatEric
also Belgium ;)
 
Then you want to restart or close down your application, not the computer, right?



Christiaan Baes
Belgium

My Blog
 
On those pc's there is a autologin script. Also those pc's are locked up in a case (so no one can do something with it, only we). So it would be nice if we could remote restart it.

If found a vb.net command, but is does not seem to work:

Dim WshShell = CreateObject("WScript.Shell")
WshShell.Exec("shutdown /s /m \\comp /t 5 /f")

Don't think it is that easy, right?

Thanks, FatEric
 
I would think a good OS (;-)) would block such things. So I would create a second program that has remoting built in so that you can execute that command locally.

Christiaan Baes
Belgium

My Blog
 
The idea is that there does not have to be put an extra program on the network pc's...
 
I will ask my boss what he thinks of that solution. For now I think it is not possible to write a small prog that does the trick.

Thanks for the answers.

Greetz, FatEric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top