|
Net Send 命令的用法
Net send用于将消息发送到局域网中的其它用户,目的主机只有开通了信使服务(Messenger服务)才能正确接收消息,消息在发送时可以用ip地址,计算机名或者消息名来确定目的主机,所谓消息名可以看作是计算机名的别名。
一、命令的详细用法 命令格式:net send {name | * |/domain [name]/users} message
参数说明: name : 要接收、发送消息的用户名或计算机名。 * : 将消息发送到组中的所有用户。 /domain[name] : 将消息发送到计算机域中的所有用户。 users : 将消息发送到与服务器连接的所有用户。 message : 要发送的消息内容。
例如: 1、net send 计算机名 内容 net send Computer001 Please shutdown the computer at 10:00 将消息Please shutdown the computer at 10:00发送到Computer001。 2、net send ip地址 内容 net send 222.197.21.254 Please shutdown the computer at 10:00 将消息Please shutdown the computer at 10:00发送到222.197.21.254。 3、net send /users This server will shut down in 5 minutes. 将消息This server will shut down in 5 minutes.发送到与服务器连接的所有用户。 4、要发送包含斜线 (/) 的消息 net send Com001 "Format your disk with FORMAT /4"
二、开启信使服务 因为很多人利用windows下messenger的漏洞进行垃圾广告的发送 ,所以,现在很多人都把windows 的messenger服务给关闭了,而且在一些版本比较新的操作系统中,信使服务的缺省值一般都是关闭,即使没有关闭信使服务,防火墙也会把messenger的端口关闭,可以按照以下步骤启用messenger服务。 1. 打开 Windows 资源管理器,在左窗格中,右键单击“我的电脑”,然后单击“管理”。 2. 在“计算机管理”窗口中,展开左窗格中的“服务和应用程序”,然后单击“服务”。 (WindowsXP可以直接在“运行”中输入services.msc来调用“服务”。) 4. 在右窗格中,双击“Messenger”。 5. 在“Messenger 的属性(本地计算机)”对话框中,单击“常规”选项卡。 6. 在“常规”选项卡中,从“启动类型”列表中选择“自动”,然后单击“应用”。 7. 在“服务状态”下,单击“启动”,然后单击“确定”。
2007-4-8
|
一共有 0 条评论