473,473 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Restart a Remmote PC?

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
3 1406
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Piotr Trawiński | last post by:
I have this notorious problem: at some point pgsql simply hangs up and requires a restart. --------------------------------------------------------------------------- -------...
18
by: amdishigh | last post by:
We are experiencing the following problems concerning ASP.NET: our ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0 environment, experience frequent session timeout problem....
3
by: Pint | last post by:
I would like to know if there is a programatic way to force the Application object to restart. I have a hosted website where I will be unable to control the webserver (eg:iisreset), and I would...
3
by: John A Grandy | last post by:
In ASP.NET 1.1 and/or 2.0 ..... Is it possible to configure a web-app so that replacement of an .xml file ( physically located under the virtual dir root ) with a newer version of the file...
6
by: Leonardo Curros | last post by:
Hello, I would like to know what's the best way to restart one service. I would like to do it from the service itself. Is this possible? I try it with ServiceController.stop()...
8
by: kenneth fleckenstein nielsen | last post by:
hi guru's I want to restart my webservice when ever it throws an exception that isn't cought. can i do that by web.config or iss or how ??
4
by: shorti | last post by:
Can anyone explain in greater (and more comprehensive) detail what the RESTART option does in the ALTER TABLE table ALTER COLUMN statement. This is the description in Info Center: RESTART or...
3
by: MarkusJNZ | last post by:
Hi, I have two different applications running on 2003 both in two different vitrual directories. One application runs on the .NET framework 1.1 whilst the other runs on 2.0. If I change the...
1
by: Brian Simmons | last post by:
Hi All, I know that if you modify the web.config file or any file in the App_Code subfolder, that ASP.net 2.0 will "restart" the application (i.e. clear out any sessions, etc...). Are there...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.