You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: