Skip to main content

Simple Notification App [Param]

Summary

This script is designed to deliver a one-time, customized message to the partner, featuring your company's branding through an optional image URL. For branding purposes, using a PNG or JPEG image URL is recommended, though not mandatory. Once executed, the script will display the message on the logged-in user's screen within one minute.

Sample Run

Sample Image

The message parameter is mandatory to display the message to the user. All other parameters are optional; however, if no image is specified, it will result in a blank popup with only the message, which may cause trust issues with users.

Dependencies

SimpleNotification

Requirements

  • Windows Operating System
  • .NET 4.5

Variables

NameValue
ProjectNameRun-SimpleNotification
AppNameSimpleNotification
WorkingDirectoryC:\ProgramData_Automation\Script\Run-SimpleNotification
ScriptPathC:\ProgramData_Automation\Script\Run-SimpleNotification\Run-SimpleNotification.ps1
AppPathC:\ProgramData_Automation\Script\Run-SimpleNotification\SimpleNotification.exe
ConfigFileC:\ProgramData_Automation\Script\Run-SimpleNotification\Config.toml

User Parameters

NameExampleRequiredDescription
MessageThis is a test messageTrueThe message is displayed to the end user. (Maximum 888 characters).
ImageURLhttp://p.favim.com/orig/2018/08/24/cute-beautiful-couple-avatar-Favim.com-6224738.jpgFalseThe URL for the image to display instead of the default.
Emailsomeone@testing.comFalseThe support e-mail address is displayed to the user.
Phone000-000-0000FalseThe support phone number is displayed to the user.

Example

Parameters

NameValue
ImageURLhttps://labtech.provaltech.com/labtech/transfer/images/alogo.jpg
MessageThey said it's a secret mission, but I say it's a fashion emergency—Bond and I am armed with style and suspicious sunglasses!
Emailram.kishor@provaltech.com
Phone1234565432

Notification

Image1

Output

  • Script Log
  • Popup Message on User's desktop

Changelog

2026-03-10

  • Implemented dynamic UI resizing for the notification prompt based on the length of the incoming message.
  • Added three responsive layout tiers: Small (less than equal 300 characters), Medium (between 301-500 characters), and Large (greater than 500 characters).
  • Established a maximum character limit of 888 characters for the Large layout; exceeding text will not be displayed.
  • Preserved the base 500x150 layout in the visual designer, utilizing code-behind logic to handle all dynamic resizing at runtime.
  • Signed the PS1 script

2025-04-10

  • Initial version of the document