Send a message over network using cmd to specified PC name and username?

巧了我就是萌 提交于 2019-12-11 19:53:50

问题


Is there any way in Windows 7 to send a message to another computer within the active directory? I know the host name and username. And if there is, can I make it to where I don't have to start anything on the computer? Thanks!


回答1:


You may be able to use msg.exe. Try typing msg.exe /? at the command prompt.

C:\>msg.exe /?
Send a message to a user.

MSG {username | sessionname | sessionid | @filename | *}
    [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]

  username            Identifies the specified username.
  sessionname         The name of the session.
  sessionid           The ID of the session.
  @filename           Identifies a file containing a list of usernames,
                      sessionnames, and sessionids to send the message to.
  *                   Send message to all sessions on specified server.
  /SERVER:servername  server to contact (default is current).
  /TIME:seconds       Time delay to wait for receiver to acknowledge msg.
  /V                  Display information about actions being performed.
  /W                  Wait for response from user, useful with /V.
  message             Message to send.  If none specified, prompts for it
                      or reads from stdin.


来源:https://stackoverflow.com/questions/22853783/send-a-message-over-network-using-cmd-to-specified-pc-name-and-username

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!