关机在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.

香港E3 16G 390元/ 香港E5*2 32G 600元/ 香港站群 4-8C 1200元/ 美国200G高防 900/ 日本100M 700元

3C云国内IDC/ISP资质齐全商家,与香港公司联合运营, 已超6年运营 。本次为大家带来的是双12特惠活动,香港美国日本韩国|高速精品|高防|站群|大带宽等产品齐全,欢迎咨询问价。3C云科技有限公司官方网站:http://www.3cccy.com/客服QQ:937695003网页客服:点击咨询客户QQ交流群:1042709810价目表总览升级内存 60元 8G内存升级硬盘 1T机械 90元 2...

DMIT(季度$28.88)调整洛杉矶CN2 GIA优化端口

对于DMIT商家已经关注有一些时候,看到不少的隔壁朋友们都有分享到,但是这篇还是我第一次分享这个服务商。根据看介绍,DMIT是一家成立于2017年的美国商家,据说是由几位留美学生创立的,数据中心位于香港、伯力G-Core和洛杉矶,主打香港CN2直连云服务器、美国CN2直连云服务器产品。最近看到DMIT商家有对洛杉矶CN2 GIA VPS端口进行了升级,不过价格没有变化,依然是季付28.88美元起。...

Atcloud:全场8折优惠,美国/加拿大/英国/法国/德国/新加坡vps,500g大硬盘/2T流量/480G高防vps,$4/月

atcloud怎么样?atcloud刚刚发布了最新的8折优惠码,该商家主要提供常规cloud(VPS)和storage(大硬盘存储)系列VPS,其数据中心分布在美国(俄勒冈、弗吉尼亚)、加拿大、英国、法国、德国、新加坡,所有VPS默认提供480Gbps的超高DDoS防御。Atcloud高防VPS。atcloud.net,2020年成立,主要提供基于KVM虚拟架构的VPS、只能DNS解析、域名、SS...

远程关机为你推荐
phpwindPHPWind 是什么?怎么用?wordpresswordpress 到底是个什么东西?我要简单明了易懂的介绍。。iproute两个独立局域网 互相访问。怎么做。iprouteip route-static 192.168.1.0 255.255.255.0 3.3.3.2什么意思搜狗360电脑自动安装360安全浏览器汉字cuteftp徐州商标介绍徐州的一种产品即时通平台老司机进来 求个直播平台网站方案设计求一篇校园网络设计的方案oa办公软件价格一套OA办公系统多少钱
100m网站空间 便宜域名注册 域名查询系统 xenvps a2hosting hawkhost 秒解服务器 idc评测网 hinet 免费cdn 服务器监测 中国电信测速器 免费ftp cdn网站加速 免费蓝钻 hdsky 塔式服务器 apache启动失败 magento主机 globalsign 更多