all groups > dotnet general > january 2006 >
You're in the

dotnet general

group:

Restart a Remmote PC?


Restart a Remmote PC? Tedmond
1/31/2006 8:42:05 PM
dotnet general: Dear all,

Is it possible to restart a remote PC using .net? The PC did not join my
domain but I know it's local admin login.

Thanks for any help.

Re: Restart a Remmote PC? Michael Nemtsev
2/1/2006 12:00:00 AM
Hello Tedmond,

There is no way by standard if you are not in domain.

T> Dear all,
T> Is it possible to restart a remote PC using .net? The PC did not
T> join my domain but I know it's local admin login.

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

RE: Restart a Remmote PC? Brandon
2/1/2006 10:23:27 AM
you can try the shutdown command:

shutdown -r -f -t 00 -m \\<computername>

from the command line or execute this in a Process.Start call from w/in a
..net application. you may run into the CAS issues, however, but can't hurt to
try.

[quoted text, click to view]
RE: Restart a Remmote PC? NandaL NO[at]SPAM online.microsoft.com
2/1/2006 10:27:42 PM
If you are using remote desktop, then you can do an ALT+F4 and select the
desired operation.
Or from command prompt you can try
shutdown -s -m \\COMPUTER NAME OR IP -t 00
(Use -r or -l instead of -s for reboot and logoff respectively)
Also a CTRL+ALT+END in the remote desktop session shows classic
CTRL+ALT+DEL window.

if the above options dont work you can also try the following command at
the command prompt.

tsshutdn \server:ip address \powerdown
( terminating all user sessions (default is 60).)
You can also use following options as per requirement.
/REBOOT Reboot the server after user sessions are terminated.
/DELAY:logoffdelay Seconds to wait after logging off all connected
sessions (default is 30).



--------------------
[quoted text, click to view]

--

Thank You,
Nanda Lella,

This Posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button