Написать сообщение по сети windows

Загрузить PDF

Загрузить PDF

Net Send – это утилита командной строки, которая используется в Windows XP для отправки сообщений другим пользователям и компьютерам, подключенным к локальной сети. В Windows Vista утилита Net Send заменена утилитой msg.exe с похожей функциональностью и синтаксисом. Net Send не сможет отправить сообщения с компьютера под управлением Windows XP на компьютер под управлением более новой версии Windows.

  1. Step 1 Откройте командную строку.

    Утилита net send используется для отправки сообщений на другие сетевые компьютеры. Она запускается из командной строки. Откройте командную строку из меню «Пуск» или нажмите Win+R и введите cmd.

    • Если вы работаете в Windows Vista/7/8/8.1/10, перейдите в следующий раздел. Утилита net send не используется в новых версиях Windows (начиная с Vista) и заменена утилитой msg.
  2. Step 2 Введите команду.

    Введите net send и нажмите Пробел. Далее нужно ввести информацию, которая содержит текст и направление сообщения.

  3. Step 3 Определите получателя сообщения.

    Сообщение можно отправить как одному пользователю, так и группе пользователей; это делается несколькими способами.[1]

    • net send имя – введите имя пользователя или сетевое имя компьютера, чтобы отправить сообщение конкретному пользователю. Если в имени есть пробел, оно заключается в кавычки (например, net send "Ivan Ivanov").
    • net send * – сообщение будет отправлено всем пользователям текущего домена или рабочей группы.
    • net send /domain:имя – сообщение будет отправлено всем пользователям указанного домена или рабочей группы.
    • net send /users – сообщение будет отправлено всем пользователям, которые подключены к серверу.
  4. Step 4 Введите текст сообщения.

    Указав получателя(ей), введите текст сообщения. Оно должно быть не более 128 символов.

    • Например: net send "Ivan Ivanov" Давай встретимся через 10 минут.
  5. Step 5 Отправьте сообщение.

    Закончив вводить сообщение, нажмите Enter, чтобы отправить его. Получатель увидит сообщение в диалоговом окне Windows (но только если он вошел в систему и подключен к сети).

    Реклама

  1. Step 1 Проверьте, поддерживает ли система команду msg.

    Функционал этой команды во многом аналогичен функционалу неиспользуемой команды net send. Но эта команда работает только в профессиональной и корпоративной версиях Windows. Если вы работаете в Windows Домашняя, обновите систему до версии Профессиональная или Корпоративная, чтобы получить возможность пользоваться командой msg.[2]

    • Чтобы узнать версию Windows, нажмите Win+Pause или щелкните правой кнопкой мыши по «Компьютер» и выберите «Свойства». Версия Windows отобразится в разделе «Издание Windows».
  2. Step 2 Откройте командную строку.

    Как и net send, команда msg запускается из командной строки. Командная строка запускается разными способами (в зависимости от версии Windows), или просто нажмите Win и введите cmd.

    • Windows Vista/7: откройте командную строку из меню «Пуск».
    • Windows 8.1/10: щелкните правой кнопкой мыши по кнопке «Пуск» и выберите «Командная строка».
    • Windows 8: нажмите Win+X и выберите «Командная строка».
  3. Step 3 Введите команду.

    Введите msg и нажмите Пробел. Далее нужно ввести информацию, которая содержит текст и направление сообщения.

  4. Step 4 Определите получателя сообщения.

    По сравнению с net send, команда msg обладает дополнительными опциями.[3]

    • msg имя пользователя – введите имя конкретного пользователя.
    • msg сеанс – введите имя конкретного сеанса.
    • msg ID сеанса – введите идентификатор конкретного сеанса.
    • msg @filename – введите имя файла, который содержит список имен пользователей, сеансов и/или идентификаторов сеансов. Полезно для отправки сообщений сотрудникам отделов.
    • msg * – сообщение будет отправлено всем пользователям, которые подключены к серверу.
  5. Step 5 Укажите сервер, пользователям...

    Укажите сервер, пользователям которого нужно отправить сообщение (если хотите). Если нужно отправить сообщение пользователю, который подключен к другому серверу, после информации о получателе введите информацию о сервере. Если сервер не указан, сообщение будет отправлено на текущий сервер.

    • msg * /server:имя сервера
  6. Step 6 Задайте ограничение по времени (если хотите).

    Можно задать ограничение по времени, чтобы указать интервал ожидания подтверждения от получателя. Временной модификатор вводится после информации о сервере (если она есть).

    • msg * /time:секунды (например, 300 секунд для пятиминутного интервала)
  7. Step 7 Введите текст сообщения.

    После ввода различных параметров введите текст сообщения. Или нажмите Enter, и система предложит ввести текст сообщения в отдельной строке.

    • Например: msg @salesteam /server:EASTBRANCH /time:600 Поздравляю с увеличением продаж в этом квартале!
  8. Step 8 Отправьте сообщение.

    Для этого нажмите Enter. Адресат получит его немедленно.

    • Команда msg предназначена для отправки сообщений пользователям терминалов, а не только разным компьютерам, подключенным к одной сети.
  9. Step 9 Устраните неполадки.

    При работе с msg можно столкнуться со следующими ошибками: [4]

    • ‘msg’ is not recognized as an internal or external command, operable program or batch file. (msg не распознается в качестве внутренней или внешней команды, исполняемой программы или пакетного файла). В этом случае версия Windows не поддерживает msg. Обновите Windows до версии Профессиональная.
    • Error 5 getting session names (Ошибка 5 получение имен сеансов) или Error 1825 getting session names (Ошибка 1825 получение имен сеансов). Ошибка при общении с получателем. Можно попытаться устранить такую неполадку, если на компьютере получателя открыть редактор реестра (для этого выполните команду regedit), перейти в HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server и изменить значение параметра «AllowRemoteRPC» с 0 на 1.

    Реклама

Об этой статье

Эту страницу просматривали 88 831 раз.

Была ли эта статья полезной?

When you have computers connected over a network, it is possible to send a message to them without using any software. The process works in a similar way to how data is sent from one computer to another. Windows offers MSG or messaging tool which operates from the Command Prompt. In this post, we will discuss how you can send message to an IP address or user from the Command Prompt.

Send Message to IP Address

MSG Command Syntax to Send Message to IP or User

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

Send Message to IP or User

How to send a message to an IP address or a Windows 11/10 PC from Command Prompt

MSG command helps you to send a message to a specific user on a particular computer. If you are an admin, you can use the command syntax to figure out the exact username.</

  • Open Command Prompt with admin privileges. (Type CMD in the search and launch it with admin permissions)
  • Make sure to keep the username, server name, etc. are with you.
  • Type MSG <username> or msg * /server:computername message and press the Enter key
  • It will let you type any number of the message unless you hit control + z
  • Once you type the message, press the Enter key, and it will send the message.

The message should be received on the other side if messaging services are set up in the form of a pop-up window. The user, on the other side, can also use the same method to send a message.

Earlier to Windows 11/10, it was possible to use the NET command to send messages to a particular IP address, but it has been deprecated.

How Can I Find the IP Address of Another Computer?

  • Open Windows Terminal by making a right-click on the Start menu and then clicking on it
  • Type nslookup and the domain name of the computer
  • It will reveal the IP address instantly.

How to send multiple line messages to another Windows PC?

  • First, write the message in a text file, and save it. Make sure to note the location.
  • Open Windows Terminal, and execute the command.
type \fullpath\multiplelinemessages.txt | msg * /server:computername

It will open the pop-up window, and the message will be displayed as you wrote it.

How Do I Send Messages to Another Computer Using PowerShell?

You can use the following script:

$name = read-host "Enter computer name "
$msg = read-host "Enter your message "
Invoke-WmiMethod -Path Win32_Process -Name Create -ArgumentList "msg * $msg" -ComputerName $name

I hope the post was easy to follow, and you are now able to secretly send the message to computers on your network or send a message to IP addresses or a User.

Microsoft Windows provides an effortless method for sending messages to other computers on the local network, called Net Send. In this article we will show you how to make the most of this feature.

How to send a message to another PC on a local network?

If you wish to send a message to another computer in your network, follow these steps:

  • Start command prompt (cmd) – type cmd in the searchbox and run the app
  • Type the following command as:
msg /SERVER:DestinationPC * /TIME:60 “This is the message to be sent to a PC named DestinationPC and closes in 60 seconds."
  • You will need to replace DestinationPC with the name of the desired PC (you can find this in the list of computers that are currently sharing your network, if you don’t already know the PC name).
  • Now, replace the value for TIME with how long you want the message to appear on the other screen for. For example TIME:30 for 30seconds
  • Then replace the text between the quotation marks and the message you want to send.
  • Finally, you can hit enter, and the message will be sent.

How to use Net send to send messages?

Here is the first alternative way of sending messages that may work if you have an older version of Windows. Here’s how:

  • Click Start > Run.
  • Type cmd, and press Enter
  • In the window that opens, type Net send followed by the computer’s name to which you wish to send the message.
  • Next, enter the message. For example, the format should resemble «Net send PC01 can you read this message?»

How to send messages with cmd prompt?

It is easy to send messages through cmd prompt to other systems here is the answer first we have to set our systems messenger ACTIVE. For it, follow these steps:

  • 1. Go to RUN
  • 2. Type
    services.msc
  • 3. Scroll down and right click on MESSENGER
  • 4. Select PROPERTIES
  • 5. Then for enabling it go to STARTUP TYPE and select AUTOMATIC
  • 6. Then OK

And this should be performed on both sides (SENDER & RECEIVER). After that if you want to send message then do the following steps:

  • 1. Go to cmd prompt
  • 2. Type syntax as follows:
     net send <ipaddress of reciever>  <message to be send>

Ex:

net send 172.16.6.99 "hello" 

How to fix Error 5, Error 1825

When using the msg command, the following error may occur: Error 5 when getting session names or Error 1825 when getting session names.

These error messages indicate a failure in the connection to the recipient of the message. To correct these errors, you need to act on the side of the recipient. Run the command regedit to open the registry editor on the recipient’s computer and navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

Here change AllowRemoteRPC from 0 to 1.

Alternative solution

  • Run as Administrator: If you’re getting this error while running an application or command, try running it as an administrator. Right-click on the program and select «Run as Administrator.»
  • Check Permissions: Ensure the account you’re using has adequate permissions for the action you’re trying to perform. You might need administrative access.
  • Antivirus or Security Software: Sometimes, antivirus software can restrict access. Temporarily disabling it might help identify if that’s the issue.

Do you need more help with Windows? Check out our forum!

The net send command is a Command Prompt command used to send messages to users, computers, and messaging aliases on the network. It’s one of many net commands.

Net Send Command Availability

The net send command is available from within the Command Prompt in Windows XP, as well as in older versions of Windows and in some Windows Server operating systems.

Windows XP was the last version of Windows to include the net send command, so it’s not available in Windows 11, Windows 10, Windows 8, Windows 7, or Windows Vista. Instead, the msg command replaces the net send command in those versions of Windows.

The availability of certain net send command switches and other net send command syntax may differ from operating system to operating system.

Net Send Command Syntax

net send {name | * | /domain[:domainname] | /users} message [/help] [/?]

See How to Read Command Syntax if you’re not sure how to read the command syntax as it’s written above or shown in the table below.

Net Send Command Options
Item Explanation
name This option specifies the username, computer name, or messaging name (defined with the net name command) that you want to send the message to.
* Use the asterisk to send the message to every user in your current domain or workgroup.
/domain This switch can be used alone to send the message to all the names in the current domain.
domainname Use this option with /domain to send the message to all the users in the specified domainname.
/users This option sends the message to all the users connected to the server that the net send command is being executed from.
message This net send command option is obviously required and specifies the exact text of the message you’re sending. The message can be a maximum of 128 characters and must be wrapped in double quotes if it contains a slash.
/help Use this switch to display detailed information about the net send command. Using this option is the same as using the net help command with net send: net help send.
/? The help switch also works with the net send command but only displays the basic command syntax. Executing net send without options is equal to using the /? switch.

You can store the output of the net send command in a file using a redirection operator with the command. 

Net Send Command Examples

Here are some examples that show how to use the net send command:

Send to All Workgroup Users

 net send * Please proceed to CR103 immediately for a mandatory meeting

In this example, net send is used to send the Please proceed to CR103 immediately for a mandatory meeting message to all the members * of the current workgroup or domain.

Send to All Server Users

 net send /users "Will the person with the A7/3 client file open please save your work and close it? Thank you!"

Here, the command is used to send all the members of the current server /users the message Will the person with the A7/3 client file open please save your work and close it? Thank you!. The message is in quotes because a slash was used.

Send to All Users in Specific Domain

 net send /domain:abcd This is just a tornado drill

Net send is used in this example to message all users in the abcd domain that This is just a tornado drill.

Send to Specific User

 net send smithm You're Fired!

While it’s a completely unprofessional way to terminate someone’s employment, in this example, the net send command is used to send the user smithm a message he probably didn’t want to hear: You’re Fired!.

Net Send Related Commands

The net send command is a subset of the net command and so is similar to its sister commands like net use, net time, net user, net view, etc.

More Help With the Net Send Command

If this command isn’t working, you might see the following error in Command Prompt:

 'net' is not recognized as an internal or external command, operable program or batch file.

There are two ways to fix this, but only one is a permanent solution…

You can move the current working directory to be System32, the path where the cmd.exe file is located, so that Command Prompt knows how to run the command. Do this with the cd (change directory) command:

 cd c:\windows\system32\

From there, you can run the command without seeing that error. However, this is only a temporary solution that you’ll have to do all the time for every command. The real problem is that the current environment variable hasn’t been set up correctly.

Here’s how to restore the proper environment variable necessary for Command Prompt to understand your commands in Windows XP:

  1. Open the Start menu and right-click My Computer.

  2. Choose Properties.

  3. Select the Environment Variables button from the Advanced tab.

  4. Select Path from the list of variables in the System Variables section.

  5. Choose Edit below the System Variables section.

  6. In the Variable value text box, look for any paths that read exactly like this:

     C:\Windows\system32
    

    or…

     %SystemRoot%\system32
    
  7. You should only have one in there, but if you have neither, then go to the very end of the text, type a semicolon, and then enter the top path from above, like this:

     ;C:\Windows\system32
    

    Is one already in there? If so, it’s most likely the second one that reads «%SystemRoot%» at the beginning. If so, change that part of the path to be «C:\Windows\system32» (so long as your Windows installation is on the C: drive, which is most likely true).

    For example, you’d change %SystemRoot%\system32 to C:\Windows\system32.

    If it helps, copy all the text into Notepad and do the editing there. When you’re done, just paste the edited variable value back into that text box to overwrite the existing text.

    Don’t edit any other variables. If there happens to be no variables in this text box, then you can enter the above path without the semicolon since it’s the only entry.

  8. Select OK a few times to save the changes and exit the System Properties window.

  9. Restart your computer.

If net send commands appear to work in Command Prompt with a «successful» message, but the pop-up doesn’t show up on the computers the message is sent to, check that the receiving computers have the Messenger service enabled.

To enable this service in Windows XP, go to Start > Run, enter services.msc, double-click Messenger, change Startup type to Automatic, and then go to Apply > Start.

You can also enable the Messenger service from the command line:

 sc config messenger start=auto
net start messenger

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Основные сведения об операционной системе windows
  • Python windows file metadata
  • Как посмотреть производителя материнской платы на windows 10
  • Перенаправление принтера в windows server 2008
  • Удаление папки windows old в windows 10 через командную строку