Send notification to remote computer

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 4
rambog Posted: 05-16-2012 3:44 PM

I have the code below taken from MSFT's site but I would like to have the notification balloon appear on a remote computer.  Please let me know how.

 

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

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

$objNotifyIcon.Icon = "C:\Program Files\Microsoft Office\Office14\Groove\ToolIcons\messageboxalert.ico"
$objNotifyIcon.BalloonTipIcon = "Info"
$objNotifyIcon.BalloonTipText = "This is a test message."
$objNotifyIcon.BalloonTipTitle = "Migration"

$objNotifyIcon.Visible = $True
$objNotifyIcon.ShowBalloonTip(100000)

Top 25 Contributor
Posts 296
Microsoft MVP
Top Contributor

Put it in a script and run it a remote session or using invoke-command

Page 1 of 1 (2 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.