java远程唤醒pc代码 java远程桌面控制

java怎么实现远程关闭计算机,远程唤醒的做好了,远程关机的不知道该怎么做有管理员权限吧,那用shutdown命令就可以了
shutdown -m \\192.168.0.10 -f -s -t 0
shutdown /? 看看帮助信息 。
C:\Windows\system32shutdown /?
Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]
[/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
No argsDisplay help. This is the same as typing /?.
/?Display help. This is the same as not typing any options.
/iDisplay the graphical user interface (GUI).
This must be the first option.
/lLog off. This cannot be used with /m or /d options.
/sShutdown the computer.
/rShutdown and restart the computer.
/gShutdown and restart the computer. After the system is
rebooted, restart any registered applications.
/aAbort a system shutdown.
This can only be used during the time-out period.
/pTurn off the local computer with no time-out or warning.
Can be used with /d and /f options.
/hHibernate the local computer.
Can be used with the /f option.
/eDocument the reason for an unexpected shutdown of a computer.
/m \\computer Specify the target computer.
/t xxxSet the time-out period before shutdown to xxx seconds.
The valid range is 0-315360000 (10 years), with a default of 30.
If the timeout period is greater than 0, the /f parameter is
implied.
/c "comment" Comment on the reason for the restart or shutdown.
Maximum of 512 characters allowed.
/fForce running applications to close without forewarning users.
The /f parameter is implied when a value greater than 0 is
specified for the /t parameter.
/d [p|u:]xx:yyProvide the reason for the restart or shutdown.
p indicates that the restart or shutdown is planned.
u indicates that the reason is user defined.
If neither p nor u is specified the restart or shutdown is
unplanned.
xx is the major reason number (positive integer less than 256).
yy is the minor reason number (positive integer less than 65536).
计算机远程唤醒命令首先声明一点,在你机上安装任何远程控制软件的客户端都不可以实现远程唤醒 , PCAnywhere、RemoteAdministrator之类的远程控制软件在关机的情况下根本不可能工作,手机短信实现远程唤醒也是天方夜谭 。远程唤醒只能基于你的计算机的硬件去实现 。
现在假设A、B两机位于同一个局域网中 ,
要用主控计算机A机远程唤醒被控计算机B 。
那你只要在B机的CMOS设置(有人喜欢叫BIOS设置)中设置好两个地方:
1.开启“Wake
on
PCI
Card”功能 , 没有这项的设置的话,那可能就要插远程唤醒电缆了;
这步的目的是“在关机时为网卡供电”
【java远程唤醒pc代码 java远程桌面控制】2.开启“Wake
Up
On
LAN”或“Resume
by
LAN”功能;
这步的目的是“让主板接受网卡发送的唤醒信号”
设置好之后,就保存退出 。
在A机你要下载局域网唤醒的小软件,这里向大家推荐两款 。
PCnet
Magic
Packet
Utility——AMD的产品,英文介面,需要安装才可以使用
;pn=0.html
NetWaker
for
windows
简体中文版
下面以AMD的MagicPacket为例 , 在A机下载安装好 。该软件默认安装在C:\pcnet\magic_pkt目录下,由于不会在程序项中或桌面上增加任何快捷方式,因此,要想运行该软件,用户必须自己到所安装的目录下执行magpac.exe,自己动手将该程序在桌面上建立一个快捷方式当然更方便了 。
运行magpac.exe,在“Magic
Packets”菜单中单击“Power
On
OneHost”(启动某一主机)命令,显示“Send
a
Magic
Packet
to
OneHost”(向主机发送唤醒数据包)对话框(如图所示) 。在“Destination
EthernetAddress”(目标以太网地址)中输入B机的网卡MAC地址 , 单击“Send”(发送)按钮 。B机将自动启动 。
Magic
Packet还可以远程唤醒局域网内多台计算机 。
如何一键远程唤醒休眠电脑使用向日葵远程控制软件电脑休眠时,我们可以一键远程唤醒 。具体有以下三种方法:
第一种:启用 BIOS 的远程唤醒选项
其实这个想法完成起来并不难,由于我们的电脑网卡自身就是自带近程唤醒特技哒~ 所以第一步当然就是要开启电脑底层硬件自带的这个功用 。办法很复杂:比方电脑唤醒设置项为 Wake on PME ,按回车和方向键将其设为 Enable 形态 。
第二种:获取目的电脑的 MAC 网卡地址
这个就很复杂咯,留意需求获取的是被唤醒目的电脑的 MAC 地址,间接在目的主机上执行 cmd 命令:ipconfig /all ,就可以看到物理网卡(Physical Address)的 MAC 地址 。
第三种:发送唤醒包 一键启动目标电脑
这里我们分两种状况,辨别是内网 LAN 唤醒 和外网 WAN 唤醒 。
向日葵远程控制是一款面向企业的专业PC管理和控制服务 。只要在互联网的环境下 , 可轻松访问暗转了向日葵远程控制软件的主机,进行远程开机 。
java远程唤醒pc代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于java远程桌面控制、java远程唤醒pc代码的信息别忘了在本站进行查找喔 。

    推荐阅读