Hi guys. I know a way to shutdown and restart a machine but it is not doing exactly what I want. It is bringing up a 'Remote Option Dialog' for the user to choose whether to shutdown or restart the machine or not. What I want is when this code executes, the machine shutdowns instantly without asking the user to choose an option. This is the simple way I know:

Shutdown: System.Diagnostics.Process.Start("Shutdown", "-i");


Anyone knows how to shutdown or restart a computer directly without bringing up this dialog box?


Jennife