Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remediate_DeviceUptime7.ps1 #83

Open
sheepmaster74 opened this issue Sep 3, 2024 · 0 comments
Open

Remediate_DeviceUptime7.ps1 #83

sheepmaster74 opened this issue Sep 3, 2024 · 0 comments

Comments

@sheepmaster74
Copy link

launching the remediate script

PS C:\Users\xxx> . 'C:\Users\xxx\Downloads\Remediate_DeviceUptime7.ps1'
InvalidOperation: C:\Users\xxx\Downloads\Remediate_DeviceUptime7.ps1:18:13
Line |
18 | $Load = [Windows.UI.Notifications.ToastNotificationManager, Windo …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Unable to find type [Windows.UI.Notifications.ToastNotificationManager,Windows.UI.Notifications, ContentType=WindowsRuntime].
InvalidOperation: C:\Users\xxx\Downloads\Remediate_DeviceUptime7.ps1:19:13
Line |
19 | $Load = [Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.X …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Unable to find type [Windows.Data.Xml.Dom.XmlDocument,Windows.Data.Xml.Dom.XmlDocument, ContentType=WindowsRuntime].
New-Object: C:\Users\xxx\Downloads\Remediate_DeviceUptime7.ps1:21:17
Line |
21 | $ToastXML = New-Object -TypeName Windows.Data.Xml.Dom.XmlDocument
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find type [Windows.Data.Xml.Dom.XmlDocument]: verify that the assembly containing this type is loaded.
InvalidOperation: C:\Users\xxx\Downloads\Remediate_DeviceUptime7.ps1:22:5
Line |
22 | $ToastXML.LoadXml($Toast.OuterXml)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
-Message
Something went wrong when displaying the toast notification
-Level
Warn
-Message
Make sure the script is running as the logged on user
-Level
Warn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant