Windows 8 and 8.1 Forums


msg command in Windows 8

  1. #1


    Posts : 19
    Windows 8.1

    [solved]msg command in Windows 8


    Does anyone know if it's possible to use the msg command on a Microsoft account on Windows 8.1 please?

    I can send messages from the MS account to other computers but unable to receive them.

    I get the following error message:
    Error 5 getting session names

    When switching the account back to a local account, the messages work as they should.

    I've tried using my MS username and email address as username as well as the * (all users) switch but no joy.

    AllowRemoteRPC is set to 1 and fDenyTSConnections is 0.

    Thanks.
    Last edited by Nick1020; 23 Apr 2014 at 21:30.

      My System SpecsSystem Spec

  2. #2


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    You have already done the footwork to show that it does not. There is third party software that you can use on computers, to send messages across the LAN. Or you could just write your own for private use.
      My System SpecsSystem Spec

  3. #3


    Posts : 19
    Windows 8.1


    Thanks for the reply broe23.

    So, it's definitely not possible then via msg on a MS account?
      My System SpecsSystem Spec

  4. #4


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    You tried and failed. What more did you not understand of what you posted.
      My System SpecsSystem Spec

  5. #5


    Posts : 19
    Windows 8.1


    I tried and failed so decided to seek advice from others who may know of a workaround or resolution.

    Being new to Windows 8 as well as using a MS account as a login for Windows, I was hoping that someone could provide a definitive answer.

    Thanks for the help broe.
      My System SpecsSystem Spec

  6. #6


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    Windows 8 works the same way as Windows 7 does. You have already stated that you are unable to send a Network message. I have stated that you can either look for a pre-built option, or make one up yourself. There is not much else to state on this.

    Your best bet is to load Team Viewer on all of the machines and use the Messaging capabilities for that software.
      My System SpecsSystem Spec

  7. #7


    Central IL
    Posts : 3,468
    Linux Mint 17.2


    Since you would not go out and research. Here is one example for C#. Secured Intranet Messenger using MSMQ in C#
      My System SpecsSystem Spec

  8. #8


    Posts : 19
    Windows 8.1


    Thanks for the input.

    If Windows 8 worked in the same way as Windows 7, there would be no problem.

    I use RealVNC which has a built-in chat app but I was hoping to use something built-in, such as msg which can send messages direct from the command prompt without the need to connect any other software.

    Thanks for the tip regarding TeamViewer but I'm still looking for any possible fixes to sending messages to a MS user account via msg.

    If anyone else has any suggestions, that would be cool.
      My System SpecsSystem Spec

  9. #9


    Quote Originally Posted by Nick1020 View Post
    Thanks for the input.

    If Windows 8 worked in the same way as Windows 7, there would be no problem.

    I use RealVNC which has a built-in chat app but I was hoping to use something built-in, such as msg which can send messages direct from the command prompt without the need to connect any other software.

    Thanks for the tip regarding TeamViewer but I'm still looking for any possible fixes to sending messages to a MS user account via msg.

    If anyone else has any suggestions, that would be cool.
    At the bottom of the page in the following link it shows a registry adjustment you can make that relates to the error message "Error 5 getting session names".

    The registry adjustment may not work with Windows 8 but this is better than throwing in the towel without even trying then telling everyone to use Team Viewer.

    If you have any problems or receive an "access denied" error or "Error 5 getting session names" error while you trying to use msg.exe, try the following steps to fix the problem with msg command:

    1. Open the Registry Editor ( regedit.exe ).

    2. In the left panel, locate and then click on the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

    3. In the right panel, find the key AllowRemoteRPC and be sure the value of the key is 1. If the value is not 1, change it to 1.

    4. Close Registry Editor and restart your computer.

    5. Run MSG.EXE command in the elevated CMD window. Launch it when you hold Ctrl+Shift keys to enter elevated mode.


    Source: Msg command how to, how to send messages via msg command
      My System SpecsSystem Spec

  10. #10


    Posts : 19
    Windows 8.1


    Quote Originally Posted by chev65 View Post
    Quote Originally Posted by Nick1020 View Post
    Thanks for the input.

    If Windows 8 worked in the same way as Windows 7, there would be no problem.

    I use RealVNC which has a built-in chat app but I was hoping to use something built-in, such as msg which can send messages direct from the command prompt without the need to connect any other software.

    Thanks for the tip regarding TeamViewer but I'm still looking for any possible fixes to sending messages to a MS user account via msg.

    If anyone else has any suggestions, that would be cool.
    At the bottom of the page in the following link it shows a registry adjustment you can make that relates to the error message "Error 5 getting session names".

    The registry adjustment may not work with Windows 8 but this is better than throwing in the towel without even trying then telling everyone to use Team Viewer.

    If you have any problems or receive an "access denied" error or "Error 5 getting session names" error while you trying to use msg.exe, try the following steps to fix the problem with msg command:

    1. Open the Registry Editor ( regedit.exe ).

    2. In the left panel, locate and then click on the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

    3. In the right panel, find the key AllowRemoteRPC and be sure the value of the key is 1. If the value is not 1, change it to 1.

    4. Close Registry Editor and restart your computer.

    5. Run MSG.EXE command in the elevated CMD window. Launch it when you hold Ctrl+Shift keys to enter elevated mode.


    Source: Msg command how to, how to send messages via msg command
    Thanks for the reply chev65.

    As I explained in the first post, I've already set AllowRemoteRPC to 1 and when using a local account on Windows 8.1, msg messages are able to be received. The 'Error 5 getting session names' error only appears when trying to send an msg message to a Windows 8 user who is signed in with their MS account.

    I was wondering if there was a way to modify the username in the command so that it is recognised on the target machine.

    msg /server:PC-Name Username message

    For username I have tried Windows username, MS alias, MS email address as well as * and also sessionid but I'm unable to get past Error 5 when sending messages to an MS account. It works fine the other way and the message box is titled message from 'Windows 8 username' which makes it a little surprising that I can't send back to that username.
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
msg command in Windows 8
Related Threads
How to Run "SFC /SCANNOW" Command at Boot or in Windows 8 and 8.1 The SFC command scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions. This tutorial will show you how to run the sfc /scannow command at boot or in Windows 8 to...
Command Line Reference for Windows 8 and 8.1 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial will...
windows command procesor in System Security
every time i switch on my laptop i get a windows command procesor black box pop up with writing in it i cant read what the writing says brcause it dissapears quickly some one says its a virus or spyware. when i run a virus scan no problems are found and when i run a malware scan it says no problems...
Hello, I have a really dumb question, but I somehow locked the keyboard on an hp 3125 netbook that runs Windows 8. Does anyone happen to know the command to unlock the keyboard? I tried the fn(function keys) with no success. I appreciate any help you can give me with this one, just a dumb rookie...
I can't run process explorer anymore. It crashes at startup and i can't uninstall any programs (error while trying to uninstall... blabla) i tried to use system restore but it didn't work. I am at loss. I don't know what to do. I think i will go back to windows 7. Windows 8 doesn't...
How to Open a Command Prompt in Windows 8 and 8.1 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial will...
Windows Command Processor in General Support
I download the and burned the iso image when the consumer preview became available. I was getting an error from the action center that said wcpotherfailure3. This morning I decided to download and burn the iso again to see if it was something with the previous image. After the...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook