Fortunately, there are several ways to reboot a Windows PC from another windows PC or server on the network. Here are four of my favorite methods to do this: 1. The shutdown command. This is a command line tool available on most any windows computer which will allow you to remotely reboot any computer joined to an active directory domain. How can I tell which Domain controller I'm authenticated to? Is there a way to do this without local admin? This doesn't work when you're logged on as a local user and you're interested in how the computer is authenticated to the domain. For that, see the other answer referencing nltest. – wfaulk Apr 1 '16 at 19:47.
I have 3 'client' computers, on which the mentioned user is administrator:
And a 'target' computer (the one that I want to shutdown from the three others):
I'm trying to shutdown
TGT
with the following command:It's working from
CPU1
(meaning TGT
shuts down), but from CPU2
and CPU3
I get the following message:Access denied. (5)
What am I to understand? What should I do to get it working form all of my computers.
gregsethgregseth29733 gold badges77 silver badges2121 bronze badges
5 Answers
One thing to keep in mind is that, the computers you want to shutdown must be on the same network as the 'controlling' computer.
There are many solutions to this, I simply chose this one.
This is a simple network access issue. You will have access to certain computer some times, but that is not this case. To gain access of another computer for you to remote shutdown, you must execute the follow command in command prompt:
This is a simple network access issue. You will have access to certain computer some times, but that is not this case. To gain access of another computer for you to remote shutdown, you must execute the follow command in command prompt:
![Shutdown Client Pc From Domain Controller Shutdown Client Pc From Domain Controller](/uploads/1/2/5/5/125533368/989271362.jpg)
Replace
Server
with the computer ip/name you want to shutdown remotely, pswd
with the password to any administrator account of the remote computer and user
with the Administrator user account name. To list all the computers in your current Wi-Fi network, do net stat
. It'll give you the names of the computers. Unless you prefer an easier way: Click Start, then Right-Click Computer. Click properties, it should be named in there. IPC$ is supposed to be there. Sometimes it will not work. I do not know why.Work cited here.
For example, we'll have a computer named CHOCOLATE, and an Administrator account on the current machine is Bob and the password is Joe:
InterLinked1,16411 gold badge1414 silver badges3535 bronze badges
Agentleader1Agentleader1
create a local account on tgt for each user account you want to use to shut the machine down remotely. each of these accounts must have admin priviledges on tgt and have the same name and password as the accounts you use on cpu1-3. cpu1 probably uses an account that is created with the same name and pass on tgt
Nicolás StraubNicolás Straub
One possible answer is to use PS Shutdwon:
But it's not valid answer, I'm still looking to do it natively because the sysinternal tools are not redistribuable.
gregsethgregseth29733 gold badges77 silver badges2121 bronze badges
First you must authenticate on the target PC to remotely execute operations.
This can be done in multiple ways:
This can be done in multiple ways:
- you are local admin have the same account (username and password) on the remote PC (also local admin). Then the correct logon credentials are sent automatically.
- you create a connection to the target PC and provide the logon credentials of an admin user of the target PC. The shutdown command does not send any logon credentials, so you need to find another way. On solution is connecting a network share. And you don't have to create one just for this purpose, you can use the existing IPC$, which I also do.
net use target-pcIPC$ password user:username
But in order to run the shutdown successfully, you have to get over another issue: The remote UAC restricts the user rights if logged on from remote. This blocks your shutdown execution.
See on Microsoft KB951016 for details. The 'workaround' is also described there.
I found this last important info on various pages in the internet after wondering why my shutdown did not work. It is also on https://stackoverflow.com/a/16526680/2505186. If giving me +1, also do him/her.
See on Microsoft KB951016 for details. The 'workaround' is also described there.
I found this last important info on various pages in the internet after wondering why my shutdown did not work. It is also on https://stackoverflow.com/a/16526680/2505186. If giving me +1, also do him/her.
Community♦
Tobias KnaussTobias Knauss
in order to use remote shutdown in windows 7:
- First go to the computer that you want to shutdown and create user with the same name/password of the user you use to shutdown the computer.
- Then add the user to the Administrators group.
- Then go to Control panel/Administrative tools/Local Security policies.
- Then click on local policies.
- Then user right assighnments and scroll down until you find force shut down remote computer, check if the administrators group is there.
- Now you need to disable user account control (UAC) because it blocks the shutdown command.
- Last thing is to enable remote desktop from local policies user right assigments remote desktop and add the user that you created, and right click on computer and properties, remote settings, enable remote desktop, and add the user you created it.
6,68077 gold badges3939 silver badges4848 bronze badges
omegahero1omegahero1
protected by Community♦Feb 17 '18 at 5:55
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?
Not the answer you're looking for? Browse other questions tagged windows-7windowswindows-vistashutdownremote-control or ask your own question.
I am looking for a way to determine what the Name/IP Address of the domain controller is for a given domain that a client computer is connected to.
At our company we have a lot of small little networks that we use for testing and most of them have their own little domains. As an example, one of the domains is named 'TESTLAB'. I have an Windows XP workstation that is a member of the TESTLAB domain and I am trying to figure out the name of the domain controller so that I can go and look to see what users have been defined for the domain. In our lab there is a mix of Windows Server 2000 and Windows Server 2003 (and in reality probably a couple of NT 4 Servers) so it would be nice to find a solution that would work for both.
Looking on the Internet, it looks like there are various utilities, such as Windows Power Shell or nltest, but these all require that you download and install other utilities. I was hoping to find a way to find the domain controller without having to install anything additional.
EDIT If I wanted to write a program to find the domain controller or the users in the current domain, how would I go about doing that?
George Stocker![Domain Domain](/uploads/1/2/5/5/125533368/967992378.jpg)
46.4k2929 gold badges157157 silver badges220220 bronze badges
Dorky EngineerDorky Engineer
7 Answers
With the most simple programming language: DOS batch
MZywitzaMZywitza2,91811 gold badge1313 silver badges1111 bronze badges
In cmd on Windows, type the following commande:
It lists all domain controllers in particular domain
Luca Detomi3,34666 gold badges3737 silver badges5757 bronze badges
Lado MorelaLado Morela
In C#/.NET 3.5 you could write a little program to do:
This will list all the users in the current domain:
tvanfossontvanfosson437k8484 gold badges655655 silver badges760760 bronze badges
From command line query the logonserver env variable.
C:> SET L
LOGONSERVER='DCNAME
SriSri
Run
ErikEErikEgpresult
at a Windows command prompt. You'll get an abundance of information about the current domain, current user, user & computer security groups, group policy names, Active Directory Distinguished Name, and so on.34.5k1414 gold badges119119 silver badges165165 bronze badges
WimWim
To retrieve the information when the
Brett VeenstraBrett VeenstraDomainController
exists in a Domain in which your machine doesn't belong, you need something more.22.1k1717 gold badges6161 silver badges8080 bronze badges