Restarting server

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I restart server from within my vb.net winform app? Hopefully this
will also gracefully shut the vb.net app.

Thanks

Regards
 
John,

It would in my idea be crazy that you would be able to restart a server from
a VB.net winform application.

Even as it would be possible to close it, then there is not any connection
anymore to restart it again.

Luckily that is in my idea impossible

Cor
 
If you have the proper permissions, you can use a process object to issue
commands for restart. You can also set up a WMI script for restart and call
it in the same manner. As Cor has mentioned, you need to be careful with
this type of application, as it can be dangerous to restart from an
application.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

*********************************************
| Think outside the box |
*********************************************
 
John said:
How can I restart server from within my vb.net winform app? Hopefully this
will also gracefully shut the vb.net app.

I suggest to describe the scenario in more detail.

Are you attempting to restart the machine the application is running on or
do you want to remotely restart a server?
 
Back
Top