Can You Remote Into a Computer and Remote Again

How to Shutdown or Reboot a Remote Computer

We show you how to reboot or shutdown a remote reckoner using in-built and third party tools.

How to Shutdown or Reboot a Remote Computer

If you take multiple computers on your dwelling house or office network, you tin remotely administer them regardless of their operating system

Remote calculator administration refers to any method of decision-making a calculator from a remote location anywhere in the earth. Remote administration among other things includes the power to close down or restart a computer. If you have ii or more than computers connected to your dwelling house or office network, or fifty-fifty outside your network, you tin can employ one of them to close down the others remotely. Windows, Linux, and Mac computers all support this feature.

If yous are using Windows, you'll need to pre-configure the remote computer to be able to support remote shut down. Once this is set up, yous can easily perform the shutdown with a uncomplicated Terminal command from whatsoever computer. This commodity will show you various methods you can use to close downwardly or restart a remote computer.

Shutdown remote computers using PsExec control

PsExec is a utility from Microsoft that allows you lot to execute commands on a remote computer. For example, you can utilize PsExec to close downward and restart a remote calculator, manage processes on the remote computer, and much more, without having to manually install client software—you only demand to re-create PsExec onto your executable path. Nevertheless, the tool only works when the following criteria are met:

  • File and Printer Sharing is enabled on both the local and remote computer
  • Both computers belong to the same Workgroup or Domain network
  • You lot know the password to the administrator's account on the remote calculator

Before using PsExec to execute remote commands, you need to download and extract the files from PsTools on the computer that volition be running the remote commands. Follow the steps beneath to complete the setup procedure:

  • Open the folder where the extracted files are located, and from the navigation bar at the summit of the folder, erase what's in that location and enter cmd. This will open Control Prompt in that folder so that yous tin run commands through PsExec.
  • With Control Prompt now open to the folder that contains PsExec.exe, you tin can start entering commands on the remote machine.
  • Enter the following commands to execute cmd on the target remote machine (using the IP address or computername): psexec \\192.168.1.50 cmd
  • One time completed, you lot should be able to enter commands as if yous were sitting in front of the remote computer. Now, y'all should exist able to shut down or restart the remote reckoner using the post-obit commands as the case may exist:

shutdown /s Shut down the estimator.

reboot /r     Reboot the computer.

Copy PsExec onto your executable path and launch Command Prompt
Figure 1.0 | Copy PsExec onto your executable path and launch Command Prompt

Shut downwards a remote estimator using net employ command

The net utilise command enables yous to connect to, remove, and configure connections to shared resources such as mapped drives and network printers. Yous can also use it to close downwardly or reboot a remote computer. It does this using various parameters and switches. The command is available from the Command Prompt in Windows desktop (Windows 10/8/7) and server (server 2008/2016/2019) operating arrangement.

To use the net use command to shut downward or restart a estimator over the network, you need to disable the User Business relationship Control for remote executions in the registry by following the steps beneath:

  • Kickoff, open and run Command Prompt every bit ambassador.
  • Type the post-obit command to disable the User Account Control for remote executions and press the Enter key:

reg add HKLM\Software\Microsoft\windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d one /f

Once completed, your device will be open to receive commands remotely from authenticated users. The syntax to shutdown a remote figurer is as shown below:

shutdown /s /one thousand \\REMOTE-PC /t TIME /c "Annotate" /f

  • /south is used to shutdown the calculator.
  • /r is used to reboot the computer.
  • /grand \\computer is used to specify the target reckoner
  • /t is used to gear up the time-out period before shutdown
  • Fourth dimension represents the number of seconds to expect before beginning the shutdown process
  • /c is used to print comments to the computer screen before rebooting or shutting downwards
  • Annotate means the custom dialog you want to send the user
  • /f is used to force running applications to shut without forewarning users

Now, follow the steps below to shutdown a remote computer with the IP 192.168.i.l using the above syntax:

  1. Open and run Control Prompt equally administrator
  2. Blazon the following command to connect to the Windows built-in Inter-Procedure Communication share (IPC$) and bearding user account and a null countersign, and printing Enter: net use \\192.168.one.50\IPC$ "" /u: ""
  3. Confirm the account proper name located in the remote device and press Enter.
  4. Confirm the account password and press Enter.
  5. Type the following control to close downwards, consisting of the remote reckoner, and press Enter:

shutdown /s /m \\192.168.i.50 /t 120 /c "This PC will shut down in two minutes for maintenance." /f

If no one is using the computer, you lot can use the command beneath to shut downwardly the device immediately:

shutdown /s /m \\192.168.1.fifty /t 0 /f

Once these steps are completed, the remote host will power off according to the initiated commands.

Shutdown a remote computer using PowerShell

PowerShell is a cross-platform task automation solution from Microsoft, consisting of a control-line beat, a scripting language, and a configuration direction framework. PowerShell runs on Windows, Linux, and Mac. PowerShell can be used to perform the shutdown of remote computers in bulk without enabling remote shutdown capability.

The Finish-Computer and Restart-Calculator cmdlet are the PowerShell commands to shutdown and restart local and remote computers. The Cease-Computer cmdlet has the -ComputerName switch, through which you tin specify a list of systems that crave shutdown. Some of the notable parameters for the Stop-Computer command are as follows:

  • ComputerName: Specifies the computers to shut down. The default is the local computer. The reckoner name can be the NETBIOS name, IP address, or FQDN (Fully Qualified Domain Name) of ane or more than computers in a comma-separated listing. To specify the local figurer, type the computer proper name or localhost.
  • Confirm: Prompts you for confirmation earlier running the cmdlet.
  • Credential: Specifies a user account that has permission to do this action. The default is the electric current user. The certificate can be a user name, such as user001 or domain01\user001, or a PSCredential object generated by the Get-Credential cmdlet. If you enter a user proper name, y'all'll be prompted to enter the countersign.
  • Strength: Forces an immediate shut downwards of the calculator.
  • WsmanAuthentication: Specifies the mechanism used to authenticate the user credentials when the cmdlet uses the WSMan protocol. The default value is Default. The acceptable values for this parameter are: Basic, CredSSP, Default, Digest, Kerberos, and Negotiate.

Shutdown remote computers: Here's the syntax to shutdown multiple remote computers using PowerShell cmdlet:

Stop-Computer -ComputerName 192.168.1.50, 192.168.1.51, 192.168.1.52

If someone is currently working on the remote computers, you lot will go an error. To solve this problem, yous can add the -Force key, which will do a forced shutdown as shown below:

Stop-Computer -ComputerName 192.168.1.fifty, 192.168.1.51, 192.168.1.52 -Force

Shutdown using specified authentication: You may want to shut down a remote computer using specified authentication. This is where the WsmanAuthentication parameter comes into play. In the example below, the WsmanAuthentication parameter specifies using Kerberos to establish a remote connection.

Stop-Calculator -ComputerName 192.168.1.50 -WsmanAuthentication Kerberos

Shutdown on behalf of a specific business relationship: If you need to perform a shutdown on behalf of a particular account, then yous can use the -Credential switch equally shown below, which requires the domain name (domain01), the username (user001), and password when prompted:

Stop-Computer -ComputerName 192.168.1.50 -Credential domain01\user001 -Force

Shutdown multiple computers in a domain: A state of affairs may arise where you are required to shutdown multiple computers in a domain. The Stop-Calculator command can easily cope with this task, but beginning, you need to create a text file containing a listing of computers (in a unmarried column) that need to exist close down, and then execute the command as shown below:

$b = Get-Content -Path C:\computers.txt

$c = Get-Credential -Credential Domain01\Admin01

End-Computer -ComputerName $b -Force -Credential $c

  • Go-Content uses the Path parameter to get a file in the current directory with the list of domain computers. The objects are stored in the $b variable.
  • Become-Credential uses the Credential parameter to specify the credentials of a domain ambassador. The certificates are stored in the $c variable.
  • Finish-Computer shuts downward the computers specified with the ComputerName parameter's list of computers in the $b variable. Next, the Force parameter forces an immediate shutdown. Finally, the Credential parameter submits the credentials saved in the $c variable.

Shutdown as a background job: There may be situations where y'all wish to shutdown remote computers as a background job. In that case, the background operator & can be used to run the Finish-Reckoner command as a groundwork job equally shown below:

$b = Stop-Estimator -ComputerName 192.168.1.l, 192.168.1.51  &

$results = $b | Receive-Job

$results

  • The job objects are stored in the $b variable
  • The job objects in the $b variable are sent down the pipeline to Receive-Job, which gets the chore results
  • The objects are stored in the $results variable
  • The $results variable displays the job information in the PowerShell console

Shutdown a remote computer using GUI

This method provides a GUI that makes sending the shutdown command to a remote computer beyond the network more attainable. This is where the shutdown\i control comes into play. This command brings upwardly a graphical dialog that lets you select the remote computer or enter its proper noun or IP accost using the Add button. You lot tin then specify whether you lot want to close down or restart, including an option to add a annotate.

Earlier you can execute this command, you showtime need to configure the remote estimator to allow remote command executions using the post-obit steps:

  • First, open and run Command Prompt as administrator.
  • Type the post-obit control to disable the User Account Control for remote executions and press the Enter key:

reg add HKLM\Software\Microsoft\windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

Once completed, you can then use the shutdown\i command to shut down or restart multiple remote computers as the instance may, using the steps beneath:

  1. Press Windows key + R on the keyboard to open the Run dialog
  2. Type shutdown /i command and click the OK button.
  3. Click the Add together button.
  4. Enter the computer name or IP address of the remote calculator.
  5. Click the OK button.
  6. (Optional) Repeat steps No. 4, 5, and vi to add more than computers to the listing.
  7. Use the "What practise you want these computers to do" option to select Shutdown, Restart, or Annotate Unexpected Shutdown.
  8. Cheque the "Warn user of the activeness" option to alert the user.
  9. Use the display alarm option to specify how long the warning should display on the screen in seconds.
  10. Nether the "Shutdown Event Tracker" department, use the Selection driblet-down carte and select why you are shutting downward the computers.
  11. Check the "Planned" pick if you want to register the activeness as planned. Otherwise, the action volition register as "Unplanned."
  12. In the "Comments" section, type the bulletin you want the user to see—for example, "The PC will close down in a infinitesimal for maintenance."
  13. Click the OK push

One time the above steps are completed, the computers in the listing will shut downward according to your configuration and message.

Remote Shutdown Dialog box
Figure ii.0 | Screenshot showing Remote Shutdown Dialog box

Shutdown a remote computers using RDP

Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft which provides a user with a graphical interface to connect to another figurer over a network connexion. To initiate an RDP connection, an RDP client and server software are required at the local and remote computers, respectively. Fortunately, all of these come up pre-installed on Windows machines. RDP clients are likewise bachelor for most versions of macOS, Linux,  Android, and iOS. An open-source version is also available.

RDP saves you the headache of configuring and using the command line approach to shutting downwards and restarting remote computers. Notwithstanding, y'all may be required to configure port forwarding on your router if the remote calculator is outside your network. Follow the steps below to shutdown a remote figurer using RDP:

  • Type 'RDP' in the Windows search bar to locate the RDP app.
  • Enter the required login credentials when prompted to proceed further.
  • When the connection is established, you lot can then use your mouse to close downward or reboot your computer, every bit the case may be.
RDP interface box
Figure 3.0 | Screenshot showing RDP interface box

Shutdown a remote computers using third-party tools

Autonomously from the built-in shutdown commands and other embedded tools that tin can exist used to shutdown/restart a local or remote computer, at that place are lots of free and commercial third-party remote administration tools out there that can equally practise the chore, if not better. In improver, third-party tools are much simpler to configure and use than near built-in tools.

Typical examples include TeamViewer, TightVNC, LogMeIn, PuTTY, Symantec pcAnywhere, ManageEngine Shutdown / Restart Tool, and a host of others including remote access VPN applications. The only downside is that some third-political party tools crave their software installed on both local and remote computers.

Conclusion

We have discussed diverse methods you can employ to shut down or restart a remote reckoner. While remote computer administration, including the power to initiate a shutdown or restart, has many legal uses and offers many benefits, there are too security implications.

Cybercriminals may exist able to take advantage of the configurations and settings that allow remote administration, also every bit existing loopholes to gain remote admission to your computer and carry out malicious activities. Therefore, you must adhere to secure remote access practices and ensure that appropriate security measures are in identify to forbid security breaches.

carterxvier1974.blogspot.com

Source: https://www.comparitech.com/net-admin/shutdown-reboot-remote-computer/

0 Response to "Can You Remote Into a Computer and Remote Again"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel