Open ghost opened 1 year ago
Was able to replicate this issue while testing by running the "New-BurntToastNotification' command.
I was able to address the error by runing Powershell as the current logged in user as oppossed to using another account with admin access via Run As.
Environment data: OS
Caption : Microsoft Windows 11 Enterprise
Version : 10.0.22621
ServicePackMajorVersion : 0
OSArchitecture : 64-bit
CSName : ARDA
WindowsDirectory : C:\WINDOWS
Steps to Reproduce
Run PowerShell as Admin, Type
New-BurntToastNotification
orNew-BurntToastNotification -Text 'WAKE UP!' -Sound 'Alarm2' -SnoozeAndDismiss
Expected Behavior
I expect the module to work and show me toast notification
Actual Behavior
it gives me an error:
MethodInvocationException: Exception calling "Show" with "1" argument(s): "Access is denied. (0x80070005 (E_ACCESSDENIED))"
Experience with Toast
No response
Environment data: PowerShell
Environment data: OS
Environment data: BurntToast
Consent to Attribution