Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Custom Pop Up Notification Using SCCM

$
0
0

Hello,

I need to deploy the custom notification to users using SCCM. 

Have the following script for PowerShell but it could be in any scripting language, just need to serve the purpose of displaying the custom popup notification on users machines :

==================================================================

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

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

$objNotifyIcon.Icon = "D:\PopUp Notification\ABC.ico"
$objNotifyIcon.BalloonTipIcon = "Info" 
$objNotifyIcon.BalloonTipText = "Data Retrieving In Progress" 
$objNotifyIcon.BalloonTipTitle = "Retrieving" 

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

==================================================================

the concern with the above code is :

1) It doesnt remove the notification icon from the task bar 

It will create a new icon for every time you are running the code. how can we make sure that once the script is ran, this icon is removed from everywhere?

2) It references the D:\..... location for the ".ico" file to be used. I need to deploy this using SCCM, how could I customize this so it references this location under the package folder deployed using SCCM, i.e. if I copy the file in the package to be deployed, it should be able to reference that automatically and pick it up from there. 

3) Is there any way, we could use another file instead of ".ico" like ".bmp" etc.

Many Thanks

Vikram Midha



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>