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 30
MAS (MVE)EE Solution GuideAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This article may help you out:
Do you have powershell enable on all your computer in the domain?
MAS (MVE)EE Solution GuideAuthor Commented:
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
How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

MAS (MVE)EE Solution GuideAuthor Commented:
Waiting since2 days
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 

Open in new window

MAS (MVE)EE Solution GuideAuthor Commented:
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.
MAS (MVE)EE Solution GuideAuthor Commented:
Awaiting reply
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.. :)

Also check
MAS (MVE)EE Solution GuideAuthor Commented:
For the time being I have created scheduled tasks to send a popup locally on all PCs till I get a good solution

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MAS (MVE)EE Solution GuideAuthor Commented:
Closing the question for now.
I will start a new question when I get a better solution than this
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.