Need to let msg command run without actually accessing the physical machine


  • Ok, here is my problem. I am trying to get it to where we can use the msg command in a Windows 7 local area network. The problem is any time that we try we get the error 5 message.

    I have found that the reg. key AllowRemoteRPC located in HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server needs to be set to a value of 1. Obviously I can make the change locally, but I would like to be able to do it remotely. I have been experimenting with Powershell a bit, but I prefer good ole' cmd. If someone could help me out with how to change the key from 0 to 1 using command prompt from my machine that would be great. We are in a Service Desk environment, so I cannot ask people to get up from their machines so that I can hop on to modify their registry to get this to work, in the past for other reasons we have done this, and it just seems it would be better to be able to do it remotely.

    A few things I should mention:

    I have only started playing around in command prompt for the last week or so, so my syntax is probably pretty juvenile

    I do have domain admin credentials, and can access their machines with those

    I am running as admin

    I have psexec, so if you could let me know how to do it to my own local machine that would be much appreciated as well, as I can use the same commands to change theirs

    The command I am trying to use is C:\>Reg add "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\AllowRemoteRPC" /value 0 (locally to change mine back from 1) but obviously I am doing something incorrectly, I am just not sure what. Any guidance you could give would be appreciated.

    Thursday, February 07, 2013 1:19 PM