Net Send Option

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to send a message to myself, but problem is that I logon on 2 to 3
systems at a time. Only my ID will receive message over domain.
 
I want to send a message to myself, but problem is that I logon on 2 to 3
systems at a time. Only my ID will receive message over domain.

See tip 4712 » PsLoggedOn freeware tells you who is logged onto a computer, or it can locate a user.
in the 'Tips & Tricks' at http://www.jsifaq.com

@echo off
setlocal EnableDelayedExpansion
for /f "Skip=4 Tokens=*" %%a in ('psloggedOn %UserName% -L') do (
set line=%%a
set line=!line:* logged onto =!
set line=!line: locally.=!
net send !line! "Hello %userName% on !line!"
)
endlocal

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Back
Top