By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,738 Members | 1,461 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,738 IT Pros & Developers. It's quick & easy.

Restart a Remmote PC?

P: n/a
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.

Tedmond
Feb 1 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
Feb 1 '06 #2

P: n/a
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.

"Tedmond" wrote:
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.

Tedmond

Feb 1 '06 #3

P: n/a
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).

--------------------
Thread-Topic: Restart a Remmote PC?
thread-index: AcYm6dobdj1fNZNMTR++ivxgaghz/w==
X-WBNR-Posting-Host: 203.129.76.231
From: "=?Utf-8?B?VGVkbW9uZA==?=" <Te*****@discussions.microsoft.com>
Subject: Restart a Remmote PC?
Date: Tue, 31 Jan 2006 20:42:05 -0800
Lines: 8
Message-ID: <83**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.general:187705
X-Tomcat-NG: microsoft.public.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.

Tedmond


--

Thank You,
Nanda Lella,

This Posting is provided "AS IS" with no warranties, and confers no rights.

Feb 1 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.