Run PSADT to just display informative toast notifications?

I came across these two sites and wanted to try and implement:

Problem is, with our security we don’t allow regular users to run powershell scripts…

I was wondering if there’s anyway to use PSADT to deploy? I tried

Execute-Process -Path "$PSHOME\powershell.exe" -Parameters "-ExecutionPolicy unrestricted -file $dirFiles\Toast_Notify.ps1"

But it didn’t work… No errors, just nothing happened… Then I wondered if it’s not possible with our security, is it possible to accomplish what they are doing with PSADT alone? PSADT I know uses toast notifications with custom icons and messages and what not…

It’s probably a security context issue.

If you launch PSADT from Software Center, it run as SYSTEM
For a user to see the Toast, the toast call must happen in the user context.

PSADT does have a Show-BalloonTip function that effectively works like Toast.

Show-BalloonTip -BalloonTipText 'Installation Started' -BalloonTipTitle 'Application Name'

Is this good enough?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.