关机在winxp中实现远程关机(Remote shutdown in WinXP)

远程关机  时间:2021-04-14  阅读:()

在winxp中实现远程关机Remote shutdown in WinXPRemote shutdown in WinXP

In Windows XP, a new command line tool, shutdown, is added to"close or restart a local or remote computer"". Using it, wecan not only log off the user, turn off or restart the computer,but also realize the regular shutdown and remote shutdown.The syntax of this command is as follows:

Shut down, [-i, |-l|-s, |-r, |-a], [-f], [-m, [-t, xx],[\\ComputerName] ], [-c, message, ] [-d[u] [p] : xx:yy]

Among them, the meaning of each parameter is:

-i display graphical interface dialog box.

-l to cancel the current user, which is the default setting.-m ComputerName priority.

-s shut down the computer.

Restart after -r is closed.

-a abort shutdown. In addition to -l and ComputerName, thesystem ignores other parameters. During timeout, you can onlyuse -a.

-f forces the application to run off.

-m [\\ComputerName] specifies the computer to shut down.-t XX sets the timer used for system shutdown to XX seconds.The default value is 20 seconds.

-c 'message' specifies the message to be displayed in themessage area of the system shutdown window. You can use up to127 characters at most. Messages must be included in quotationmark s.

-d [u] [p] : xx:yy lists the reason codes for system shutdown.First, let' s take a look at some of the basic uses of thecommand:

1, write off the current user

Shutdown - L

This command can only log off native users and does not applyto remote computers.

2, turn off the local computer

Shutdown - S

3, restart the local computer

Shutdown - R

4, timing shutdown

Shutdown - s -t 30

Specifies that the computer will be turned off automaticallyafter 30 seconds.

5, stop the computer shutdown

Sometimes we set the computer after the regular shutdown, andif for some reason, want to cancel the shutdown operation, youcan use shutdown - A to stop. Such as:

Shutdown -s - t 300 sets the computer off in 5 minutes.Shutdown - A cancels the shutdown operation above.

These are some of the basic applications of the shutdown commandin this unit. As we have explained earlier, this command canoperate on remote computers in addition to shutting down andrestarting the local computer. But how can it be implemented?In the command format, there is a parameter, [-m

[\\ComputerName] , that specifies the name of the computer tobe turned off or restarted, and, if omitted, defaults to nativeoperation. You can try it with the following commands:Shutdown - S - M \\sunbird -t 30

In 30 seconds, shut down the computer named Sunbird; note:Sunbird is a LAN computer with the same Windows XP.

But after the command was executed, the computer Sunbird didnot respond at all, but the screen was prompted "Access isdenied" (denial of access)".

Why does this happen? In the original Windows XP the defaultsecurity policy, only the administrator group of users have theright to shut down the computer from the remote, but normallywe from other computer LAN to access the computer, only theguest user permissions, so when we execute the command, willappear "access denied".

After finding the root of the problem, the solution is verysimple, as long as you in the client computer (which can beremotely shut down the computer, such as the Sunbird) givepermission to the guest user remote shutdown. This can beachieved by using the local security policy in Windows XP' sgroup policy or management tool. Let' s introduce the grouppolicy as an example:

1, click the start button, select run, enter gpedit.msc in thedialog box, and then click OK to open the group policy editor.2, in the left pane of the group policy window, expand thecomputer configuration step by step > Windows Settings >Security Settings > local policy > user rights assignment".

3. In the right pane of the group policy window, select "forcedshutdown from the remote system", double-click it to open it.4, in the pop-up dialog box to display the "Administrators"group members only have the right from the remote shutdown;

click the dialog box below the "add user or group" button, andthen enter "guest" in the pop-up dialog box, click OK button.As shown in figure 9.

5, at this time, in the "from the remote system forced shutdown"property, add a "guest" user, click ok.

6, close the group policy window.

After the above operation,

We gave the computer Sunbird' s guest user the right to remoteshutdown. Later, if you want to remotely turn off the computerSunbird, just enter the following command in the computer inother Windows XP computers on your network:

Shutdown -s -M \\sunbird -t 30 (other arguments are the sameas above)

Figure 9

At this point, the dialog box on the Sunbird computer displaysa"system shutdown", indicating that the system is about to shutdown. Please save all the work you are running and log off.Unsaved changes will be lost. Shutdown is initiated bysunbird\guest. " There is also a timer below the dialog box toshow how much time it will be before the shutdown. In the timeof waiting for the shutdown, the user can perform other tasks,such as closing the program, opening the file, etc. , but thedialog box cannot be closed unless you stop the shutdown taskwith the shutdown – a command.

腾讯云轻量服务器两款低价年付套餐 2核4GB内存8M带宽 年74元

昨天,有在"阿里云秋季促销活动 轻量云服务器2G5M配置新购年60元"文章中记录到阿里云轻量服务器2GB内存、5M带宽一年60元的活动,当然这个也是国内机房的。我们很多人都清楚备案是需要接入的,如果我们在其他服务商的域名备案的,那是不能解析的。除非我们不是用来建站,而是用来云端的,是可以用的。这不看到其对手腾讯云也有推出两款轻量服务器活动。其中一款是4GB内存、8M带宽,这个比阿里云还要狠。这个真...

云基Yunbase无视CC攻击(最高500G DDoS防御),美国洛杉矶CN2-GIA高防独立服务器,

云基yunbase怎么样?云基成立于2020年,目前主要提供高防海内外独立服务器,欢迎各类追求稳定和高防优质线路的用户。业务可选:洛杉矶CN2-GIA+高防(默认500G高防)、洛杉矶CN2-GIA(默认带50Gbps防御)、香港CN2-GIA高防(双向CN2GIA专线,突发带宽支持,15G-20G DDoS防御,无视CC)。目前,美国洛杉矶CN2-GIA高防独立服务器,8核16G,最高500G ...

妮妮云(30元),美国300G防御 2核4G 107.6元,美国高速建站 2核2G

妮妮云的来历妮妮云是 789 陈总 张总 三方共同投资建立的网站 本着“良心 便宜 稳定”的初衷 为小白用户避免被坑妮妮云的市场定位妮妮云主要代理市场稳定速度的云服务器产品,避免新手购买云服务器的时候众多商家不知道如何选择,妮妮云就帮你选择好了产品,无需承担购买风险,不用担心出现被跑路 被诈骗的情况。妮妮云的售后保证妮妮云退款 通过于合作商的友好协商,云服务器提供2天内全额退款,超过2天不退款 物...

远程关机为你推荐
操作http波音737起飞爆胎客机起飞的时候时速是多少?重庆400年老树穿楼生长重庆海拔500左右的红沙土适合栽哪种果树重庆杨家坪猪肉摊主杀人昨天重庆九龙坡出了严重交通事故吗特朗普吐槽iPhone为什么这么多人讨厌苹果呢?iPhone配置不足但是iOS流畅度确实很高很强大,性能领先几乎所有国产小型汽车网上自主编号申请机动车自主选号有几种办法35邮箱邮箱地址怎么写什么是seoseo怎么学呢?网站后台密码破解怎样破解网站后台管理用户名密码dedecms自动采集织梦采集侠的功能介绍
美国域名 域名查询工具 com域名抢注 韩国加速器 好看的留言 正版win8.1升级win10 win8升级win10正式版 tk域名 英文站群 web服务器架设 qq对话框 息壤代理 搜索引擎提交入口 申请网页 双12 什么是web服务器 中国linux 华为云建站 免费网络 主机返佣 更多