On the computers where the package fails to run, did you check the log file to determine the issue?
Toast Notification issue with SCCM Package
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
any Idea?
2 answers
Sort by: Most helpful
-
-
AllenLiu-MSFT 44,191 Reputation points Microsoft Vendor
2024-05-24T02:20:18.4733333+00:00 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".