Toast Notification issue with SCCM Package

PerserPolis-1732 1,971 Reputation points
2024-05-23T13:13:47.49+00:00

Hi,

I have created a Package for toast Notification and deployed it to some device collection. It seems to be work, but on some devices does not work, it display only PS short, but no Notification

Sometimes it is running only one time, I cannot run the package again

here my command line for package

Powershell.exe -ExecutionPolicy Bypass -NoLogo -Noninteractive -NoProfile -WindowStyle Hidden -File Toast.ps1

my settings

User's image

User's image

any Idea?

Microsoft Security Intune Configuration Manager Deployment
Microsoft Security Intune Configuration Manager Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Prajwal Desai [MVP] 101 Reputation points Volunteer Moderator
    2024-05-23T17:00:13.2+00:00

    On the computers where the package fails to run, did you check the log file to determine the issue?


  2. AllenLiu-MSFT 49,311 Reputation points Microsoft External Staff
    2024-05-24T02:20:18.4733333+00:00

    Hi, @PerserPolis-1732

    Thank you for posting in Microsoft Q&A forum.

    You may try the command like this to run a powershell script with package:

    "%Windir%\sysnative\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -Command .\Your-Scriptfilename.ps1
    

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.