Tuesday, April 22, 2014

net send in Windows 7

Need to send a message to a computer on your network? In the days of XP and earlier you could use "net send" to pop up a message, but those days are gone. Luckily I've discovered a simple command to recreate the same effect in Windows 7 (and probably later versions as well). First, if you don't have PsTools installed you're going to want to. Specifically we're going to use PsExec, but having the whole suite is worth doing. After you download and extract it somewhere (why not c:\bin\ ?) you'll need to either open a command prompt in that directory, or add that directory to your path environment variable. Then it's as simple as:

psexec \\computer-name msg * /server:localhost "Your computer will self destruct in 30 seconds!"

Easy as pi! PsExec can also be used to do lots of other interesting things like remotely enable RDP. Take a look at the options for PsExec, as well as msg to get an idea about more possibilities. You'll likely find other useful PsTools too, now that you know about them.

Disclaimer:
Please use your new found power responsibly. I do not officially condone ANY April Fool's pranks or any other nonsense of the sort.

No comments:

Post a Comment