Remote shutdown and restart in WinXP system

  

In the default security policy of Windows XP operating system, only the users of the administrator group have the right to shut down or restart the computer from the remote end. Generally, when accessing the computer from other computers in the LAN, only the guest user authority is available, so When we execute the above command, we will see "Access Denied".

After finding the root cause of the problem, the solution is also very simple. You only need to give the guest the remote shutdown permission in the client computer (the computer that can be remotely shut down, such as the sunbird mentioned above). This can be done using the "Local Security Policy" in Windows XP's "Group Policy" or "Administrative Tools". Let's take "Group Policy" as an example:

Remote Shutdown

1. Click the "Start" button, select "Run", and enter "gpedit.msc" in the dialog box. Then click OK to open the Group Policy Editor.

2. In the left pane of the Group Policy window, expand Computer Configuration→Windows Settings→Security Settings→Local Policies→User Rights Assignment. As shown in Figure 1.

Figure 1

3. In the right pane of the Group Policy window, select Forced Shutdown from Remote System and open it by double-clicking it. as shown in picture 2.

Figure 2

4. In the pop-up dialog box, only members of the "Administrators" group are authorized to shut down from the remote; click "Add User or Group" at the bottom of the dialog box. Button, then enter "guest" in the new pop-up dialog box, then click the "OK" button.

5, at this time in the "forced shutdown from the remote system" attribute has added a "guest" user, click "OK".

6. Close the Group Policy window.

After the above operation, we granted the remote user permission to the sunbird guest of the computer. In the future, if you want to remotely shut down the computer sunbird, just enter the following command on another computer with Windows XP on the network:

shutdown -s –m \\\\sunbird -t 30 (Other parameters are the same as above) )

At this time, a "System Shutdown" dialog will be displayed on the screen of the sunbird computer, prompting "The system is about to shut down. Please save all running work, then log out. Unsaved changes will be Lost. Shutdown is initiated by sunbird\\guest.” There is also a timer at the bottom of the dialog that shows how much time is left from the shutdown. While waiting for the shutdown, the user can also perform other tasks, such as closing the program, opening the file, etc., but cannot close the dialog unless you use the shutdown –a command to abort the shutdown task.

Remote restart

If you want to implement remote restart in Windows XP, you also need to use the "Shutdown" command to open remote assistance. In the case of remote desktop, enter

Win+R -> Run, enter "shutdown -r -t 0" to restart the machine.


Copyright © Windows knowledge All Rights Reserved