msg command in Windows 8

Nick1020

Member
Member
Messages
19
[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:

My Computer

System One

  • OS
    Windows 8.1
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 Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
You tried and failed. What more did you not understand of what you posted.
 

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
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 Computer

System One

  • OS
    Windows 8.1
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 Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
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 Computer

System One

  • OS
    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.

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 Computer

System One

  • OS
    Windows 8.1 Pro WMC
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home built
    CPU
    Q9650 @ 4.05 GHz
    Motherboard
    Gforce 780i SLI FTW
    Memory
    8GB Gskill DDR2 1200Mhz
    Graphics Card(s)
    GTX-480
    Sound Card
    Asus D2 Xonar
    Monitor(s) Displays
    HannsG
    Screen Resolution
    1680x1050
    Hard Drives
    Gskill 120GB SSD
    PSU
    Thermal Take 1000watts
    Case
    Thermal Take Xtreme
    Cooling
    9 fans air cooled
    Keyboard
    G15 logitech
    Mouse
    G9 logitech
    Internet Speed
    50mbps
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 Computer

System One

  • OS
    Windows 8.1
Have you tried adding the username/password of who is sending the msg to the Windows 8 Credential Manager>add Windows Credentials via the Control Panel?

Might need to reboot after adding the credential.
 

My Computer

System One

  • OS
    Windows 8.1 Pro WMC
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home built
    CPU
    Q9650 @ 4.05 GHz
    Motherboard
    Gforce 780i SLI FTW
    Memory
    8GB Gskill DDR2 1200Mhz
    Graphics Card(s)
    GTX-480
    Sound Card
    Asus D2 Xonar
    Monitor(s) Displays
    HannsG
    Screen Resolution
    1680x1050
    Hard Drives
    Gskill 120GB SSD
    PSU
    Thermal Take 1000watts
    Case
    Thermal Take Xtreme
    Cooling
    9 fans air cooled
    Keyboard
    G15 logitech
    Mouse
    G9 logitech
    Internet Speed
    50mbps
I've run into a slight problem.

Messages come through for the account that I have added to the credentials manager but I get a 'user does not exist or is disconnected' message for my partners account. She is able to send messages to me. If I edit the credentials to her username/password, it works as it should but then messages to my account on that computer will no longer work till I edit them again.

As a workaround, I have added her credentials based on IP address instead of PC name and this works but I then have to edit the msg server command with an ip address rather than pc name which is a slight annoyance but if that's the only resolution, I can live with it.

Would it be possible to add multiple Windows credentials for different users on the same pc name?
 

My Computer

System One

  • OS
    Windows 8.1
I've run into a slight problem.

Messages come through for the account that I have added to the credentials manager but I get a 'user does not exist or is disconnected' message for my partners account. She is able to send messages to me. If I edit the credentials to her username/password, it works as it should but then messages to my account on that computer will no longer work till I edit them again.

As a workaround, I have added her credentials based on IP address instead of PC name and this works but I then have to edit the msg server command with an ip address rather than pc name which is a slight annoyance but if that's the only resolution, I can live with it.

Would it be possible to add multiple Windows credentials for different users on the same pc name?

I'm glad that adding the credentials helped.

I would think it would be possible since different users sometimes use the same PC.

I'm not sure why you need to use the IP rather than the PC name although sometimes the PC name requires the -PC part at the end.

Feel free to mark as solved.
 
Last edited:

My Computer

System One

  • OS
    Windows 8.1 Pro WMC
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home built
    CPU
    Q9650 @ 4.05 GHz
    Motherboard
    Gforce 780i SLI FTW
    Memory
    8GB Gskill DDR2 1200Mhz
    Graphics Card(s)
    GTX-480
    Sound Card
    Asus D2 Xonar
    Monitor(s) Displays
    HannsG
    Screen Resolution
    1680x1050
    Hard Drives
    Gskill 120GB SSD
    PSU
    Thermal Take 1000watts
    Case
    Thermal Take Xtreme
    Cooling
    9 fans air cooled
    Keyboard
    G15 logitech
    Mouse
    G9 logitech
    Internet Speed
    50mbps
I've run into a slight problem.

Messages come through for the account that I have added to the credentials manager but I get a 'user does not exist or is disconnected' message for my partners account. She is able to send messages to me. If I edit the credentials to her username/password, it works as it should but then messages to my account on that computer will no longer work till I edit them again.

As a workaround, I have added her credentials based on IP address instead of PC name and this works but I then have to edit the msg server command with an ip address rather than pc name which is a slight annoyance but if that's the only resolution, I can live with it.

Would it be possible to add multiple Windows credentials for different users on the same pc name?

I'm glad that adding the credentials helped.

I would think it would be possible since different users sometimes use the same PC.

I'm not sure why you need to use the IP rather than the PC name although sometimes the PC name requires the -PC part at the end.

Feel free to mark as solved.

Here's my scenario; I have 3 computers on the network. Lets say, PC1, PC2 and PC3. PC1 is Windows 7 and using a local account PCs 2 & 3 are both running Windows 8.1. PC2 has two profiles, each login using MS account info.

The credentials I added to PC1 were:
Internet or network address: PC2
User name: My MS email address
Password: My MS password

This allows msg.exe messages from PC1 to my MS account on PC2. So far, so good but it's not possible to send msg.exe messages to my partner's account.

In order for me to do that, I have to add the following credentials:
Internet or network address: PC2
User name: Her MS email address
Password: Her MS password

This overwrites the first credentials I created which then makes it impossible to send msg.exe messages to my MS account.

I'm stuck on how to add more credentials for PC2 for different profiles. The only option I've come up with so far is:
Internet or network address: 192.168.0.4
User name: Her MS email address
Password: Her MS password

This enables me to keep my credentials for PC2 and msg.exe commands work for the missus' account although I have to use the IP address in the msg command instead of PC name.

I hope that makes sense. Basically, I just need to find out if it's possible to use the same PC name for multiple Windows Credentials. I've tried adding them as generic credentials but they have no effect then.
 

My Computer

System One

  • OS
    Windows 8.1
It seems like you would need to use the user name like Robs-PC rather than the IP in order to designate which user the message is going to.

If you are using the IP it can't designate which user because the same IP is used for both accounts.

This is the same way for remote desktop, you can use the IP as well as the User name which needs to be typed as it shows up under system like the picture shows.

Beyond this I really don't mess with the msg deal, and I've never once seen anyone else trying to use it so really don't know much about it.
 

Attachments

  • Robs-PC SYSTEM.PNG
    Robs-PC SYSTEM.PNG
    14.4 KB · Views: 90

My Computer

System One

  • OS
    Windows 8.1 Pro WMC
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Home built
    CPU
    Q9650 @ 4.05 GHz
    Motherboard
    Gforce 780i SLI FTW
    Memory
    8GB Gskill DDR2 1200Mhz
    Graphics Card(s)
    GTX-480
    Sound Card
    Asus D2 Xonar
    Monitor(s) Displays
    HannsG
    Screen Resolution
    1680x1050
    Hard Drives
    Gskill 120GB SSD
    PSU
    Thermal Take 1000watts
    Case
    Thermal Take Xtreme
    Cooling
    9 fans air cooled
    Keyboard
    G15 logitech
    Mouse
    G9 logitech
    Internet Speed
    50mbps
Back
Top