Script to send notification to another PC in the domain/Network PCs

Need a script or program to  send a taskbar notification to all domain added PCs

Guidance/Help is highly appreciated
LVL 28
MAS EE MVETechnical Department HeadAsked:
Who is Participating?
 
MAS EE MVEConnect With a Mentor Technical Department HeadAuthor Commented:
For the time being I have created scheduled tasks to send a popup locally on all PCs till I get a good solution
0
 
slavsConnect With a Mentor Commented:
This article may help you out:

http://www.cezeo.com/tips-and-tricks/msg-command/
0
 
leakim971PluritechnicianCommented:
Do you have powershell enable on all your computer in the domain?
0
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 
MAS EE MVETechnical Department HeadAuthor Commented:
@slavs
I dont want to interrupt user activity.
There are users uploading data by data uploader.
This message should not disturb them.
That si the reason I am looking for taskbar notification. e.g. oulook new email notification

@ leakim971
We have both windows-XP and windows-7 PCs

Atleast a script which I can schedule from the local PCs on all PCs to run on every xhours will do the job. i.e. not mandatory to send through network. I will deploy the scheduled task through GP
0
 
MAS EE MVETechnical Department HeadAuthor Commented:
Waiting since2 days
0
 
slavsConnect With a Mentor Commented:
You can use a Balloon Icon with Powershell.
The below script will do it for one PC, if you have remoting enabled and there are no firewall issues, I would suggest using "Invoke-Command" to send the command to multiple PCs at once.


[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")

$objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon 

$objNotifyIcon.Icon = "C:\IconExample.ico"
$objNotifyIcon.BalloonTipIcon = "Error" 
$objNotifyIcon.BalloonTipText = "This is your message." 
$objNotifyIcon.BalloonTipTitle = "Message Title"
 
$objNotifyIcon.Visible = $True 
$objNotifyIcon.ShowBalloonTip(10000)

Open in new window

0
 
MAS EE MVETechnical Department HeadAuthor Commented:
@slavs
can you explain
1. how to save the code (which format)
2. how to run
3. Where is the name of the PC mentioned in the code.
0
 
MAS EE MVETechnical Department HeadAuthor Commented:
Awaiting reply
0
 
SubsunConnect With a Mentor Commented:
Earlier days, means for Win XP and previous systems we could use Net Send command to send messages to all computers.. but Vista onwards Net send wont work, so we have msg.exe to send messages to computers. You can refer following article which has a sample powershell code which uses msg command to send messages to a list of computers.. Check and see if it works for you..Else you need to look for third-party tools like LanTalk LAN messenger etc. Honestly I don't see any other option for you.. Good luck.. :)

http://subodhuniyal.wordpress.com/2012/08/07/power-shell-script-to-send-message-to-network-computers-2/

Also check http://www.winsentmessenger.com/sent/
0
 
MAS EE MVETechnical Department HeadAuthor Commented:
Closing the question for now.
I will start a new question when I get a better solution than this
0
All Courses

From novice to tech pro — start learning today.