Thursday, November 18, 2010

Windows7 msg command usage

In Windows7 there is no direct command like netsend. 
Here you can use "Msg" command for same purpose. 
you can create a .bat file with following and can  use it diectly. 
@echo off
cls
echo.
set choice=
set /p choice=Enter in the target hostname or IP:
set choice1=
set /p choice1=Enter in the Message:
msg /SERVER:%choice% console %choice1%
pause

But before that you have to make sure on remote pc where you are goin to send this message has enabled the following key: 

HKLM\System\CurrentControlSet\Control\Terminal Server
Dword=AllowRemoteRPC
Value=1

1 comment:

  1. Your blog is great. Your thoughts are also very good and i am very inspired from your post. That is why I visit this blog again and again and will come back in future too.web site hosting

    ReplyDelete