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

萤光云(20元/月),香港CN2国庆特惠

可以看到这次国庆萤光云搞了一个不错的折扣,香港CN2产品6.5折促销,还送50的国庆红包。萤光云是2002年创立的商家,本次国庆活动主推的是香港CN2优化的机器,其另外还有国内BGP和高防服务器。本次活动力度较大,CN2优化套餐低至20/月(需买三个月,用上折扣+代金券组合),有需求的可以看看。官方网站:https://www.lightnode.cn/地区CPU内存SSDIP带宽/流量价格备注购...

tmhhost:暑假快乐,全高端线路,VPS直接8折,200G高防,美国gia日本软银韩国cn2香港cn2大带宽

tmhhost为2021年暑假开启了全场大促销,全部都是高端线路的VPS,速度快有保障。美国洛杉矶CN2 GIA+200G高防、洛杉矶三网CN2 GIA、洛杉矶CERA机房CN2 GIA,日本软银(100M带宽)、香港BGP直连200M带宽、香港三网CN2 GIA、韩国双向CN2。本次活动结束于8月31日。官方网站:https://www.tmhhost.com8折优惠码:TMH-SUMMER日本...

麻花云:3折优惠,香港CN2安徽麻花云香港安徽移动BGP云服务器(大带宽)

麻花云在7月特意为主机测评用户群定制了促销活动:香港宽频CN2云服务器、安徽移动云服务器(BGP网络,非单线,效果更好)、安徽移动独立服务器、安徽电信独立服务器,全部不限制流量,自带一个IPv4,默认5Gbps的DDoS防御。活动链接:https://www.mhyun.net/act/zjcp特价云服务器不限流量,自带一个IPv4,5Gbps防御香港宽频CN2全固态Ⅲ型 4核4G【KVM】内存:...

远程关机为你推荐
全国企业信息查询想查一个企业的信息,哪个网站提供信息查询?outlookexpressoutlook Express是什么啊?怎么用啊?资费标准中国移动4g18元套餐介绍申请400电话400电话如何申请?店铺统计淘宝店运营每天需要统计哪些数据,我要做个表格403forbidden403forbidden广告管理系统求一份广告公司管理制度,要详细点,包括奖惩条例,抽成这些。seo基础教程新手做SEO需要学习哪些东西空间导航自定义名称在空间里 给导航 改名字 怎么改w3c验证“W3C代码校验”的作用
免费二级域名申请 80vps cdn服务器 163网 512m内存 租空间 1g空间 免费dns解析 支付宝扫码领红包 银盘服务是什么 上海电信测速 免费asp空间申请 2016黑色星期五 iptables 装修瓦工招聘 招聘瓦工 天鹰抗ddos防火墙 dmz主机 电脑主机配置 企业私有云存储 更多