Skip to content

Remediate_DeviceUptime7.ps1 #83

@sheepmaster74

Description

@sheepmaster74

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions