[
  {
    "path": ".gitignore",
    "content": "# PowerShell specific\n*.ps1xml\n*.psc1\n*.psd1~\n*.tmp\n\n# Visual Studio Code\n.vscode/\n*.code-workspace\n\n# Windows\nThumbs.db\nehthumbs.db\nDesktop.ini\n$RECYCLE.BIN/\n*.cab\n*.msi\n*.msix\n*.msm\n*.msp\n*.lnk\n\n# Logs\n*.log\nlogs/\n*.log.*\n\n# Temporary files\n*.temp\n*.tmp\n*~\n.DS_Store\n\n# PowerShell transcripts\nPowerShell_transcript.*\n\n# Test files\ntest/\ntesting/\n*test*\n\n# Personal/Local config files\nconfig-local*.xml\n*-local.*\nlocal-*\n\n# Backup files\n*.bak\n*.backup\n*-backup.*\n\n# IDE files\n*.suo\n*.user\n*.userosscache\n*.sln.docstates\n\n# Build artifacts\nbin/\nobj/\n*.dll\n*.exe\n*.pdb\n*.cache\n\n# Package files\n*.nupkg\n*.snupkg\n\n# Azure/Cloud specific\n*.publishsettings\n*.azurePubxml\n\n# Sensitive information\nsecrets/\n*.secret\n*password*\n*credential*\n*.pfx\n*.p12\n\n# CLM development files\nNew-ToastXml-CLM-Compatible.ps1\n\n# Social media content\nsocial-media-posts.md\nblog-post.md\n\n# Test suite (local only)\nTests/"
  },
  {
    "path": "Detect-ToastNotification.ps1",
    "content": "﻿<#\n.SYNOPSIS\n    Detect-ToastNotification.ps1 - Detection Script for Toast Notification Script for Microsoft Intune\n\n.DESCRIPTION\n    Detection script for Toast Notification Script in Microsoft Intune.\n    Detects if conditions are met for displaying the toast notification.\n\n.PARAMETER Config\n    Path or URL to the XML configuration file.\n    Default: \"https://toast.imab.dk/config-toast-pendingreboot.xml\"\n\n.OUTPUTS\n    Exit codes for Microsoft Intune detection:\n    - 0: No action needed\n      - All relevant features are disabled in configuration\n      - Detection conditions are not met (e.g., uptime below threshold)\n      - WeeklyMessage not triggered (wrong day/hour)\n      - Configuration conflicts prevent execution\n    - 1: Action needed\n      - One or more detection conditions are met\n      - WeeklyMessage should be triggered (correct day/hour)\n      - PendingRebootUptime threshold exceeded\n      - Toast notification should be displayed\n\n.NOTES\n    Script Name    : Detect-ToastNotification.ps1\n    Version        : 3.0.3\n    Author         : Martin Bengtsson, Rewritten for Microsoft Intune\n    Created        : November 2025\n    Updated        : February 2026\n\n    Version History:\n    - 3.0.3: Aligned version with remediation script. Housekeeping and consistency updates.\n    - 3.0.1: Fixed detection logic to trigger notifications when no conditional features are enabled\n    - 3.0.0: Complete rewrite for Microsoft Intune with PowerShell best practices and professional documentation\n\n    Requirements:\n    - Windows 10 version 1709 or later / Windows 11\n    - PowerShell 5.1 or later\n    - Microsoft Intune managed device\n    - User context execution (not SYSTEM)\n\n    Intune Deployment:\n    - Deploy as detection script with remediation script: Remediate-ToastNotification.ps1\n    - Configure appropriate schedule based on notification requirements\n    - Ensure proper user assignment and targeting\n\n.LINK\n    https://www.imab.dk/windows-10-toast-notification-script/\n\n.LINK\n    https://github.com/imabdk/Toast-Notification-Script\n\n#>\n\n[CmdletBinding()]\nparam(\n    [Parameter(Mandatory=$false)]\n    [string]$Config = \"https://toast.imab.dk/config-toast-nofeatures.xml\"\n)\n\n# Create Get-DeviceUptime function (same as main script)\nfunction Get-DeviceUptime() {\n    $OS = Get-CimInstance Win32_OperatingSystem\n    $Uptime = (Get-Date) - ($OS.LastBootUpTime)\n    $Uptime.Days\n}\n\n# Function to check for configuration conflicts\nfunction Test-ConfigConflicts() {\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$true)]\n        [xml]$ConfigXml\n    )\n\n    $Conflicts = @()\n\n    # Check if Toast feature is globally disabled (should be first check)\n    $ToastEnabled = ($ConfigXml.Configuration.Feature | Where-Object {$_.Name -eq \"Toast\"}).Enabled\n    if ($ToastEnabled -ne \"True\") {\n        $Conflicts += \"Toast feature is disabled in configuration (Toast Enabled = '$ToastEnabled') - no notifications can be displayed\"\n        return $Conflicts  # Return early if Toast is disabled\n    }\n\n    # Only check other conflicts if Toast is enabled\n    # Check for multiple trigger features enabled simultaneously\n    $PendingRebootEnabled = ($ConfigXml.Configuration.Feature | Where-Object {$_.Name -eq \"PendingRebootUptime\"}).Enabled\n    $WeeklyMessageEnabled = ($ConfigXml.Configuration.Feature | Where-Object {$_.Name -eq \"WeeklyMessage\"}).Enabled\n\n    if ($PendingRebootEnabled -eq \"True\" -and $WeeklyMessageEnabled -eq \"True\") {\n        $Conflicts += \"Multiple trigger features enabled: PendingRebootUptime and WeeklyMessage both active\"\n    }\n\n    # Note: Notification app conflicts are handled in main script (CustomNotificationApp takes precedence)\n    # No need to block detection for this - it's a configuration warning, not a blocking issue\n\n    return $Conflicts\n}\n\n# Create Get-ToastConfig function\nfunction Get-ToastConfig() {\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$true)]\n        [string]$ConfigPath\n    )\n\n    Write-Host \"[ToastNotificationScript] Loading configuration file: $ConfigPath\"\n\n    if ($ConfigPath -match \"^https?://\") {\n        Write-Host \"[ToastNotificationScript] Config file is hosted online. Downloading from: $ConfigPath\"\n        try {\n            $ConfigContent = Invoke-RestMethod -Uri $ConfigPath -Method Get -UseBasicParsing\n            $Xml = [xml]$ConfigContent\n            Write-Host \"[ToastNotificationScript] Successfully loaded online config file\"\n            return $Xml\n        }\n        catch {\n            $ErrorMessage = $_.Exception.Message\n            Write-Host \"[ToastNotificationScript] Failed to load online config file: $ErrorMessage\"\n            Exit 0\n        }\n    }\n    else {\n        Write-Host \"[ToastNotificationScript] Config file is local or on file share: $ConfigPath\"\n        if (Test-Path -Path $ConfigPath) {\n            try {\n                $Xml = [xml](Get-Content -Path $ConfigPath -Encoding UTF8)\n                Write-Host \"[ToastNotificationScript] Successfully loaded local config file\"\n                return $Xml\n            }\n            catch {\n                $ErrorMessage = $_.Exception.Message\n                Write-Host \"[ToastNotificationScript] Failed to read local config file: $ErrorMessage\"\n                Exit 0\n            }\n        }\n        else {\n            Write-Host \"[ToastNotificationScript] Config file not found at: $ConfigPath\"\n            Exit 0\n        }\n    }\n}\n\ntry {\n    # Load config using the same function as main script\n    Write-Output \"[ToastNotificationScript] Loading configuration...\"\n    $Xml = Get-ToastConfig -ConfigPath $Config\n\n    # Check for configuration conflicts\n    Write-Output \"[ToastNotificationScript] Checking configuration for conflicts...\"\n    $ConfigConflicts = Test-ConfigConflicts -ConfigXml $Xml\n\n    if ($ConfigConflicts.Count -gt 0) {\n        Write-Output \"[ToastNotificationScript] Configuration conflicts detected:\"\n        foreach ($Conflict in $ConfigConflicts) {\n            Write-Output \"[ToastNotificationScript] - $Conflict\"\n        }\n        Write-Output \"[ToastNotificationScript] No action needed due to configuration conflicts\"\n        exit 0\n    }\n    else {\n        Write-Output \"[ToastNotificationScript] Configuration validation passed\"\n    }\n\n    # Initialize action needed flag\n    $ActionNeeded = $false\n\n    # Check PendingRebootUptime feature\n    $UptimeEnabled = $Xml.Configuration.Feature | Where-Object {$_.Name -eq \"PendingRebootUptime\"} | Select-Object -ExpandProperty Enabled\n    if ($UptimeEnabled -eq \"True\") {\n        Write-Output \"[ToastNotificationScript] Checking PendingRebootUptime feature...\"\n\n        # Get MaxUptimeDays from config\n        $MaxUptimeDaysValue = $Xml.Configuration.Option | Where-Object {$_.Name -eq \"MaxUptimeDays\"} | Select-Object -ExpandProperty Value\n        $MaxUptimeDays = [int]$MaxUptimeDaysValue\n\n        # Check uptime using the same function as main script\n        $UptimeDays = Get-DeviceUptime\n\n        if ($UptimeDays -gt $MaxUptimeDays) {\n            Write-Output \"[ToastNotificationScript] PendingRebootUptime: Uptime threshold exceeded ($UptimeDays > $MaxUptimeDays days)\"\n            $ActionNeeded = $true\n        }\n        else {\n            Write-Output \"[ToastNotificationScript] PendingRebootUptime: Uptime within threshold ($UptimeDays <= $MaxUptimeDays days)\"\n        }\n    }\n    else {\n        Write-Output \"[ToastNotificationScript] PendingRebootUptime feature disabled in config\"\n    }\n\n    # Check WeeklyMessage feature\n    $WeeklyMessageEnabled = $Xml.Configuration.Feature | Where-Object {$_.Name -eq \"WeeklyMessage\"} | Select-Object -ExpandProperty Enabled\n    if ($WeeklyMessageEnabled -eq \"True\") {\n        Write-Output \"[ToastNotificationScript] Checking WeeklyMessage feature...\"\n\n        # Get configuration values\n        $TargetDay = $Xml.Configuration.Option | Where-Object {$_.Name -eq \"WeeklyMessageDay\"} | Select-Object -ExpandProperty Value\n        $TargetHour = [int]($Xml.Configuration.Option | Where-Object {$_.Name -eq \"WeeklyMessageHour\"} | Select-Object -ExpandProperty Value)\n\n        # Parse target days (support comma-separated numeric values)\n        $TargetDayStrings = $TargetDay -split ',' | ForEach-Object { $_.Trim() }\n        $TargetDays = @()\n        $InvalidDays = @()\n\n        foreach ($DayString in $TargetDayStrings) {\n            if ($DayString -match '^\\d+$') {\n                $DayNumber = [int]$DayString\n                if ($DayNumber -ge 1 -and $DayNumber -le 7) {\n                    $TargetDays += $DayNumber\n                } else {\n                    $InvalidDays += $DayString\n                }\n            } else {\n                $InvalidDays += $DayString\n            }\n        }\n\n        # Report invalid day numbers\n        if ($InvalidDays.Count -gt 0) {\n            Write-Output \"[ToastNotificationScript] WeeklyMessage: Invalid day numbers found: $($InvalidDays -join ', '). Valid range: 1-7 (1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday)\"\n        }\n\n        if ($TargetDays.Count -eq 0) {\n            Write-Output \"[ToastNotificationScript] WeeklyMessage: No valid target days configured - skipping\"\n        }\n        else {\n            $CurrentTime = Get-Date\n            # Get numeric day of week (0=Sunday, 1=Monday, ..., 6=Saturday)\n            $CurrentDayNumber = [int]$CurrentTime.DayOfWeek\n            # Convert to ISO 8601 format (1=Monday, 7=Sunday) for consistency\n            if ($CurrentDayNumber -eq 0) { $CurrentDayNumber = 7 } # Sunday: 0 -> 7\n\n            $CurrentHour = $CurrentTime.Hour\n            $CurrentMinute = $CurrentTime.Minute\n\n            # Convert day numbers to names for logging (always English for consistency)\n            $DayNames = @('', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')\n            $CurrentDayName = $DayNames[$CurrentDayNumber]\n            $TargetDayNames = $TargetDays | ForEach-Object { $DayNames[$_] }\n\n            # Check if current day is in target days\n            if ($TargetDays -contains $CurrentDayNumber) {\n                # Check hour condition\n                if ($TargetHour -eq -1) {\n                    # Hour = -1 means \"any time during the target day\"\n                    Write-Output \"[ToastNotificationScript] WeeklyMessage: Trigger time reached: $CurrentDayName (day $CurrentDayNumber) at $CurrentHour`:$($CurrentMinute.ToString('00')) - any hour (configured days: $($TargetDayNames -join ', '))\"\n                    $ActionNeeded = $true\n                }\n                elseif ($CurrentHour -eq $TargetHour) {\n                    # Normal hour-specific behavior\n                    Write-Output \"[ToastNotificationScript] WeeklyMessage: Trigger time reached: $CurrentDayName (day $CurrentDayNumber) at $TargetHour`:$($CurrentMinute.ToString('00')) (configured days: $($TargetDayNames -join ', '))\"\n                    $ActionNeeded = $true\n                }\n                else {\n                    Write-Output \"[ToastNotificationScript] WeeklyMessage: Correct day but wrong hour (current: $CurrentDayName (day $CurrentDayNumber) at $CurrentHour`:$($CurrentMinute.ToString('00')), target: $($TargetDayNames -join ', ') at $TargetHour`:00)\"\n                }\n            }\n            else {\n                $HourDisplay = if ($TargetHour -eq -1) { \"any hour\" } else { \"$TargetHour`:00\" }\n                Write-Output \"[ToastNotificationScript] WeeklyMessage: Not trigger time (current: $CurrentDayName (day $CurrentDayNumber) at $CurrentHour`:$($CurrentMinute.ToString('00')), target days: $($TargetDayNames -join ', ') at $HourDisplay)\"\n            }\n        }\n    }\n    else {\n        Write-Output \"[ToastNotificationScript] WeeklyMessage feature disabled in config\"\n    }\n\n    # Check for general notification when no conditional features are enabled\n    if ($UptimeEnabled -ne \"True\" -and $WeeklyMessageEnabled -ne \"True\") {\n        Write-Output \"[ToastNotificationScript] No conditional features enabled - general notification triggered\"\n        $ActionNeeded = $true\n    }\n\n    # Add future detection methods here...\n    # Example:\n    # $SomeOtherFeatureEnabled = $Xml.Configuration.Feature | Where-Object {$_.Name -eq \"SomeOtherFeature\"} | Select-Object -ExpandProperty Enabled\n    # if ($SomeOtherFeatureEnabled -eq \"True\") {\n    #     Write-Output \"[ToastNotificationScript] Checking SomeOtherFeature...\"\n    #     # Detection logic here\n    #     if ($someCondition) {\n    #         $RemediationNeeded = $true\n    #     }\n    # }\n\n    # Final decision\n    if ($ActionNeeded) {\n        Write-Output \"[ToastNotificationScript] Action needed - one or more conditions met\"\n        exit 1\n    }\n    else {\n        Write-Output \"[ToastNotificationScript] No action needed - all conditions within thresholds\"\n        exit 0\n    }\n}\ncatch {\n    Write-Output \"[ToastNotificationScript] Error: $($_.Exception.Message)\"\n    exit 0\n}\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2020 Martin Bengtsson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Toast Notification Script\n\n## Current Version: 3.0.3\n\nVersion 3.0 is a complete rewrite targeting **Microsoft Intune** and its **Remediations** feature.\n\n![Toast Notification Script Examples](Screenshots/toast-notification-script.png)\n\n### Download\n\n- [Remediate-ToastNotification.ps1](Remediate-ToastNotification.ps1) - Main script\n- [Detect-ToastNotification.ps1](Detect-ToastNotification.ps1) - Detection script for Intune\n- [config-toast-weeklymessage.xml](config-toast-weeklymessage.xml) - Weekly message example\n- [config-toast-pendingreboot.xml](config-toast-pendingreboot.xml) - Pending reboot example\n- [config-toast-iosupdate.xml](config-toast-iosupdate.xml) - iOS update reminder example\n- [config-toast-nofeatures.xml](config-toast-nofeatures.xml) - General notification (no conditional triggers)\n\n**Documentation:** [https://www.imab.dk/windows-10-toast-notification-script/](https://www.imab.dk/windows-10-toast-notification-script/)\n\n**Questions & Issues:** Visit the blog post above or open a [GitHub Issue](https://github.com/imabdk/Toast-Notification-Script/issues).\n\n---\n\n## What's in 3.0\n\n- Intune Remediations support with proper exit codes and detection/remediation workflow\n- Flexible scheduling - target specific days (comma-separated), specific hours, or \"any time\"\n- Logging with rotation, IME output, and Event Log fallback\n- Personalized greetings using the logged-on user's first name\n- Multiple notification types: weekly reminders, uptime-based reboot prompts, general announcements\n- Config validation that catches conflicting feature/button combinations before displaying anything\n- Custom notification app - register your own app name in Action Center instead of showing \"Windows PowerShell\"\n- Multi-language support (ships with en-US, da-DK, sv-SE)\n\n### Scenarios\n\n- **Weekly reminders** - routine announcements on specific days/hours\n- **Reboot notifications** - remind users to restart when uptime exceeds a threshold\n- **General notifications** - one-off or recurring messages (use `config-toast-nofeatures.xml`)\n- **iOS/mobile updates** - notify users about required device updates via toast on their PC\n\n### Requirements\n\n- Windows 10 1709+ or Windows 11\n- PowerShell 5.1+\n- Intune managed device\n- Must run in user context (not SYSTEM)\n\n### Constrained Language Mode\n\nThe script works in CLM environments. However, when deployed via Intune IME on systems with AppLocker/WDAC enforced CLM, you may hit dot-sourcing errors because IME switches language modes mid-execution.\n\nError: `\"Cannot dot-source this command because it was defined in a different language mode\"`\n\n**Workaround:** Sign the script with a code signing certificate from a trusted CA and enable \"Enforce script signature check\" in Intune. Signed scripts run in Full Language Mode, which avoids the boundary issue. The certificate needs to be in the Trusted Publishers store on managed devices.\n\n### Quick Start\n\n1. Download the scripts\n2. Pick a config XML (or create your own) and host it somewhere accessible\n3. Deploy in Intune Remediations:\n   - Detection: `Detect-ToastNotification.ps1`\n   - Remediation: `Remediate-ToastNotification.ps1`\n   - Set the schedule based on your needs\n\n![Intune Remediation Configuration](Screenshots/intune-remediation-config-example.png)\n\n### Configuration\n\nThe XML config file controls everything:\n\n- Enable/disable toast, weekly messages, pending reboot checks\n- Set target days and hours for scheduling\n- Custom logo and hero images (local or URL)\n- Action buttons, dismiss button, snooze with time picker\n- Multi-language text blocks\n\n---\n\n## Version History\n\n### 3.0.3\n- Fixed a bug where the dismiss button was always forced on when ActionButton2 was enabled, regardless of the DismissButton config value\n\n### 3.0.2\n- Removed CLM compatibility claim (still under development)\n\n### 3.0.1\n- Fixed empty XML space in WeeklyMessage notifications by conditionally excluding the BodyText2 group\n\n### 3.0.0\n- Complete rewrite for Microsoft Intune\n\n---\n\n## Roadmap\n\n- [ ] Intune IME compatibility fix - rework to avoid dot-sourcing issues with language mode switching\n- [ ] Disk space monitoring\n- [ ] Battery health notifications\n- [ ] OneDrive sync issue alerts\n\n---\n\n## Legacy (Configuration Manager)\n\nThe old ConfigMgr version (2.3.0) is still available for download but no longer actively developed:\n\n[ToastNotificationScript2.3.0.zip](https://github.com/imabdk/Toast-Notification-Script/blob/master/ToastNotificationScript2.3.0.zip)\n\nIt includes Software Center integration, task sequence support, and custom notification app registration. If you're still on ConfigMgr, it works fine - but new features only land in 3.x.\n\n---\n\n## License\n\nMIT - see [LICENSE](LICENSE).\n\n## Author\n\n**Martin Bengtsson** - [imab.dk](https://www.imab.dk) / [@imabdk](https://github.com/imabdk)"
  },
  {
    "path": "Remediate-ToastNotification.ps1",
    "content": "﻿<#\n.SYNOPSIS\n    Remediate-ToastNotification.ps1 - Toast Notification Script for Microsoft Intune\n\n.DESCRIPTION\n    Delivers native Windows toast notifications to end users through Microsoft Intune.\n    This is the Toast Notification Script, completely rewritten for Microsoft Intune.\n\n    Key Features:\n    - Weekly reminders with flexible scheduling (multiple days, any hour support)\n    - Pending reboot notifications based on configurable uptime thresholds\n    - Personalized greetings with dynamic time-based salutations\n    - Multi-level logging with rotation and error handling\n    - International compatibility with culture-independent operation\n\n.PARAMETER Config\n    Path or URL to the XML configuration file.\n    Default: \"https://toast.imab.dk/config-toast-pendingreboot.xml\"\n\n.EXAMPLE\n    .\\Remediate-ToastNotification.ps1\n\n.OUTPUTS\n    Returns exit codes for Microsoft Intune reporting:\n    - 0: Success - Toast notification displayed or conditions not met (no action needed)\n    - 1: Configuration error or critical failure\n\n.NOTES\n    Script Name    : Remediate-ToastNotification.ps1\n    Version        : 3.0.3\n    Author         : Martin Bengtsson, Rewritten for Microsoft Intune\n    Created        : November 2025\n    Updated        : February 2026\n\n    Version History:\n    - 3.0.3: Fixed DismissButton being forced on when ActionButton2 is enabled. Button config values are now properly respected.\n             Added Pester test suite (66 tests) covering config validation, button combinations, toast XML generation, scheduling logic, and multi-language support.\n    - 3.0.2: Removed PowerShell Constrained Language Mode compatibility claim (under development)\n    - 3.0.1: Fixed empty XML space in WeeklyMessage notifications by conditionally excluding BodyText2 group\n    - 3.0.0: Complete rewrite for Microsoft Intune with PowerShell best practices, professional documentation, and enhanced functionality\n\n    Requirements:\n    - Windows 10 version 1709 or later / Windows 11\n    - PowerShell 5.1 or later\n    - Microsoft Intune managed device\n    - User context execution (not SYSTEM)\n\n    Intune Deployment:\n    - Deploy with detection script: Detect-ToastNotification.ps1\n    - Configure appropriate schedule based on notification requirements\n    - Ensure proper user assignment and targeting\n\n.LINK\n    https://www.imab.dk/windows-10-toast-notification-script/\n\n.LINK\n    https://github.com/imabdk/Toast-Notification-Script\n\n#>\n\n[CmdletBinding()]\nparam(\n    [Parameter(Mandatory=$false)]\n    [string]$Config = \"https://toast.imab.dk/config-toast-nofeatures.xml\"\n)\nfunction Write-Log() {\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]\n        [ValidateNotNullOrEmpty()]\n        [Alias(\"LogContent\")]\n        [string]$Message,\n        [Parameter(Mandatory=$false)]\n        [Alias('LogPath')]\n        [string]$Path = \"$env:APPDATA\\ToastNotificationScript\\Remediate-ToastNotification.log\",\n        [Parameter(Mandatory=$false)]\n        [ValidateSet(\"Error\",\"Warn\",\"Info\",\"Debug\")]\n        [string]$Level = \"Info\",\n        [Parameter(Mandatory=$false)]\n        [switch]$NoConsoleOutput,\n        [Parameter(Mandatory=$false)]\n        [switch]$IncludeIMEOutput\n    )\n\n    Process {\n        try {\n            # Ensure log directory exists\n            $LogDirectory = Split-Path -Path $Path -Parent\n            if (-NOT(Test-Path -Path $LogDirectory)) {\n                try {\n                    New-Item -Path $LogDirectory -ItemType Directory -Force -ErrorAction Stop | Out-Null\n                }\n                catch {\n                    Write-Warning \"Failed to create log directory: $LogDirectory. Error: $_\"\n                    return\n                }\n            }\n\n            # Check log file size and handle rotation\n            $LogSize = 0\n            $MaxLogSize = 5 # MB\n\n            if (Test-Path -Path $Path) {\n                try {\n                    $LogSize = (Get-Item -Path $Path -ErrorAction Stop).Length / 1MB\n                }\n                catch {\n                    Write-Warning \"Could not check log file size: $_\"\n                }\n            }\n\n            # Rotate log if too large\n            if ($LogSize -gt $MaxLogSize) {\n                try {\n                    $BackupPath = $Path -replace \"\\.log$\", \"_$(Get-Date -Format 'yyyyMMdd_HHmmss').log\"\n                    Move-Item -Path $Path -Destination $BackupPath -ErrorAction Stop\n                }\n                catch {\n                    Write-Warning \"Failed to rotate log file: $_\"\n                    # If rotation fails, delete the old log\n                    try {\n                        Remove-Item -Path $Path -Force -ErrorAction Stop\n                    }\n                    catch {\n                        Write-Warning \"Failed to delete old log file: $_\"\n                        return\n                    }\n                }\n            }\n\n            # Format timestamp and level\n            $FormattedDate = Get-Date -Format \"yyyy-MM-dd HH:mm:ss\"\n            $ProcessId = $PID\n            $Username = [Environment]::UserName\n\n            # Determine level text\n            switch ($Level) {\n                'Error' { $LevelText = 'ERROR' }\n                'Warn'  { $LevelText = 'WARN ' }\n                'Info'  { $LevelText = 'INFO ' }\n                'Debug' { $LevelText = 'DEBUG' }\n            }\n\n            # Create log entry\n            $LogEntry = \"$FormattedDate [$LevelText] [PID:$ProcessId] [User:$Username] $Message\"\n\n            # Write to log file first (most important)\n            try {\n                $LogEntry | Out-File -FilePath $Path -Append -ErrorAction Stop\n            }\n            catch {\n                Write-Warning \"Failed to write to log file: $_\"\n                # Fallback: try to write to Windows Event Log\n                try {\n                    Write-EventLog -LogName Application -Source \"ToastNotificationScript\" -EventId 1001 -EntryType Information -Message $Message -ErrorAction SilentlyContinue\n                }\n                catch {\n                    # Silent failure for event log as it's just a fallback\n                }\n            }\n\n            # Write to console (optional)\n            if (-not $NoConsoleOutput) {\n                # Set VerbosePreference temporarily to ensure output\n                $OriginalVerbosePreference = $VerbosePreference\n                try {\n                    switch ($Level) {\n                        'Error' {\n                            Write-Error $Message -ErrorAction SilentlyContinue\n                        }\n                        'Warn'  {\n                            Write-Warning $Message\n                        }\n                        'Info'  {\n                            $VerbosePreference = 'Continue'\n                            Write-Verbose $Message\n                        }\n                        'Debug' {\n                            if ($DebugPreference -ne 'SilentlyContinue') {\n                                Write-Debug $Message\n                            }\n                        }\n                    }\n                }\n                finally {\n                    $VerbosePreference = $OriginalVerbosePreference\n                }\n            }\n\n            # Add IME logging if requested\n            if ($IncludeIMEOutput) {\n                Write-Output \"[ToastNotificationScript] $Message\"\n            }\n        }\n        catch {\n            Write-Warning \"Unexpected error in Write-Log function: $_\"\n        }\n    }\n}\n\n# Create Test-WeeklyMessageTrigger function\nfunction Test-WeeklyMessageTrigger() {\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$true)]\n        [string]$TargetDay,  # Now accepts comma-separated numeric values (1=Monday, 7=Sunday)\n        [Parameter(Mandatory=$true)]\n        [int]$TargetHour\n    )\n\n    $CurrentTime = Get-Date\n    # Get numeric day of week (0=Sunday, 1=Monday, ..., 6=Saturday)\n    $CurrentDayNumber = [int]$CurrentTime.DayOfWeek\n    # Convert to ISO 8601 format (1=Monday, 7=Sunday) for consistency\n    if ($CurrentDayNumber -eq 0) { $CurrentDayNumber = 7 } # Sunday: 0 -> 7\n\n    $CurrentHour = $CurrentTime.Hour\n    $CurrentMinute = $CurrentTime.Minute\n\n    # Parse target days (support comma-separated numeric values)\n    $TargetDayStrings = $TargetDay -split ',' | ForEach-Object { $_.Trim() }\n    $TargetDays = @()\n    $InvalidDays = @()\n\n    foreach ($DayString in $TargetDayStrings) {\n        if ($DayString -match '^\\d+$') {\n            $DayNumber = [int]$DayString\n            if ($DayNumber -ge 1 -and $DayNumber -le 7) {\n                $TargetDays += $DayNumber\n            } else {\n                $InvalidDays += $DayString\n            }\n        } else {\n            $InvalidDays += $DayString\n        }\n    }\n\n    # Report invalid day numbers\n    if ($InvalidDays.Count -gt 0) {\n        Write-Log -Level Warn -Message \"WeeklyMessage: Invalid day numbers found: $($InvalidDays -join ', '). Valid range: 1-7 (1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday)\"\n    }\n\n    # Skip if no valid days remain\n    if ($TargetDays.Count -eq 0) {\n        Write-Log -Level Warn -Message \"WeeklyMessage: No valid target days configured - skipping trigger check\"\n        return $false\n    }\n\n    # Convert day numbers to names for logging (always English for consistency)\n    $DayNames = @('', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')\n    $CurrentDayName = $DayNames[$CurrentDayNumber]\n    $TargetDayNames = $TargetDays | ForEach-Object { $DayNames[$_] }\n\n    # Check if current day is in target days\n    if ($TargetDays -contains $CurrentDayNumber) {\n        # Check hour condition\n        if ($TargetHour -eq -1) {\n            # Hour = -1 means \"any time during the target day\"\n            Write-Log -Message \"WeeklyMessage trigger conditions met: $CurrentDayName (day $CurrentDayNumber) at $CurrentHour`:$($CurrentMinute.ToString('00')) - any hour (configured days: $($TargetDayNames -join ', '))\"\n            return $true\n        }\n        elseif ($CurrentHour -eq $TargetHour) {\n            # Normal hour-specific behavior\n            Write-Log -Message \"WeeklyMessage trigger conditions met: $CurrentDayName (day $CurrentDayNumber) at $TargetHour`:$($CurrentMinute.ToString('00')) (configured days: $($TargetDayNames -join ', '))\"\n            return $true\n        }\n        else {\n            Write-Log -Message \"WeeklyMessage: Correct day but wrong hour (current: $CurrentDayName (day $CurrentDayNumber) at $CurrentHour`:$($CurrentMinute.ToString('00')), target: $($TargetDayNames -join ', ') at $TargetHour`:00)\"\n            return $false\n        }\n    }\n    else {\n        $HourDisplay = if ($TargetHour -eq -1) { \"any hour\" } else { \"$TargetHour`:00\" }\n        Write-Log -Message \"WeeklyMessage: Not trigger time (current: $CurrentDayName (day $CurrentDayNumber) at $CurrentHour`:$($CurrentMinute.ToString('00')), target days: $($TargetDayNames -join ', ') at $HourDisplay)\"\n        return $false\n    }\n}\n\n# Create Get Device Uptime function\nfunction Get-DeviceUptime() {\n    Write-Log -Message \"Executing Get-DeviceUptime function\"\n    $OS = Get-CimInstance Win32_OperatingSystem\n    $Uptime = (Get-Date) - ($OS.LastBootUpTime)\n    $Uptime.Days\n}\n\n# Create Get-WindowsVersion function\n# This determines if the script is running on a supported Windows version\nfunction Get-WindowsVersion() {\n    Write-Log -Message \"Executing Get-WindowsVersion function\"\n\n    try {\n        # Get OS information using CIM\n        $OS = Get-CimInstance -ClassName Win32_OperatingSystem -ErrorAction Stop\n\n        $OSVersion = $OS.Version\n        $ProductType = $OS.ProductType\n        $OSCaption = $OS.Caption\n        $BuildNumber = $OS.BuildNumber\n\n        Write-Log -Message \"Detected OS: $OSCaption (Version: $OSVersion, Build: $BuildNumber)\"\n\n        # Only supports workstations (ProductType = 1)\n        if ($ProductType -ne 1) {\n            Write-Log -Level Error -Message \"Unsupported OS type detected - only Windows 10/11 workstations are supported\"\n            return $false\n        }\n\n        # Check if Windows 10 or later (version 10.0.x)\n        if ($OSVersion -like \"10.0.*\") {\n\n            # Determine Windows version based on build number\n            if ($BuildNumber -ge 22000) {\n                $WindowsVersion = \"Windows 11\"\n                $MinBuildMet = $true\n            } elseif ($BuildNumber -ge 10240) {\n                $WindowsVersion = \"Windows 10\"\n                $MinBuildMet = $true\n            } else {\n                $WindowsVersion = \"Windows 10 (Unsupported Build)\"\n                $MinBuildMet = $false\n            }\n\n            if ($MinBuildMet) {\n                Write-Log -Message \"Supported $WindowsVersion workstation detected (Build: $BuildNumber)\"\n                return $true\n            } else {\n                Write-Log -Level Error -Message \"Windows 10 build too old (Build: $BuildNumber) - minimum build 10240 required\"\n                return $false\n            }\n\n        } else {\n            # Pre-Windows 10 versions\n            Write-Log -Level Error -Message \"Unsupported Windows version: $OSCaption (Version: $OSVersion)\"\n            return $false\n        }\n\n    }\n    catch {\n        Write-Log -Level Error -Message \"Failed to retrieve Windows version information: $_\"\n        return $false\n    }\n}\n\n# Create Get Given Name function\nfunction Get-GivenName() {\n    Write-Log -Message \"Executing Get-GivenName function\"\n\n    # Try to get given name from environment variables first\n    $GivenName = $null\n\n    # Method 1: Try from Windows environment\n    try {\n        $UserInfo = Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object UserName\n        if ($UserInfo.UserName -and $UserInfo.UserName.Contains('\\')) {\n            $Username = $UserInfo.UserName.Split('\\')[1]\n            Write-Log -Message \"Found username from Win32_ComputerSystem: $Username\"\n        }\n    }\n    catch {\n        Write-Log -Level Warn -Message \"Could not retrieve user info from Win32_ComputerSystem: $_\"\n    }\n\n    # Method 2: Try from registry (most reliable approach)\n    if ([string]::IsNullOrEmpty($GivenName)) {\n        Write-Log -Message \"Attempting to find given name from registry\"\n        $RegKey = \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\"\n        try {\n            $LogonUIInfo = Get-ItemProperty -Path $RegKey -ErrorAction SilentlyContinue\n            if ($LogonUIInfo.LastLoggedOnDisplayName) {\n                $LoggedOnUserDisplayName = $LogonUIInfo.LastLoggedOnDisplayName\n                if (-NOT[string]::IsNullOrEmpty($LoggedOnUserDisplayName)) {\n                    $DisplayName = $LoggedOnUserDisplayName.Split(\" \")\n                    $GivenName = $DisplayName[0]\n                    Write-Log -Message \"Successfully found given name from registry: $GivenName\"\n                }\n            }\n        }\n        catch {\n            Write-Log -Level Warn -Message \"Could not access LogonUI registry: $_\"\n        }\n    }\n    # Method 3: Try from user profile registry\n    if ([string]::IsNullOrEmpty($GivenName)) {\n        try {\n            $UserRegKey = \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\"\n            $UserInfo = Get-ItemProperty -Path $UserRegKey -Name \"Logon User Name\" -ErrorAction SilentlyContinue\n            if ($UserInfo) {\n                $GivenName = $UserInfo.\"Logon User Name\"\n                Write-Log -Message \"Successfully found given name from user registry: $GivenName\"\n            }\n        }\n        catch {\n            Write-Log -Level Warn -Message \"Could not access user registry: $_\"\n        }\n    }\n    # Fallback to username, then to generic placeholder\n    if ([string]::IsNullOrEmpty($GivenName)) {\n        try {\n            $GivenName = [Environment]::UserName\n            if (-NOT[string]::IsNullOrEmpty($GivenName)) {\n                Write-Log -Message \"Using username as fallback: $GivenName\"\n            } else {\n                $GivenName = \"there\"\n                Write-Log -Message \"Using generic fallback: $GivenName\"\n            }\n        }\n        catch {\n            $GivenName = \"there\"\n            Write-Log -Message \"Using generic fallback due to error: $GivenName\"\n        }\n    }\n    return $GivenName\n}\n\n# Create Windows Push Notification function\n# This tests if toast notifications are enabled in Windows\nfunction Test-WindowsPushNotificationsEnabled() {\n    Write-Log -Message \"Executing Test-WindowsPushNotificationsEnabled function\"\n\n    try {\n        $ToastEnabledKey = Get-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\PushNotifications\" -Name \"ToastEnabled\" -ErrorAction SilentlyContinue\n\n        if ($ToastEnabledKey -and $ToastEnabledKey.ToastEnabled -eq 1) {\n            Write-Log -Message \"Toast notifications are enabled for logged on user\"\n            return $true\n        }\n        elseif ($ToastEnabledKey -and $ToastEnabledKey.ToastEnabled -eq 0) {\n            Write-Log -Level Warn -Message \"Toast notifications are disabled for logged on user\"\n            return $false\n        }\n        else {\n            Write-Log -Level Warn -Message \"Cannot determine toast notification status - registry key not found\"\n            return $false\n        }\n    }\n    catch {\n        Write-Log -Level Error -Message \"Failed to check toast notification status: $_\"\n        return $false\n    }\n}\n\n# Create Enable-WindowsPushNotifications function\n# This attempts to re-enable toast notifications if disabled\nfunction Enable-WindowsPushNotifications() {\n    Write-Log -Message \"Attempting to enable toast notifications for the logged on user\"\n\n    try {\n        $ToastEnabledKeyPath = \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\PushNotifications\"\n\n        # Ensure the registry path exists\n        if (-not (Test-Path $ToastEnabledKeyPath)) {\n            New-Item -Path $ToastEnabledKeyPath -Force | Out-Null\n            Write-Log -Message \"Successfully created PushNotifications registry path\"\n        }\n\n        # Enable toast notifications\n        Set-ItemProperty -Path $ToastEnabledKeyPath -Name \"ToastEnabled\" -Value 1 -Force\n        Write-Log -Message \"Successfully set ToastEnabled registry value to 1\"\n\n        # Try to restart the notification service (best effort)\n        try {\n            $NotificationService = Get-Service -Name \"WpnUserService*\" -ErrorAction SilentlyContinue\n            if ($NotificationService) {\n                $NotificationService | Restart-Service -Force -ErrorAction SilentlyContinue\n                Write-Log -Message \"Successfully restarted Windows Push Notification service\"\n            }\n        }\n        catch {\n            Write-Log -Level Warn -Message \"Could not restart notification service: $_\"\n        }\n\n        Write-Log -Message \"Successfully enabled toast notifications for the logged on user\"\n        return $true\n    }\n    catch {\n        Write-Log -Level Error -Message \"Failed to enable toast notifications: $_\"\n        return $false\n    }\n}\n\n# Create Get-ToastConfig function\nfunction Get-ToastConfig() {\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$true)]\n        [string]$ConfigPath\n    )\n\n    Write-Log -Message \"Loading configuration file: $ConfigPath\"\n\n    if ($ConfigPath -match \"^https?://\") {\n        Write-Log -Message \"Config file is hosted online. Downloading from: $ConfigPath\"\n        try {\n            # Use Invoke-RestMethod for single request\n            $ConfigContent = Invoke-RestMethod -Uri $ConfigPath -Method Get -UseBasicParsing\n            $Xml = [xml]$ConfigContent\n            Write-Log -Message \"Successfully loaded online config file: $ConfigPath\"\n            return $Xml\n        }\n        catch {\n            $ErrorMessage = $_.Exception.Message\n            Write-Log -Message \"Failed to load online config file: $ConfigPath\" -Level Error -IncludeIMEOutput\n            Write-Log -Message \"Error details: $ErrorMessage\" -Level Error\n            Exit 0\n        }\n    }\n    else {\n        Write-Log -Message \"Config file is local or on file share: $ConfigPath\"\n        if (Test-Path -Path $ConfigPath) {\n            try {\n                $Xml = [xml](Get-Content -Path $ConfigPath -Encoding UTF8)\n                Write-Log -Message \"Successfully loaded local config file: $ConfigPath\"\n                return $Xml\n            }\n            catch {\n                $ErrorMessage = $_.Exception.Message\n                Write-Log -Message \"Failed to read local config file: $ConfigPath\" -Level Error -IncludeIMEOutput\n                Write-Log -Message \"Error details: $ErrorMessage\" -Level Error\n                Exit 0\n            }\n        }\n        else {\n            Write-Log -Level Error -Message \"Config file not found at: $ConfigPath\" -IncludeIMEOutput\n            Exit 0\n        }\n    }\n}\n\n# Function to check for configuration conflicts\nfunction Test-ConfigConflicts() {\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$true)]\n        [xml]$ConfigXml\n    )\n\n    Write-Log -Message \"Executing Test-ConfigConflicts function\"\n\n    $Conflicts = @()\n    $Warnings = @()\n\n    # Check if Toast feature is globally disabled (should be first check)\n    $ToastEnabled = ($ConfigXml.Configuration.Feature | Where-Object {$_.Name -eq \"Toast\"}).Enabled\n    if ($ToastEnabled -ne \"True\") {\n        $Conflicts += \"Toast feature is disabled in configuration (Toast Enabled = '$ToastEnabled') - no notifications can be displayed\"\n        # Log findings and return early if Toast is disabled\n        Write-Log -Level Error -Message \"Configuration conflicts detected:\"\n        Write-Log -Level Error -Message \"  - Toast feature is disabled in configuration\"\n        return @{\n            Conflicts = $Conflicts\n            Warnings = $Warnings\n            HasConflicts = $true\n            HasWarnings = $false\n        }\n    }\n\n    # Only check other conflicts if Toast is enabled\n    # Check for multiple trigger features enabled simultaneously\n    $PendingRebootUptimeEnabled = ($ConfigXml.Configuration.Feature | Where-Object {$_.Name -eq \"PendingRebootUptime\"}).Enabled\n    $WeeklyMessageEnabled = ($ConfigXml.Configuration.Feature | Where-Object {$_.Name -eq \"WeeklyMessage\"}).Enabled\n\n    if ($PendingRebootUptimeEnabled -eq \"True\" -and $WeeklyMessageEnabled -eq \"True\") {\n        $Conflicts += \"Multiple trigger features enabled: PendingRebootUptime and WeeklyMessage both active - only one trigger feature should be enabled at a time\"\n    }\n\n    # Check for notification app conflicts - simplified since UsePowershellApp has been removed\n    # Note: UsePowershellApp option has been removed. PowerShell app is now the automatic fallback when CustomNotificationApp is disabled.\n\n    # Check for button logic conflicts\n    $SnoozeEnabled = ($ConfigXml.Configuration.Option | Where-Object {$_.Name -eq \"SnoozeButton\"}).Enabled\n    $ActionButton1Enabled = ($ConfigXml.Configuration.Option | Where-Object {$_.Name -eq \"ActionButton1\"}).Enabled\n    $ActionButton2Enabled = ($ConfigXml.Configuration.Option | Where-Object {$_.Name -eq \"ActionButton2\"}).Enabled\n    $DismissEnabled = ($ConfigXml.Configuration.Option | Where-Object {$_.Name -eq \"DismissButton\"}).Enabled\n\n    if ($SnoozeEnabled -eq \"True\") {\n        if ($ActionButton1Enabled -eq \"False\" -and $ActionButton2Enabled -eq \"False\") {\n            $Warnings += \"SnoozeButton is enabled but both ActionButtons are disabled. SnoozeButton will force ActionButton to be enabled.\"\n        }\n        if ($DismissEnabled -eq \"False\") {\n            $Warnings += \"SnoozeButton is enabled but DismissButton is disabled. SnoozeButton will force DismissButton to be enabled.\"\n        }\n    }\n\n    # Check scenario vs feature compatibility\n    $Scenario = ($ConfigXml.Configuration.Option | Where-Object {$_.Name -eq \"Scenario\"}).Type\n\n    if ($Scenario -eq \"alarm\" -and $SnoozeEnabled -ne \"True\") {\n        $Warnings += \"Scenario is set to 'alarm' but SnoozeButton is disabled. Alarm scenarios typically work better with snooze functionality.\"\n    }\n\n    if ($Scenario -eq \"long\" -and $ActionButton1Enabled -ne \"True\" -and $ActionButton2Enabled -ne \"True\") {\n        $Warnings += \"Scenario is set to 'long' but no ActionButtons are enabled. Long scenarios typically include action buttons for user interaction.\"\n    }\n\n    # Check uptime threshold validity\n    if ($PendingRebootUptimeEnabled -eq \"True\") {\n        $MaxUptimeDays = ($ConfigXml.Configuration.Option | Where-Object {$_.Name -eq \"MaxUptimeDays\"}).Value\n        if ($MaxUptimeDays -and [int]$MaxUptimeDays -lt 0) {\n            $Warnings += \"MaxUptimeDays is set to negative value ($MaxUptimeDays). This may cause unexpected behavior.\"\n        }\n    }\n\n    # Log findings\n    if ($Conflicts.Count -gt 0) {\n        Write-Log -Level Error -Message \"Configuration conflicts detected:\"\n        foreach ($Conflict in $Conflicts) {\n            Write-Log -Level Error -Message \"  - $Conflict\"\n        }\n    }\n\n    if ($Warnings.Count -gt 0) {\n        Write-Log -Level Warn -Message \"Configuration warnings detected:\"\n        foreach ($Warning in $Warnings) {\n            Write-Log -Level Warn -Message \"  - $Warning\"\n        }\n    }\n\n    if ($Conflicts.Count -eq 0 -and $Warnings.Count -eq 0) {\n        Write-Log -Message \"Configuration validation passed - no conflicts detected\"\n    }\n\n    return @{\n        Conflicts = $Conflicts\n        Warnings = $Warnings\n        HasConflicts = ($Conflicts.Count -gt 0)\n        HasWarnings = ($Warnings.Count -gt 0)\n    }\n}\n\n# Create New-ToastXml function\nfunction New-ToastXml() {\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$false)]\n        [bool]$IncludeActionButton1 = $false,\n        [Parameter(Mandatory=$false)]\n        [bool]$IncludeActionButton2 = $false,\n        [Parameter(Mandatory=$false)]\n        [bool]$IncludeDismissButton = $false,\n        [Parameter(Mandatory=$false)]\n        [bool]$IncludeSnoozeButton = $false,\n        [Parameter(Mandatory=$false)]\n        [bool]$IncludeUptimeInfo = $false,\n        [Parameter(Mandatory=$false)]\n        [int]$UptimeDays = 0,\n        [Parameter(Mandatory=$false)]\n        [bool]$IsWeeklyMessage = $false\n    )\n\n    # Build the common visual structure\n    $VisualXml = @\"\n    <visual>\n    <binding template=\"ToastGeneric\">\n        <image placement=\"hero\" src=\"$HeroImage\"/>\n        <image id=\"1\" placement=\"appLogoOverride\" hint-crop=\"circle\" src=\"$LogoImage\"/>\n        <text placement=\"attribution\">$AttributionText</text>\n        <text>$HeaderText</text>\n        <group>\n            <subgroup>\n                <text hint-style=\"title\" hint-wrap=\"true\">$(if ($IsWeeklyMessage -and -NOT[string]::IsNullOrEmpty($WeeklyMessageTitleText)) { $WeeklyMessageTitleText } else { $TitleText })</text>\n            </subgroup>\n        </group>\n        <group>\n            <subgroup>\n                <text hint-style=\"body\" hint-wrap=\"true\">$(if ($IsWeeklyMessage -and -NOT[string]::IsNullOrEmpty($WeeklyMessageBodyText)) { $WeeklyMessageBodyText } else { $BodyText1 })</text>\n            </subgroup>\n        </group>\n$(if (-NOT $IsWeeklyMessage -and -NOT[string]::IsNullOrEmpty($BodyText2)) {\n@\"\n        <group>\n            <subgroup>\n                <text hint-style=\"body\" hint-wrap=\"true\">$BodyText2</text>\n            </subgroup>\n        </group>\n\"@\n})\n\"@\n\n    # Add uptime information if requested\n    if ($IncludeUptimeInfo) {\n        $VisualXml += @\"\n        <group>\n            <subgroup>\n                <text hint-style=\"body\" hint-wrap=\"true\" >$PendingRebootUptimeTextValue</text>\n            </subgroup>\n        </group>\n        <group>\n            <subgroup>\n                <text hint-style=\"base\" hint-align=\"left\">$ComputerUptimeText $UptimeDays $ComputerUptimeDaysText</text>\n            </subgroup>\n        </group>\n\"@\n    }\n\n    # Close the visual section\n    $VisualXml += @\"\n    </binding>\n    </visual>\n\"@\n\n    # Build the actions section dynamically\n    $ActionsContent = \"\"\n\n    if ($IncludeSnoozeButton) {\n        # Snooze button takes priority and includes specific input controls\n        $ActionsContent = @\"\n        <input id=\"snoozeTime\" type=\"selection\" title=\"$SnoozeText\" defaultInput=\"15\">\n            <selection id=\"15\" content=\"15 $MinutesText\"/>\n            <selection id=\"30\" content=\"30 $MinutesText\"/>\n            <selection id=\"60\" content=\"1 $HourText\"/>\n            <selection id=\"240\" content=\"4 $HoursText\"/>\n            <selection id=\"480\" content=\"8 $HoursText\"/>\n        </input>\n        <action activationType=\"protocol\" arguments=\"$Action1\" content=\"$ActionButton1Content\" />\n        <action activationType=\"system\" arguments=\"snooze\" hint-inputId=\"snoozeTime\" content=\"$SnoozeButtonContent\"/>\n        <action activationType=\"system\" arguments=\"dismiss\" content=\"$DismissButtonContent\"/>\n\"@\n    } else {\n        # Build standard actions\n        if ($IncludeActionButton1) {\n            $ActionsContent += \"        <action activationType=`\"protocol`\" arguments=`\"$Action1`\" content=`\"$ActionButton1Content`\" />`n\"\n        }\n        if ($IncludeActionButton2) {\n            $ActionsContent += \"        <action activationType=`\"protocol`\" arguments=`\"$Action2`\" content=`\"$ActionButton2Content`\" />`n\"\n        }\n        if ($IncludeDismissButton) {\n            $ActionsContent += \"        <action activationType=`\"system`\" arguments=`\"dismiss`\" content=`\"$DismissButtonContent`\"/>`n\"\n        }\n    }\n\n    # Combine everything into the complete toast XML\n    $CompleteXml = @\"\n<toast scenario=\"$Scenario\">\n$VisualXml\n    <actions>\n$ActionsContent\n    </actions>\n</toast>\n\"@\n\n    return [xml]$CompleteXml\n}\n\n# Create Get-ToastImage function\nfunction Get-ToastImage() {\n    [CmdletBinding()]\n    param(\n        [Parameter(Mandatory=$true)]\n        [string]$ImageUrl,\n        [Parameter(Mandatory=$true)]\n        [string]$LocalPath,\n        [Parameter(Mandatory=$true)]\n        [string]$ImageType\n    )\n\n    Write-Log -Message \"Toast$ImageType appears to be hosted online. Downloading from: $ImageUrl\"\n\n    try {\n        Invoke-WebRequest -Uri $ImageUrl -OutFile $LocalPath -UseBasicParsing\n        Write-Log -Message \"Successfully downloaded $ImageType from $ImageUrl to $LocalPath\"\n        return $LocalPath\n    }\n    catch {\n        $ErrorMessage = $_.Exception.Message\n        Write-Log -Level Error -Message \"Failed to download $ImageType from $ImageUrl. Error: $ErrorMessage\"\n        return $null\n    }\n}\n\n# Create Show-ToastNotification function\nfunction Show-ToastNotification() {\n    try {\n        # Determine which app to use for the notification\n        if ($CustomAppEnabled -eq \"True\") {\n            $App = \"Toast.Custom.App\"\n            Write-Log -Message \"Using custom notification app: $App\"\n            \n            # Setup custom app registry entries\n            $RegPath = \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Notifications\\Settings\"\n            if (-NOT(Test-Path -Path \"$RegPath\\$App\")) {\n                New-Item -Path \"$RegPath\\$App\" -Force | Out-Null\n                New-ItemProperty -Path \"$RegPath\\$App\" -Name \"ShowInActionCenter\" -Value 0 -PropertyType \"DWORD\" | Out-Null\n                New-ItemProperty -Path \"$RegPath\\$App\" -Name \"Enabled\" -Value 1 -PropertyType \"DWORD\" -Force | Out-Null\n                New-ItemProperty -Path \"$RegPath\\$App\" -Name \"SoundFile\" -PropertyType \"STRING\" -Force | Out-Null\n            }\n            # Ensure custom app is enabled\n            if ((Get-ItemProperty -Path \"$RegPath\\$App\" -Name \"Enabled\" -ErrorAction SilentlyContinue).Enabled -ne \"1\") {\n                New-ItemProperty -Path \"$RegPath\\$App\" -Name \"Enabled\" -Value 1 -PropertyType \"DWORD\" -Force | Out-Null\n            }\n        } else {\n            $App = \"{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\\WindowsPowerShell\\v1.0\\powershell.exe\"\n            Write-Log -Message \"Using PowerShell app as fallback: $App\"\n            \n            # Setup PowerShell app registry entries\n            $RegPath = \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Notifications\\Settings\"\n            if (-NOT(Test-Path -Path \"$RegPath\\$App\")) {\n                New-Item -Path \"$RegPath\\$App\" -Force | Out-Null\n                New-ItemProperty -Path \"$RegPath\\$App\" -Name \"ShowInActionCenter\" -Value 1 -PropertyType \"DWORD\" | Out-Null\n                New-ItemProperty -Path \"$RegPath\\$App\" -Name \"Enabled\" -Value 1 -PropertyType \"DWORD\" -Force | Out-Null\n                New-ItemProperty -Path \"$RegPath\\$App\" -Name \"SoundFile\" -PropertyType \"STRING\" -Force | Out-Null\n            }\n            # Ensure PowerShell app is enabled\n            if ((Get-ItemProperty -Path \"$RegPath\\$App\" -Name \"Enabled\" -ErrorAction SilentlyContinue).Enabled -ne \"1\") {\n                New-ItemProperty -Path \"$RegPath\\$App\" -Name \"Enabled\" -Value 1 -PropertyType \"DWORD\" -Force | Out-Null\n            }\n        }\n\n        # Load WinRT assemblies for toast notifications\n        [void][Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]\n        [void][Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime]\n        # Load the notification into the required format\n        $ToastXml = New-Object -TypeName Windows.Data.Xml.Dom.XmlDocument\n        $ToastXml.LoadXml($Toast.OuterXml)\n        # Display the toast notification\n        [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($App).Show($ToastXml)\n        Write-Log -Message \"Successfully displayed toast notification\" -IncludeIMEOutput\n        # Saving time stamp of when toast notification was run into registry\n        Save-NotificationLastRunTime\n        Exit 0\n    }\n    catch {\n        Write-Log -Message \"Failed to display toast notification\" -Level Error -IncludeIMEOutput\n        Write-Log -Message \"Error details: $_\" -Level Error\n        Write-Log -Message \"Make sure the script is running as the logged on user\" -Level Error\n        Exit 1\n    }\n}\n# Create Register-NotificationApp function\nfunction Register-CustomNotificationApp($fAppID,$fAppDisplayName) {\n    Write-Log -Message \"Executing Register-CustomNotificationApp function\"\n    $AppID = $fAppID\n    $AppDisplayName = $fAppDisplayName\n    # This removes the option to disable to toast notification\n    [int]$ShowInSettings = 0\n    # Adds an icon next to the display name of the notifyhing app\n    [int]$IconBackgroundColor = 0\n    $IconUri = \"%SystemRoot%\\ImmersiveControlPanel\\images\\logo.png\"\n    # Moved this into HKCU, in order to modify this directly from the toast notification running in user context\n    $AppRegPath = \"HKCU:\\Software\\Classes\\AppUserModelId\"\n    $RegPath = \"$AppRegPath\\$AppID\"\n    try {\n        if (-NOT(Test-Path $RegPath)) {\n            New-Item -Path $AppRegPath -Name $AppID -Force | Out-Null\n        }\n        $DisplayName = Get-ItemProperty -Path $RegPath -Name DisplayName -ErrorAction SilentlyContinue | Select-Object -ExpandProperty DisplayName -ErrorAction SilentlyContinue\n        if ($DisplayName -ne $AppDisplayName) {\n            New-ItemProperty -Path $RegPath -Name DisplayName -Value $AppDisplayName -PropertyType String -Force | Out-Null\n        }\n        $ShowInSettingsValue = Get-ItemProperty -Path $RegPath -Name ShowInSettings -ErrorAction SilentlyContinue | Select-Object -ExpandProperty ShowInSettings -ErrorAction SilentlyContinue\n        if ($ShowInSettingsValue -ne $ShowInSettings) {\n            New-ItemProperty -Path $RegPath -Name ShowInSettings -Value $ShowInSettings -PropertyType DWORD -Force | Out-Null\n        }\n        $IconUriValue = Get-ItemProperty -Path $RegPath -Name IconUri -ErrorAction SilentlyContinue | Select-Object -ExpandProperty IconUri -ErrorAction SilentlyContinue\n        if ($IconUriValue -ne $IconUri) {\n            New-ItemProperty -Path $RegPath -Name IconUri -Value $IconUri -PropertyType ExpandString -Force | Out-Null\n        }\n        $IconBackgroundColorValue = Get-ItemProperty -Path $RegPath -Name IconBackgroundColor -ErrorAction SilentlyContinue | Select-Object -ExpandProperty IconBackgroundColor -ErrorAction SilentlyContinue\n        if ($IconBackgroundColorValue -ne $IconBackgroundColor) {\n            New-ItemProperty -Path $RegPath -Name IconBackgroundColor -Value $IconBackgroundColor -PropertyType ExpandString -Force | Out-Null\n        }\n        Write-Log \"Successfully created registry entries for custom notification app: $fAppDisplayName\"\n    }\n    catch {\n        Write-Log -Message \"Failed to create one or more registry entries for the custom notification app\" -Level Error\n        Write-Log -Message \"Toast Notifications are usually not displayed if the notification app does not exist\" -Level Error\n    }\n}\n\n# Create function to retrieve the last run time of the notification\nfunction Get-NotificationLastRunTime() {\n    $LastRunTime = (Get-ItemProperty $global:RegistryPath -Name LastRunTime -ErrorAction Ignore).LastRunTime\n    $CurrentTime = Get-Date -Format s\n    if (-NOT[string]::IsNullOrEmpty($LastRunTime)) {\n        $Difference = ([datetime]$CurrentTime - ([datetime]$LastRunTime))\n        $MinutesSinceLastRunTime = [math]::Round($Difference.TotalMinutes)\n        Write-Log -Message \"Toast notification was previously displayed $MinutesSinceLastRunTime minutes ago\"\n        $MinutesSinceLastRunTime\n    }\n}\n\n# Create function to store the timestamp of the notification execution\nfunction Save-NotificationLastRunTime() {\n    try {\n        if (-NOT(Test-Path -Path $global:RegistryPath)) {\n            New-Item -Path $global:RegistryPath -Force | Out-Null\n            Write-Log -Message \"Successfully created registry path: $global:RegistryPath\"\n        }\n\n        $CurrentTime = Get-Date -Format s\n        Set-ItemProperty -Path $global:RegistryPath -Name \"LastRunTime\" -Value $CurrentTime -Force\n    }\n    catch {\n        Write-Log -Level Error -Message \"Failed to save notification run time: $_\"\n    }\n}\n\n#region Variables\n# Setting global script version\n$global:ScriptVersion = \"3.0.3\"\n# Setting executing directory\n$global:ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition\n# Setting global registry path\n$global:RegistryPath = \"HKCU:\\SOFTWARE\\ToastNotificationScript\"\n# Get user culture for multilanguage support\n$userCulture = try { (Get-Culture).Name } catch { Write-Log -Level Error -Message \"Failed to get user's local culture: $_\" }\n# Setting the default culture to en-US. This will be the default language if MultiLanguageSupport is not enabled in the config\n$defaultUserCulture = \"en-US\"\n# Temporary location for images if images are hosted online on blob storage or similar\n$LogoImageTemp = \"$env:TEMP\\ToastLogoImage.jpg\"\n$HeroImageTemp = \"$env:TEMP\\ToastHeroImage.jpg\"\n# Setting path to local images\n$ImagesPath = \"file:///$global:ScriptPath/Images\"\n#endregion\n\n# Create the global registry path for the toast notification script\nif (-NOT(Test-Path -Path $global:RegistryPath)) {\n    Write-Log -Message \"ToastNotificationScript registry path not found. Creating it: $global:RegistryPath\"\n    try {\n        New-Item -Path $global:RegistryPath -Force | Out-Null\n    }\n    catch {\n        Write-Log -Message \"Failed to create the ToastNotificationScript registry path: $global:RegistryPath\" -Level Error\n        Write-Log -Message \"This is required. Script will now exit\" -Level Error\n        Exit 1\n    }\n}\n\n# Testing for prerequisites\n# Test if the script is being run on a supported version of Windows. Windows 10 AND workstation OS is required\n$SupportedWindowsVersion = Get-WindowsVersion\nif ($SupportedWindowsVersion -eq $False) {\n    Write-Log -Message \"Aborting script\" -Level Error\n    Exit 1\n}\n\n# Check if script is running as SYSTEM and exit with error if so\n$CurrentUser = [Environment]::UserName\nif ($CurrentUser -eq \"SYSTEM\") {\n    Write-Log -Level Error -Message \"This script cannot run in SYSTEM context\" -IncludeIMEOutput\n    Write-Log -Level Error -Message \"Toast notifications require user session access and will not work under SYSTEM\"\n    Exit 1\n}\n\n# Testing for blockers of toast notifications in Windows\n$WindowsPushNotificationsEnabled = Test-WindowsPushNotificationsEnabled\nif ($WindowsPushNotificationsEnabled -eq $False) {\n    Enable-WindowsPushNotifications\n}\n# If no config file is set as parameter, use the default.\n# Default is executing directory. In this case, the config-toast.xml must exist in same directory as the Remediate-ToastNotification.ps1 file\nif (-NOT($Config)) {\n    Write-Log -Message \"No config file set as parameter. Using local config file\"\n    $Config = Join-Path ($global:ScriptPath) \"config-toast.xml\"\n}\n\n# Load config file\n$Xml = Get-ToastConfig -ConfigPath $Config\n\n# Check for configuration conflicts\nWrite-Log -Message \"Validating configuration for conflicts and compatibility issues\"\n$ConflictResults = Test-ConfigConflicts -ConfigXml $Xml\n\nif ($ConflictResults.HasConflicts) {\n    Write-Log -Level Error -Message \"Critical configuration conflicts detected - script cannot continue safely\" -IncludeIMEOutput\n    foreach ($Conflict in $ConflictResults.Conflicts) {\n        Write-Log -Level Error -Message \"CONFLICT: $Conflict\" -IncludeIMEOutput\n    }\n    Exit 1\n}\n\nif ($ConflictResults.HasWarnings) {\n    Write-Log -Level Warn -Message \"Configuration warnings detected - script will continue but behavior may be unexpected\" -IncludeIMEOutput\n    foreach ($Warning in $ConflictResults.Warnings) {\n        Write-Log -Level Warn -Message \"WARNING: $Warning\" -IncludeIMEOutput\n    }\n}\n\n# Load xml content into variables\nif(-NOT[string]::IsNullOrEmpty($Xml)) {\n    try {\n        Write-Log -Message \"Loading xml content from $Config into variables\"\n        # Load Toast Notification features\n        $ToastEnabled = $Xml.Configuration.Feature | Where-Object {$_.Name -like 'Toast'} | Select-Object -ExpandProperty 'Enabled'\n        $PendingRebootUptimeEnabled = $Xml.Configuration.Feature | Where-Object {$_.Name -like 'PendingRebootUptime'} | Select-Object -ExpandProperty 'Enabled'\n        $WeeklyMessageEnabled = $Xml.Configuration.Feature | Where-Object {$_.Name -like 'WeeklyMessage'} | Select-Object -ExpandProperty 'Enabled'\n        # Load Toast Notification options\n        $PendingRebootUptimeTextEnabled = $Xml.Configuration.Option | Where-Object {$_.Name -like 'PendingRebootUptimeText'} | Select-Object -ExpandProperty 'Enabled'\n        $MaxUptimeDays = $Xml.Configuration.Option | Where-Object {$_.Name -like 'MaxUptimeDays'} | Select-Object -ExpandProperty 'Value'\n        $WeeklyMessageDay = $Xml.Configuration.Option | Where-Object {$_.Name -like 'WeeklyMessageDay'} | Select-Object -ExpandProperty 'Value'\n        $WeeklyMessageHour = $Xml.Configuration.Option | Where-Object {$_.Name -like 'WeeklyMessageHour'} | Select-Object -ExpandProperty 'Value'\n        # Custom app doing the notification\n        $CustomAppEnabled = $Xml.Configuration.Option | Where-Object {$_.Name -like 'CustomNotificationApp'} | Select-Object -ExpandProperty 'Enabled'\n        $CustomAppValue = $Xml.Configuration.Option | Where-Object {$_.Name -like 'CustomNotificationApp'} | Select-Object -ExpandProperty 'Value'\n        $LogoImageFileName = $Xml.Configuration.Option | Where-Object {$_.Name -like 'LogoImageName'} | Select-Object -ExpandProperty 'Value'\n        $HeroImageFileName = $Xml.Configuration.Option | Where-Object {$_.Name -like 'HeroImageName'} | Select-Object -ExpandProperty 'Value'\n        # Rewriting image variables to cater for images being hosted online, as well as being hosted locally.\n        # Needed image including path in one variable\n        if ((-NOT[string]::IsNullOrEmpty($LogoImageFileName)) -OR (-NOT[string]::IsNullOrEmpty($HeroImageFileName)))  {\n            $LogoImage = $ImagesPath + \"/\" + $LogoImageFileName\n            $HeroImage = $ImagesPath + \"/\" + $HeroImageFileName\n        }\n        $Scenario = $Xml.Configuration.Option | Where-Object {$_.Name -like 'Scenario'} | Select-Object -ExpandProperty 'Type'\n        $Action1 = $Xml.Configuration.Option | Where-Object {$_.Name -like 'Action1'} | Select-Object -ExpandProperty 'Value'\n        $Action2 = $Xml.Configuration.Option | Where-Object {$_.Name -like 'Action2'} | Select-Object -ExpandProperty 'Value'\n        $MultiLanguageSupport = $Xml.Configuration.Text | Where-Object {$_.Option -like 'MultiLanguageSupport'} | Select-Object -ExpandProperty 'Enabled'\n        # Load Toast Notification buttons\n        $ActionButton1Enabled = $Xml.Configuration.Option | Where-Object {$_.Name -like 'ActionButton1'} | Select-Object -ExpandProperty 'Enabled'\n        $ActionButton2Enabled = $Xml.Configuration.Option | Where-Object {$_.Name -like 'ActionButton2'} | Select-Object -ExpandProperty 'Enabled'\n        $DismissButtonEnabled = $Xml.Configuration.Option | Where-Object {$_.Name -like 'DismissButton'} | Select-Object -ExpandProperty 'Enabled'\n        $SnoozeButtonEnabled = $Xml.Configuration.Option | Where-Object {$_.Name -like 'SnoozeButton'} | Select-Object -ExpandProperty 'Enabled'\n        # Multi language support\n        if ($MultiLanguageSupport -eq \"True\") {\n            Write-Log -Message \"MultiLanguageSupport set to True. Current language culture is $userCulture. Checking for language support\"\n            # Check config xml if language support is added for the users culture\n            if (-NOT[string]::IsNullOrEmpty($xml.Configuration.$userCulture)) {\n                Write-Log -Message \"Language culture support found, localizing text using $userCulture\"\n                $XmlLang = $xml.Configuration.$userCulture\n            }\n            # Else fallback to using default language \"en-US\"\n            elseif (-NOT[string]::IsNullOrEmpty($xml.Configuration.$defaultUserCulture)) {\n                Write-Log -Message \"Language culture support not found, using $defaultUserCulture as fallback\"\n                $XmlLang = $xml.Configuration.$defaultUserCulture\n            }\n        }\n        # If multilanguagesupport is set to False use default language \"en-US\"\n        elseif ($MultiLanguageSupport -eq \"False\") {\n            $XmlLang = $xml.Configuration.$defaultUserCulture\n        }\n        # Regardless of whatever might happen, always use \"en-US\" as language\n        else {\n            $XmlLang = $xml.Configuration.$defaultUserCulture\n        }\n        # Load Toast Notification text\n        $PendingRebootUptimeTextValue = $XmlLang.Text | Where-Object {$_.Name -like 'PendingRebootUptimeText'} | Select-Object -ExpandProperty '#text'\n        $WeeklyMessageTitleText = $XmlLang.Text | Where-Object {$_.Name -like 'WeeklyMessageTitle'} | Select-Object -ExpandProperty '#text'\n        $WeeklyMessageBodyText = $XmlLang.Text | Where-Object {$_.Name -like 'WeeklyMessageBody'} | Select-Object -ExpandProperty '#text'\n        $ActionButton1Content = $XmlLang.Text | Where-Object {$_.Name -like 'ActionButton1'} | Select-Object -ExpandProperty '#text'\n        $ActionButton2Content = $XmlLang.Text | Where-Object {$_.Name -like 'ActionButton2'} | Select-Object -ExpandProperty '#text'\n        $DismissButtonContent = $XmlLang.Text | Where-Object {$_.Name -like 'DismissButton'} | Select-Object -ExpandProperty '#text'\n        $SnoozeButtonContent = $XmlLang.Text | Where-Object {$_.Name -like 'SnoozeButton'} | Select-Object -ExpandProperty '#text'\n        $AttributionText = $XmlLang.Text | Where-Object {$_.Name -like 'AttributionText'} | Select-Object -ExpandProperty '#text'\n        $HeaderText = $XmlLang.Text | Where-Object {$_.Name -like 'HeaderText'} | Select-Object -ExpandProperty '#text'\n        $TitleText = $XmlLang.Text | Where-Object {$_.Name -like 'TitleText'} | Select-Object -ExpandProperty '#text'\n        $BodyText1 = $XmlLang.Text | Where-Object {$_.Name -like 'BodyText1'} | Select-Object -ExpandProperty '#text'\n        $BodyText2 = $XmlLang.Text | Where-Object {$_.Name -like 'BodyText2'} | Select-Object -ExpandProperty '#text'\n        $SnoozeText = $XmlLang.Text | Where-Object {$_.Name -like 'SnoozeText'} | Select-Object -ExpandProperty '#text'\n\t    # Note: Removed DeadlineText for simplified configuration\n\t    $GreetMorningText = $XmlLang.Text | Where-Object {$_.Name -like 'GreetMorningText'} | Select-Object -ExpandProperty '#text'\n\t    $GreetAfternoonText = $XmlLang.Text | Where-Object {$_.Name -like 'GreetAfternoonText'} | Select-Object -ExpandProperty '#text'\n\t    $GreetEveningText = $XmlLang.Text | Where-Object {$_.Name -like 'GreetEveningText'} | Select-Object -ExpandProperty '#text'\n\t    $MinutesText = $XmlLang.Text | Where-Object {$_.Name -like 'MinutesText'} | Select-Object -ExpandProperty '#text'\n\t    $HourText = $XmlLang.Text | Where-Object {$_.Name -like 'HourText'} | Select-Object -ExpandProperty '#text'\n        $HoursText = $XmlLang.Text | Where-Object {$_.Name -like 'HoursText'} | Select-Object -ExpandProperty '#text'\n\t    $ComputerUptimeText = $XmlLang.Text | Where-Object {$_.Name -like 'ComputerUptimeText'} | Select-Object -ExpandProperty '#text'\n        $ComputerUptimeDaysText = $XmlLang.Text | Where-Object {$_.Name -like 'ComputerUptimeDaysText'} | Select-Object -ExpandProperty '#text'\n        Write-Log -Message \"Successfully loaded xml content from $Config\"\n    }\n    catch {\n        Write-Log -Message \"Xml content from $Config was not loaded properly\"\n        Exit 1\n    }\n}\n\nif ($CustomAppEnabled -eq \"True\") {\n    # Hardcoding the AppID. Only the display name is interesting, thus this comes from the config.xml\n    Register-CustomNotificationApp -fAppID \"Toast.Custom.App\" -fAppDisplayName $CustomAppValue\n}\n# Downloading images into user's temp folder if images are hosted online\nif ($LogoImageFileName -match \"^https?://\") {\n    $DownloadedLogoPath = Get-ToastImage -ImageUrl $LogoImageFileName -LocalPath $LogoImageTemp -ImageType \"LogoImage\"\n    if ($DownloadedLogoPath) {\n        $LogoImage = $DownloadedLogoPath\n    }\n}\n\nif ($HeroImageFileName -match \"^https?://\") {\n    $DownloadedHeroPath = Get-ToastImage -ImageUrl $HeroImageFileName -LocalPath $HeroImageTemp -ImageType \"HeroImage\"\n    if ($DownloadedHeroPath) {\n        $HeroImage = $DownloadedHeroPath\n    }\n}\n# Running Pending Reboot Checks\nif ($PendingRebootUptimeEnabled -eq \"True\") {\n    $Uptime = Get-DeviceUptime\n    Write-Log -Message \"PendingRebootUptimeEnabled set to True. Checking for device uptime. Current uptime is: $Uptime days\"\n}\n\n# Check for WeeklyMessage scenario\nif ($WeeklyMessageEnabled -eq \"True\") {\n    Write-Log -Message \"WeeklyMessage feature is enabled, checking trigger conditions\"\n\n    if (Test-WeeklyMessageTrigger -TargetDay $WeeklyMessageDay -TargetHour ([int]$WeeklyMessageHour)) {\n        # Set a flag for WeeklyMessage detection\n        $WeeklyMessageTriggered = $true\n    }\n}\n# Registry setup for notification apps is now handled in Show-ToastNotification function when the app is determined\n\n# PowerShell app registry setup is now handled automatically in Show-ToastNotification function when needed\n\n# Building personalized greeting with given name\nWrite-Log -Message \"Building personalized greeting with given name\"\n$Hour = (Get-Date).TimeOfDay.Hours\nif (($Hour -ge 0) -AND ($Hour -lt 12)) {\n    Write-Log -Message \"Using morning greeting\"\n    $Greeting = $GreetMorningText\n}\nelseif (($Hour -ge 12) -AND ($Hour -lt 16)) {\n    Write-Log -Message \"Using afternoon greeting\"\n    $Greeting = $GreetAfternoonText\n}\nelse {\n    Write-Log -Message \"Using evening greeting\"\n    $Greeting = $GreetEveningText\n}\n$GivenName = Get-GivenName\n$HeaderText = \"$Greeting $GivenName\"\n# Build toast notification XML based on configuration\nWrite-Log -Message \"Building toast notification XML based on button configuration\"\n\n# Check if uptime information should be included\n$IncludeUptime = ($PendingRebootUptimeTextEnabled -eq \"True\") -AND ($Uptime -gt $MaxUptimeDays)\nif ($IncludeUptime) {\n    Write-Log -Message \"Including uptime information in toast notification (uptime: $Uptime days exceeds maximum: $MaxUptimeDays days)\"\n}\n\n# Determine which buttons to include based on configuration\nif ($SnoozeButtonEnabled -eq \"True\") {\n    Write-Log -Message \"Creating toast with snooze button (includes action button and dismiss button)\"\n    $Toast = New-ToastXml -IncludeSnoozeButton $true -IncludeUptimeInfo $IncludeUptime -UptimeDays $Uptime -IsWeeklyMessage ($WeeklyMessageTriggered -eq $true)\n}\nelseif ($ActionButton2Enabled -eq \"True\") {\n    $IncludeAction1 = ($ActionButton1Enabled -eq \"True\")\n    $IncludeDismiss = ($DismissButtonEnabled -eq \"True\")\n    Write-Log -Message \"Creating toast with ActionButton2 enabled (ActionButton1: $IncludeAction1, DismissButton: $IncludeDismiss)\"\n    $Toast = New-ToastXml -IncludeActionButton1 $IncludeAction1 -IncludeActionButton2 $true -IncludeDismissButton $IncludeDismiss -IncludeUptimeInfo $IncludeUptime -UptimeDays $Uptime -IsWeeklyMessage ($WeeklyMessageTriggered -eq $true)\n}\nelse {\n    # Standard button combinations\n    $IncludeAction1 = ($ActionButton1Enabled -eq \"True\")\n    $IncludeDismiss = ($DismissButtonEnabled -eq \"True\")\n\n    if ($IncludeAction1 -and $IncludeDismiss) {\n        Write-Log -Message \"Creating toast with action button and dismiss button\"\n    }\n    elseif ($IncludeAction1 -and -not $IncludeDismiss) {\n        Write-Log -Message \"Creating toast with action button only\"\n    }\n    elseif (-not $IncludeAction1 -and $IncludeDismiss) {\n        Write-Log -Message \"Creating toast with dismiss button only\"\n    }\n    else {\n        Write-Log -Message \"Creating toast with no action buttons\"\n    }\n\n    $Toast = New-ToastXml -IncludeActionButton1 $IncludeAction1 -IncludeDismissButton $IncludeDismiss -IncludeUptimeInfo $IncludeUptime -UptimeDays $Uptime -IsWeeklyMessage ($WeeklyMessageTriggered -eq $true)\n}\n\n# Running the Display-notification function depending on selections and variables\n# Toast used for WeeklyMessage\nif ($WeeklyMessageEnabled -eq \"True\" -AND $WeeklyMessageTriggered -eq $true) {\n    Write-Log -Message \"Displaying WeeklyMessage toast notification for $WeeklyMessageDay at $WeeklyMessageHour`:00\"\n    Show-ToastNotification\n    # Stopping script. No need to accidentally run further toasts\n    break\n}\n\n# Toast used for PendingReboot check and considering OS uptime\nif (($PendingRebootUptimeEnabled -eq \"True\") -AND ($Uptime -gt $MaxUptimeDays)) {\n    Write-Log -Message \"Toast notification is used in regards to pending reboot. Uptime count is greater than $MaxUptimeDays\"\n    Show-ToastNotification\n    # Stopping script. No need to accidently run further toasts\n    break\n}\n\n# Display default toast if both trigger features are disabled\nif (($WeeklyMessageEnabled -ne \"True\") -AND ($PendingRebootUptimeEnabled -ne \"True\")) {\n    Write-Log -Message \"Both WeeklyMessage and PendingRebootUptimeEnabled features are disabled. Displaying default toast notification\"\n    Show-ToastNotification\n    # Stopping script. No need to accidentally run further toasts\n    break\n}\n\n# Final fallback: if we reach here, no conditions were met\nWrite-Log -Level Warn -Message \"No toast notification conditions were fulfilled - script completed without displaying notification\" -IncludeIMEOutput\n"
  },
  {
    "path": "config-toast-iosupdate.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Configuration>\n\t<Feature Name=\"Toast\" Enabled=\"True\" /> <!-- Enables or disables the entire toast notification -->\n\t<Feature Name=\"PendingRebootUptime\" Enabled=\"False\" />\t<!-- Enables the toast for reminding users of restarting their device if it exceeds the uptime defined in MaxUptimeDays -->\n\t<Feature Name=\"WeeklyMessage\" Enabled=\"True\" /> <!-- Enables weekly reminder messages on specified day and hour -->\n\t<Option Name=\"MaxUptimeDays\" Value=\"-6\" />\t<!-- When using the toast for checking for pending reboots. A reboot is considered pending if computer uptime exceeds the value set here -->\n\t<Option Name=\"WeeklyMessageDay\" Value=\"1,2,3,4,5\" /> <!-- Numeric day(s) when WeeklyMessage should trigger (1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday). Single day: 3 | Multiple days: 1,3,5 | All weekdays: 1,2,3,4,5 -->\n\t<Option Name=\"WeeklyMessageHour\" Value=\"-1\" /> <!-- Hour when WeeklyMessage should trigger (-1=any hour during target day, 0-23=specific hour in 24-hour format) -->\n\t<Option Name=\"PendingRebootUptimeText\" Enabled=\"False\" />\t<!-- Adds an additional group to the toast with text about the uptime of the computer -->\n\t<Option Name=\"CustomNotificationApp\" Enabled=\"True\" Value=\"Toast Notification Script\"/>\t<!-- The app in Windows doing the actual notification. When enabled, uses custom app. When disabled, automatically defaults to PowerShell app for reliable notification delivery -->\n\t<Option Name=\"LogoImageName\" Value=\"https://toast.imab.dk/ToastLogoImageIMAB.png\" />  <!-- File name of the image shown as logo in the toast notoification  -->\n\t<Option Name=\"HeroImageName\" Value=\"https://toast.imab.dk/ToastHeroImageiOS.png\" /> <!-- File name of the image shown in the top of the toast notification -->\t\n\t<Option Name=\"ActionButton1\" Enabled=\"True\" />\t<!-- Enables or disables the action button. -->\n\t<Option Name=\"ActionButton2\" Enabled=\"False\" />\t<!-- Enables or disables the action button. -->\n\t<Option Name=\"DismissButton\" Enabled=\"True\" />\t<!-- Enables or disables the dismiss button. -->\n\t<Option Name=\"SnoozeButton\" Enabled=\"False\" /> <!-- Enabling this option will always enable action button and dismiss button -->\n\t<Option Name=\"Scenario\" Type=\"reminder\" />\t<!-- Possible values are: reminder | short | long | alarm -->\n\t<Option Name=\"Action1\" Value=\"https://support.apple.com/en-us/118575\" />\t<!-- Action taken when using the Action button. Can be any protocol in Windows -->\n\t<Option Name=\"Action2\" Value=\"https://imab.dk\" />\t<!-- Action taken when using the Action button. Can be any protocol in Windows -->\n\t<Text Option=\"MultiLanguageSupport\" Enabled=\"False\" /> <!-- Enable support for multiple languages. If set to True, the toast notification will look for the users language culture within the config file -->\n\t<en-US> <!-- Default fallback language. This language will be used if MultiLanguageSupport is set to False or if no matching language is found -->\n        <Text Name=\"PendingRebootUptimeText\">Your computer is required to restart due to having exceeded the maximum allowed uptime.</Text> <!-- Text used if the PendingRebootUptimeText Option is enabled -->\n        <Text Name=\"WeeklyMessageTitle\">iOS 26 Update Required</Text> <!-- Title text for weekly message notifications -->\n        <Text Name=\"WeeklyMessageBody\">Your iPhone or iPad needs to be updated to iOS 26.1 to ensure security and compatibility.&#10;&#10;Please update your iOS device at your earliest convenience. Click 'Guide' for official Apple instructions.&#10;&#10;Note: Failure to update in a timely manner may result in device deactivation.&#10;&#10;Thank you in advance.</Text> <!-- Body text for weekly message notifications -->\n        <Text Name=\"ActionButton1\">Guide</Text>  <!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Learn More</Text>  <!-- Text on the ActionButton if enabled -->\n        <Text Name=\"DismissButton\">Dismiss</Text> <!-- Text on the DismissButton if enabled -->\n        <Text Name=\"SnoozeButton\">Snooze</Text> <!-- Text on the SnoozeButton if enabled -->\n        <Text Name=\"AttributionText\">www.imab.dk</Text>\n        <Text Name=\"HeaderText\">Helpdesk kindly reminds you</Text>\n        <Text Name=\"TitleText\">Update Your iOS Device to iOS 26</Text>\n        <Text Name=\"BodyText1\">Your iPhone or iPad requires an update to iOS 26 for security, stability, and compliance with company policies.</Text>\n        <Text Name=\"BodyText2\">Please update your iOS device as soon as possible. Thank you for keeping your devices secure and up to date.</Text>\n        <Text Name=\"SnoozeText\">Click snooze to be reminded again in:</Text>\n        <Text Name=\"GreetMorningText\">Good morning</Text>\n        <Text Name=\"GreetAfternoonText\">Good afternoon</Text>\n        <Text Name=\"GreetEveningText\">Good evening</Text>\n        <Text Name=\"MinutesText\">Minutes</Text>\n        <Text Name=\"HourText\">Hour</Text>\n        <Text Name=\"HoursText\">Hours</Text>\n        <Text Name=\"ComputerUptimeText\">Computer uptime:</Text>\n        <Text Name=\"ComputerUptimeDaysText\">days</Text>\n    </en-US>\n\t<da-DK>\n        <Text Name=\"PendingRebootUptimeText\">Din computer er påkrævet at genstarte, da den har overskredet den maksimale oppetid.</Text> <!-- Text used if the PendingRebootUptimeText Option is enabled -->\n        <Text Name=\"WeeklyMessageTitle\">iOS 26 Opdatering Påkrævet</Text> <!-- Title text for weekly message notifications -->\n        <Text Name=\"WeeklyMessageBody\">Din iPhone eller iPad skal opdateres til iOS 26 for at sikre sikkerhed og kompatibilitet.&#10;&#10;Opdater venligst din iOS-enhed ved først givne lejlighed. Klik 'Opdateringsvejledning' for instruktioner eller 'Mere Info' for yderligere information.&#10;&#10;Bemærk: Manglende opdatering kan resultere i at enheden bliver deaktiveret.&#10;&#10;På forhånd tak.</Text> <!-- Body text for weekly message notifications -->\n        <Text Name=\"ActionButton1\">Opdateringsvejledning</Text>  <!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Mere Info</Text>  <!-- Text on the ActionButton if enabled -->\n        <Text Name=\"DismissButton\">Afvis</Text> <!-- Text on the DismissButton if enabled -->\n        <Text Name=\"SnoozeButton\">Udskyd</Text> <!-- Text on the SnoozeButton if enabled -->\n        <Text Name=\"AttributionText\">www.imab.dk</Text>\n        <Text Name=\"HeaderText\">IT Afdelingen - Enhedsopdatering</Text>\n        <Text Name=\"TitleText\">Opdater Din iOS-Enhed til iOS 26</Text>\n        <Text Name=\"BodyText1\">Din iPhone eller iPad kræver en opdatering til iOS 26 af hensyn til sikkerhed, stabilitet og overholdelse af virksomhedens politikker.</Text>\n        <Text Name=\"BodyText2\">Opdater venligst din iOS-enhed hurtigst muligt. Tak fordi du holder dine enheder sikre og opdaterede.</Text>\n        <Text Name=\"SnoozeText\">Klik udskyd for at blive påmindet igen om:</Text>\n        <Text Name=\"GreetMorningText\">Godmorgen</Text>\n        <Text Name=\"GreetAfternoonText\">God eftermiddag</Text>\n        <Text Name=\"GreetEveningText\">Godaften</Text>\n        <Text Name=\"MinutesText\">Minutter</Text>\n        <Text Name=\"HourText\">Time</Text>\n        <Text Name=\"HoursText\">Timer</Text>\n        <Text Name=\"ComputerUptimeText\">Computer oppetid:</Text>\n        <Text Name=\"ComputerUptimeDaysText\">dage</Text>\n    </da-DK>\n    <sv-SE>\n\t\t<Text Name=\"PendingRebootUptimeText\">Din dator behöver startas om då den överskridit den maximala tillåtna upptiden.</Text>\t<!-- Text used if the PendingRebootUptimeText Option is enabled -->\n\t\t<Text Name=\"WeeklyMessageTitle\">iOS 26 Uppdatering Krävs</Text> <!-- Title text for weekly message notifications -->\n\t\t<Text Name=\"WeeklyMessageBody\">Din iPhone eller iPad behöver uppdateras till iOS 26 för att säkerställa säkerhet och kompatibilitet.&#10;&#10;Vänligen uppdatera din iOS-enhet vid närmaste tillfälle. Klicka 'Uppdateringsguide' för instruktioner eller 'Läs Mer' för ytterligare information.&#10;&#10;Observera: Enheten kan komma att inaktiveras om uppdateringen inte genomförs i tid.&#10;&#10;Tack på förhand.</Text> <!-- Body text for weekly message notifications -->\n\t\t<Text Name=\"ActionButton1\">Uppdateringsguide</Text>\t<!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Läs Mer</Text>\t<!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"DismissButton\">Stäng</Text>\t<!-- Text on the DismissButton if enabled -->\n\t\t<Text Name=\"SnoozeButton\">Påminn</Text>\t<!-- Text on the SnoozeButton if enabled -->\n\t\t<Text Name=\"AttributionText\">www.imab.dk</Text>\n\t\t<Text Name=\"HeaderText\">IT-avdelningen - Enhetsuppdatering</Text>\n\t\t<Text Name=\"TitleText\">Uppdatera Din iOS-Enhet till iOS 26</Text>\n\t\t<Text Name=\"BodyText1\">Din iPhone eller iPad kräver en uppdatering till iOS 26 för säkerhet, stabilitet och efterlevnad av företagets policyer.</Text>\n\t\t<Text Name=\"BodyText2\">Vänligen uppdatera din iOS-enhet så snart som möjligt. Tack för att du håller dina enheter säkra och uppdaterade.</Text>\n\t\t<Text Name=\"SnoozeText\">Klicka på Påminn för att bli påmind igen:</Text>\n\t\t<Text Name=\"GreetMorningText\">God morgon</Text>\n\t\t<Text Name=\"GreetAfternoonText\">God eftermiddag</Text>\n\t\t<Text Name=\"GreetEveningText\">God kväll</Text>\n\t\t<Text Name=\"MinutesText\">Minuter</Text>\n\t\t<Text Name=\"HourText\">Timma</Text>\n\t\t<Text Name=\"HoursText\">Timmar</Text>\n\t\t<Text Name=\"ComputerUptimeText\">Datorns upptid:</Text>\n\t\t<Text Name=\"ComputerUptimeDaysText\">dagar</Text>\n    </sv-SE>\n</Configuration>\n"
  },
  {
    "path": "config-toast-nofeatures.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Configuration>\n\t<Feature Name=\"Toast\" Enabled=\"True\" /> <!-- Enables or disables the entire toast notification -->\n\t<Feature Name=\"PendingRebootUptime\" Enabled=\"False\" />\t<!-- Enables the toast for reminding users of restarting their device if it exceeds the uptime defined in MaxUptimeDays -->\n\t<Feature Name=\"WeeklyMessage\" Enabled=\"False\" /> <!-- Enables weekly reminder messages on specified day and hour -->\n\t<Option Name=\"MaxUptimeDays\" Value=\"-6\" />\t<!-- When using the toast for checking for pending reboots. A reboot is considered pending if computer uptime exceeds the value set here -->\n\t<Option Name=\"WeeklyMessageDay\" Value=\"4\" /> <!-- Numeric day(s) when WeeklyMessage should trigger (1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday). Single day: 3 | Multiple days: 1,3,5 | All weekdays: 1,2,3,4,5 -->\n\t<Option Name=\"WeeklyMessageHour\" Value=\"-1\" /> <!-- Hour when WeeklyMessage should trigger (-1=any hour during target day, 0-23=specific hour in 24-hour format) -->\n\t<Option Name=\"PendingRebootUptimeText\" Enabled=\"True\" />\t<!-- Adds an additional group to the toast with text about the uptime of the computer -->\n\t<Option Name=\"CustomNotificationApp\" Enabled=\"True\" Value=\"iMAB.DK NOTIFICATIONS\"/>\t<!-- The app in Windows doing the actual notification. When enabled, uses custom app. When disabled, automatically defaults to PowerShell app for reliable notification delivery -->\n\t<Option Name=\"LogoImageName\" Value=\"https://toast.imab.dk/ToastLogoImageIMAB.png\" />  <!-- File name of the image shown as logo in the toast notoification  -->\n\t<Option Name=\"HeroImageName\" Value=\"https://toast.imab.dk/ToastHeroImageIMAB.png\" /> <!-- File name of the image shown in the top of the toast notification -->\t\n\t<Option Name=\"ActionButton1\" Enabled=\"True\" />\t<!-- Enables or disables the action button. -->\n\t<Option Name=\"ActionButton2\" Enabled=\"True\" />\t<!-- Enables or disables the action button. -->\n\t<Option Name=\"DismissButton\" Enabled=\"True\" />\t<!-- Enables or disables the dismiss button. -->\n\t<Option Name=\"SnoozeButton\" Enabled=\"False\" /> <!-- Enabling this option will always enable action button and dismiss button -->\n\t<Option Name=\"Scenario\" Type=\"reminder\" />\t<!-- Possible values are: reminder | short | long | alarm -->\n\t<Option Name=\"Action1\" Value=\"ms-settings:windowsupdate\" />\t<!-- Action taken when using the Action button. Can be any protocol in Windows -->\n\t<Option Name=\"Action2\" Value=\"https://imab.dk\" />\t<!-- Action taken when using the Action button. Can be any protocol in Windows -->\n\t<Text Option=\"MultiLanguageSupport\" Enabled=\"False\" /> <!-- Enable support for multiple languages. If set to True, the toast notification will look for the users language culture within the config file -->\n\t<en-US> <!-- Default fallback language. This language will be used if MultiLanguageSupport is set to False or if no matching language is found -->\n        <Text Name=\"PendingRebootUptimeText\">Your computer is required to restart due to having exceeded the maximum allowed uptime.</Text> <!-- Text used if the PendingRebootUptimeText Option is enabled -->\n        <Text Name=\"WeeklyMessageTitle\">Weekly reminder</Text> <!-- Title text for weekly message notifications -->\n        <Text Name=\"WeeklyMessageBody\">imab.dk have published new applications to the Company Portal. Go check them out.&#10;&#10;Click 'Open' to launch Company Portal or 'Learn More' to go to our Intranet.</Text> <!-- Body text for weekly message notifications -->\n        <Text Name=\"ActionButton1\">Check Updates</Text>  <!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Learn More</Text>  <!-- Text on the ActionButton if enabled -->\n        <Text Name=\"DismissButton\">Dismiss</Text> <!-- Text on the DismissButton if enabled -->\n        <Text Name=\"SnoozeButton\">Snooze</Text> <!-- Text on the SnoozeButton if enabled -->\n        <Text Name=\"AttributionText\">www.imab.dk</Text>\n        <Text Name=\"HeaderText\">IT Department Notification</Text>\n        <Text Name=\"TitleText\">System Maintenance Reminder</Text>\n        <Text Name=\"BodyText1\">This is a regular notification to remind you about important system maintenance practices.</Text>\n        <Text Name=\"BodyText2\">Please ensure your system stays updated and secure. Click 'Check Updates' to open Windows Update settings.</Text>\n        <Text Name=\"SnoozeText\">Click snooze to be reminded again in:</Text>\n        <Text Name=\"GreetMorningText\">Good morning</Text>\n        <Text Name=\"GreetAfternoonText\">Good afternoon</Text>\n        <Text Name=\"GreetEveningText\">Good evening</Text>\n        <Text Name=\"MinutesText\">Minutes</Text>\n        <Text Name=\"HourText\">Hour</Text>\n        <Text Name=\"HoursText\">Hours</Text>\n        <Text Name=\"ComputerUptimeText\">Computer uptime:</Text>\n        <Text Name=\"ComputerUptimeDaysText\">days</Text>\n    </en-US>\n\t<da-DK>\n        <Text Name=\"PendingRebootUptimeText\">Din computer er påkrævet at genstarte, da den har overskredet den maksimale oppetid.</Text> <!-- Text used if the PendingRebootUptimeText Option is enabled -->\n        <Text Name=\"WeeklyMessageTitle\">Weekend Påmindelse</Text> <!-- Title text for weekly message notifications -->\n        <Text Name=\"WeeklyMessageBody\">Det er fredag eftermiddag - Overvej at genstarte din computer i weekenden</Text> <!-- Body text for weekly message notifications -->\n        <Text Name=\"ActionButton1\">Tjek Opdateringer</Text>  <!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Mere Info</Text>  <!-- Text on the ActionButton if enabled -->\n        <Text Name=\"DismissButton\">Afvis</Text> <!-- Text on the DismissButton if enabled -->\n        <Text Name=\"SnoozeButton\">Udskyd</Text> <!-- Text on the SnoozeButton if enabled -->\n        <Text Name=\"AttributionText\">www.imab.dk</Text>\n        <Text Name=\"HeaderText\">IT Afdelings Besked</Text>\n        <Text Name=\"TitleText\">System Vedligeholdelse Påmindelse</Text>\n        <Text Name=\"BodyText1\">Dette er en almindelig besked for at minde dig om vigtige system vedligeholdelsespraksisser.</Text>\n        <Text Name=\"BodyText2\">Sørg for at dit system forbliver opdateret og sikkert. Klik 'Tjek Opdateringer' for at åbne Windows Update indstillinger.</Text>\n        <Text Name=\"SnoozeText\">Klik udskyd for at blive påmindet igen om:</Text>\n        <Text Name=\"GreetMorningText\">Godmorgen</Text>\n        <Text Name=\"GreetAfternoonText\">God eftermiddag</Text>\n        <Text Name=\"GreetEveningText\">Godaften</Text>\n        <Text Name=\"MinutesText\">Minutter</Text>\n        <Text Name=\"HourText\">Time</Text>\n        <Text Name=\"HoursText\">Timer</Text>\n        <Text Name=\"ComputerUptimeText\">Computer oppetid:</Text>\n        <Text Name=\"ComputerUptimeDaysText\">dage</Text>\n    </da-DK>\n    <sv-SE>\n\t\t<Text Name=\"PendingRebootUptimeText\">Din dator behöver startas om då den överskridit den maximala tillåtna upptiden.</Text>\t<!-- Text used if the PendingRebootUptimeText Option is enabled -->\n\t\t<Text Name=\"WeeklyMessageTitle\">Helgpåminnelse</Text> <!-- Title text for weekly message notifications -->\n\t\t<Text Name=\"WeeklyMessageBody\">Det är fredag eftermiddag - Överväg att starta om din dator under helgen</Text> <!-- Body text for weekly message notifications -->\n\t\t<Text Name=\"ActionButton1\">Kontrollera Uppdateringar</Text>\t<!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Läs Mer</Text>\t<!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"DismissButton\">Stäng</Text>\t<!-- Text on the DismissButton if enabled -->\n\t\t<Text Name=\"SnoozeButton\">Påminn</Text>\t<!-- Text on the SnoozeButton if enabled -->\n\t\t<Text Name=\"AttributionText\">www.imab.dk</Text>\n\t\t<Text Name=\"HeaderText\">IT-avdelningens Meddelande</Text>\n\t\t<Text Name=\"TitleText\">Systemunderhålls Påminnelse</Text>\n\t\t<Text Name=\"BodyText1\">Detta är ett vanligt meddelande för att påminna dig om viktiga systemunderhållsrutiner.</Text>\n\t\t<Text Name=\"BodyText2\">Se till att ditt system förblir uppdaterat och säkert. Klicka 'Kontrollera Uppdateringar' för att öppna Windows Update-inställningar.</Text>\n\t\t<Text Name=\"SnoozeText\">Klicka på Påminn för att bli påmind igen:</Text>\n\t\t<Text Name=\"GreetMorningText\">God morgon</Text>\n\t\t<Text Name=\"GreetAfternoonText\">God eftermiddag</Text>\n\t\t<Text Name=\"GreetEveningText\">God kväll</Text>\n\t\t<Text Name=\"MinutesText\">Minuter</Text>\n\t\t<Text Name=\"HourText\">Timma</Text>\n\t\t<Text Name=\"HoursText\">Timmar</Text>\n\t\t<Text Name=\"ComputerUptimeText\">Datorns upptid:</Text>\n\t\t<Text Name=\"ComputerUptimeDaysText\">dagar</Text>\n    </sv-SE>\n</Configuration>"
  },
  {
    "path": "config-toast-pendingreboot.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Configuration>\n\t<Feature Name=\"Toast\" Enabled=\"True\" /> <!-- Enables or disables the entire toast notification -->\n\t<Feature Name=\"PendingRebootUptime\" Enabled=\"True\" />\t<!-- Enables the toast for reminding users of restarting their device if it exceeds the uptime defined in MaxUptimeDays -->\n\t<Feature Name=\"WeeklyMessage\" Enabled=\"False\" /> <!-- Enables weekly reminder messages on specified day and hour -->\n\t<Option Name=\"MaxUptimeDays\" Value=\"-6\" />\t<!-- When using the toast for checking for pending reboots. A reboot is considered pending if computer uptime exceeds the value set here -->\n\t<Option Name=\"WeeklyMessageDay\" Value=\"4\" /> <!-- Numeric day(s) when WeeklyMessage should trigger (1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday). Single day: 3 | Multiple days: 1,3,5 | All weekdays: 1,2,3,4,5 -->\n\t<Option Name=\"WeeklyMessageHour\" Value=\"-1\" /> <!-- Hour when WeeklyMessage should trigger (-1=any hour during target day, 0-23=specific hour in 24-hour format) -->\n\t<Option Name=\"PendingRebootUptimeText\" Enabled=\"True\" />\t<!-- Adds an additional group to the toast with text about the uptime of the computer -->\n\t<Option Name=\"CustomNotificationApp\" Enabled=\"True\" Value=\"iMAB.DK NOTIFICATIONS\"/>\t<!-- The app in Windows doing the actual notification. When enabled, uses custom app. When disabled, automatically defaults to PowerShell app for reliable notification delivery -->\n\t<Option Name=\"LogoImageName\" Value=\"https://toast.imab.dk/ToastLogoImageIMAB.png\" />  <!-- File name of the image shown as logo in the toast notoification  -->\n\t<Option Name=\"HeroImageName\" Value=\"https://toast.imab.dk/ToastHeroImageIMAB.png\" /> <!-- File name of the image shown in the top of the toast notification -->\t\n\t<Option Name=\"ActionButton1\" Enabled=\"True\" />\t<!-- Enables or disables the action button. -->\n\t<Option Name=\"ActionButton2\" Enabled=\"False\" />\t<!-- Enables or disables the action button. -->\n\t<Option Name=\"DismissButton\" Enabled=\"True\" />\t<!-- Enables or disables the dismiss button. -->\n\t<Option Name=\"SnoozeButton\" Enabled=\"False\" /> <!-- Enabling this option will always enable action button and dismiss button -->\n\t<Option Name=\"Scenario\" Type=\"reminder\" />\t<!-- Possible values are: reminder | short | long | alarm -->\n\t<Option Name=\"Action1\" Value=\"\" />\t<!-- Action taken when using the Action button. Can be any protocol in Windows -->\n\t<Option Name=\"Action2\" Value=\"https://imab.dk\" />\t<!-- Action taken when using the Action button. Can be any protocol in Windows -->\n\t<Text Option=\"MultiLanguageSupport\" Enabled=\"False\" /> <!-- Enable support for multiple languages. If set to True, the toast notification will look for the users language culture within the config file -->\n\t<en-US> <!-- Default fallback language. This language will be used if MultiLanguageSupport is set to False or if no matching language is found -->\n        <Text Name=\"PendingRebootUptimeText\">Your computer is required to restart due to having exceeded the maximum allowed uptime.</Text> <!-- Text used if the PendingRebootUptimeText Option is enabled -->\n        <Text Name=\"WeeklyMessageTitle\">Weekly reminder</Text> <!-- Title text for weekly message notifications -->\n        <Text Name=\"WeeklyMessageBody\">imab.dk have published new applications to the Company Portal. Go check them out.&#10;&#10;Click 'Open' to launch Company Portal or 'Learn More' to go to our Intranet.</Text> <!-- Body text for weekly message notifications -->\n        <Text Name=\"ActionButton1\">Gotcha</Text>  <!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Learn More</Text>  <!-- Text on the ActionButton if enabled -->\n        <Text Name=\"DismissButton\">Dismiss</Text> <!-- Text on the DismissButton if enabled -->\n        <Text Name=\"SnoozeButton\">Snooze</Text> <!-- Text on the SnoozeButton if enabled -->\n        <Text Name=\"AttributionText\">www.imab.dk</Text>\n        <Text Name=\"HeaderText\">Helpdesk kindly reminds you...</Text>\n        <Text Name=\"TitleText\">Your computer needs to restart!</Text>\n        <Text Name=\"BodyText1\">For security and stability reasons, we kindly ask you to restart your computer as soon as possible.</Text>\n        <Text Name=\"BodyText2\">Restarting your computer on a regular basis ensures a secure and stable Windows. Thank you in advance.</Text>\n        <Text Name=\"SnoozeText\">Click snooze to be reminded again in:</Text>\n        <Text Name=\"GreetMorningText\">Good morning</Text>\n        <Text Name=\"GreetAfternoonText\">Good afternoon</Text>\n        <Text Name=\"GreetEveningText\">Good evening</Text>\n        <Text Name=\"MinutesText\">Minutes</Text>\n        <Text Name=\"HourText\">Hour</Text>\n        <Text Name=\"HoursText\">Hours</Text>\n        <Text Name=\"ComputerUptimeText\">Computer uptime:</Text>\n        <Text Name=\"ComputerUptimeDaysText\">days</Text>\n    </en-US>\n\t<da-DK>\n        <Text Name=\"PendingRebootUptimeText\">Din computer er påkrævet at genstarte, da den har overskredet den maksimale oppetid.</Text> <!-- Text used if the PendingRebootUptimeText Option is enabled -->\n        <Text Name=\"WeeklyMessageTitle\">Weekend Påmindelse</Text> <!-- Title text for weekly message notifications -->\n        <Text Name=\"WeeklyMessageBody\">Det er fredag eftermiddag - Overvej at genstarte din computer i weekenden</Text> <!-- Body text for weekly message notifications -->\n        <Text Name=\"ActionButton1\">Genstart nu</Text>  <!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Mere Info</Text>  <!-- Text on the ActionButton if enabled -->\n        <Text Name=\"DismissButton\">Afvis</Text> <!-- Text on the DismissButton if enabled -->\n        <Text Name=\"SnoozeButton\">Udskyd</Text> <!-- Text on the SnoozeButton if enabled -->\n        <Text Name=\"AttributionText\">www.imab.dk</Text>\n        <Text Name=\"HeaderText\">En venlig påmindelse fra Helpdesk</Text>\n        <Text Name=\"TitleText\">Din computer skal genstarte!</Text>\n        <Text Name=\"BodyText1\">Af hensyn til din computers sikkerhed og stabilitet, beder vi dig genstarte din computer snarest muligt.</Text>\n        <Text Name=\"BodyText2\">At genstarte sin computer regelmæssigt, er med til at sikre et sikkert og stabilt Windows. På forhånd tak.</Text>\n        <Text Name=\"SnoozeText\">Klik udskyd for at blive påmindet igen om:</Text>\n        <Text Name=\"GreetMorningText\">Godmorgen</Text>\n        <Text Name=\"GreetAfternoonText\">God eftermiddag</Text>\n        <Text Name=\"GreetEveningText\">Godaften</Text>\n        <Text Name=\"MinutesText\">Minutter</Text>\n        <Text Name=\"HourText\">Time</Text>\n        <Text Name=\"HoursText\">Timer</Text>\n        <Text Name=\"ComputerUptimeText\">Computer oppetid:</Text>\n        <Text Name=\"ComputerUptimeDaysText\">dage</Text>\n    </da-DK>\n    <sv-SE>\n\t\t<Text Name=\"PendingRebootUptimeText\">Din dator behöver startas om då den överskridit den maximala tillåtna upptiden.</Text>\t<!-- Text used if the PendingRebootUptimeText Option is enabled -->\n\t\t<Text Name=\"WeeklyMessageTitle\">Helgpåminnelse</Text> <!-- Title text for weekly message notifications -->\n\t\t<Text Name=\"WeeklyMessageBody\">Det är fredag eftermiddag - Överväg att starta om din dator under helgen</Text> <!-- Body text for weekly message notifications -->\n\t\t<Text Name=\"ActionButton1\">Starta Om</Text>\t<!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Starta Om</Text>\t<!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"DismissButton\">Stäng</Text>\t<!-- Text on the DismissButton if enabled -->\n\t\t<Text Name=\"SnoozeButton\">Påminn</Text>\t<!-- Text on the SnoozeButton if enabled -->\n\t\t<Text Name=\"AttributionText\">www.imab.dk</Text>\n\t\t<Text Name=\"HeaderText\">En vänlig påminnelse från IT...</Text>\n\t\t<Text Name=\"TitleText\">Din dator behövs starta om</Text>\n\t\t<Text Name=\"BodyText1\">För att kunna garantera datorns säkerhet och stabilitet ber vi dig att starta om datorn så snart som möjligt.</Text>\n\t\t<Text Name=\"BodyText2\">Att starta om sin dator regelbundet bidrar till en stabilare och säkrare It-miljö. Tack på förhand!</Text>\n\t\t<Text Name=\"SnoozeText\">Klicka på Påminn för att bli påmind igen:</Text>\n\t\t<Text Name=\"GreetMorningText\">God morgon</Text>\n\t\t<Text Name=\"GreetAfternoonText\">God eftermiddag</Text>\n\t\t<Text Name=\"GreetEveningText\">God kväll</Text>\n\t\t<Text Name=\"MinutesText\">Minuter</Text>\n\t\t<Text Name=\"HourText\">Timma</Text>\n\t\t<Text Name=\"HoursText\">Timmar</Text>\n\t\t<Text Name=\"ComputerUptimeText\">Datorns upptid:</Text>\n\t\t<Text Name=\"ComputerUptimeDaysText\">dagar</Text>\n    </sv-SE>\n</Configuration>"
  },
  {
    "path": "config-toast-weeklymessage.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Configuration>\n\t<Feature Name=\"Toast\" Enabled=\"True\" /> <!-- Enables or disables the entire toast notification -->\n\t<Feature Name=\"PendingRebootUptime\" Enabled=\"False\" />\t<!-- Enables the toast for reminding users of restarting their device if it exceeds the uptime defined in MaxUptimeDays -->\n\t<Feature Name=\"WeeklyMessage\" Enabled=\"True\" /> <!-- Enables weekly reminder messages on specified day and hour -->\n\t<Option Name=\"MaxUptimeDays\" Value=\"-6\" />\t<!-- When using the toast for checking for pending reboots. A reboot is considered pending if computer uptime exceeds the value set here -->\n\t<Option Name=\"WeeklyMessageDay\" Value=\"4\" /> <!-- Numeric day(s) when WeeklyMessage should trigger (1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday). Single day: 3 | Multiple days: 1,3,5 | All weekdays: 1,2,3,4,5 -->\n\t<Option Name=\"WeeklyMessageHour\" Value=\"-1\" /> <!-- Hour when WeeklyMessage should trigger (-1=any hour during target day, 0-23=specific hour in 24-hour format) -->\n\t<Option Name=\"PendingRebootUptimeText\" Enabled=\"True\" />\t<!-- Adds an additional group to the toast with text about the uptime of the computer -->\n\t<Option Name=\"CustomNotificationApp\" Enabled=\"True\" Value=\"iMAB.DK NOTIFICATIONS\"/>\t<!-- The app in Windows doing the actual notification. When enabled, uses custom app. When disabled, automatically defaults to PowerShell app for reliable notification delivery -->\n\t<Option Name=\"LogoImageName\" Value=\"https://toast.imab.dk/ToastLogoImageIMAB.png\" />  <!-- File name of the image shown as logo in the toast notoification  -->\n\t<Option Name=\"HeroImageName\" Value=\"https://toast.imab.dk/ToastHeroImageIMAB.png\" /> <!-- File name of the image shown in the top of the toast notification -->\t\n\t<Option Name=\"ActionButton1\" Enabled=\"False\" />\t<!-- Enables or disables the action button. -->\n\t<Option Name=\"ActionButton2\" Enabled=\"True\" />\t<!-- Enables or disables the action button. -->\n\t<Option Name=\"DismissButton\" Enabled=\"True\" />\t<!-- Enables or disables the dismiss button. -->\n\t<Option Name=\"SnoozeButton\" Enabled=\"False\" /> <!-- Enabling this option will always enable action button and dismiss button -->\n\t<Option Name=\"Scenario\" Type=\"reminder\" />\t<!-- Possible values are: reminder | short | long | alarm -->\n\t<Option Name=\"Action1\" Value=\"companyportal:\" />\t<!-- Action taken when using the Action button. Can be any protocol in Windows -->\n\t<Option Name=\"Action2\" Value=\"https://imab.dk\" />\t<!-- Action taken when using the Action button. Can be any protocol in Windows -->\n\t<Text Option=\"MultiLanguageSupport\" Enabled=\"False\" /> <!-- Enable support for multiple languages. If set to True, the toast notification will look for the users language culture within the config file -->\n\t<en-US> <!-- Default fallback language. This language will be used if MultiLanguageSupport is set to False or if no matching language is found -->\n        <Text Name=\"PendingRebootUptimeText\">Your computer is required to restart due to having exceeded the maximum allowed uptime.</Text> <!-- Text used if the PendingRebootUptimeText Option is enabled -->\n        <Text Name=\"WeeklyMessageTitle\">Weekly reminder</Text> <!-- Title text for weekly message notifications -->\n        <Text Name=\"WeeklyMessageBody\">imab.dk have published new applications to the Company Portal. Go check them out.&#10;&#10;Click 'Open' to launch Company Portal or 'Learn More' to go to our Intranet.</Text> <!-- Body text for weekly message notifications -->\n        <Text Name=\"ActionButton1\">Open</Text>  <!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Learn More</Text>  <!-- Text on the ActionButton if enabled -->\n        <Text Name=\"DismissButton\">Dismiss</Text> <!-- Text on the DismissButton if enabled -->\n        <Text Name=\"SnoozeButton\">Snooze</Text> <!-- Text on the SnoozeButton if enabled -->\n        <Text Name=\"AttributionText\">www.imab.dk</Text>\n        <Text Name=\"HeaderText\">Helpdesk kindly reminds you...</Text>\n        <Text Name=\"TitleText\">Your computer needs to restart!</Text>\n        <Text Name=\"BodyText1\">For security and stability reasons, we kindly ask you to restart your computer as soon as possible.</Text>\n        <Text Name=\"BodyText2\">Restarting your computer on a regular basis ensures a secure and stable Windows. Thank you in advance.</Text>\n        <Text Name=\"SnoozeText\">Click snooze to be reminded again in:</Text>\n        <Text Name=\"GreetMorningText\">Good morning</Text>\n        <Text Name=\"GreetAfternoonText\">Good afternoon</Text>\n        <Text Name=\"GreetEveningText\">Good evening</Text>\n        <Text Name=\"MinutesText\">Minutes</Text>\n        <Text Name=\"HourText\">Hour</Text>\n        <Text Name=\"HoursText\">Hours</Text>\n        <Text Name=\"ComputerUptimeText\">Computer uptime:</Text>\n        <Text Name=\"ComputerUptimeDaysText\">days</Text>\n    </en-US>\n\t<da-DK>\n        <Text Name=\"PendingRebootUptimeText\">Din computer er påkrævet at genstarte, da den har overskredet den maksimale oppetid.</Text> <!-- Text used if the PendingRebootUptimeText Option is enabled -->\n        <Text Name=\"WeeklyMessageTitle\">Weekend Påmindelse</Text> <!-- Title text for weekly message notifications -->\n        <Text Name=\"WeeklyMessageBody\">Det er fredag eftermiddag - Overvej at genstarte din computer i weekenden</Text> <!-- Body text for weekly message notifications -->\n        <Text Name=\"ActionButton1\">Genstart nu</Text>  <!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Mere Info</Text>  <!-- Text on the ActionButton if enabled -->\n        <Text Name=\"DismissButton\">Afvis</Text> <!-- Text on the DismissButton if enabled -->\n        <Text Name=\"SnoozeButton\">Udskyd</Text> <!-- Text on the SnoozeButton if enabled -->\n        <Text Name=\"AttributionText\">www.imab.dk</Text>\n        <Text Name=\"HeaderText\">En venlig påmindelse fra Helpdesk</Text>\n        <Text Name=\"TitleText\">Din computer skal genstarte!</Text>\n        <Text Name=\"BodyText1\">Af hensyn til din computers sikkerhed og stabilitet, beder vi dig genstarte din computer snarest muligt.</Text>\n        <Text Name=\"BodyText2\">At genstarte sin computer regelmæssigt, er med til at sikre et sikkert og stabilt Windows. På forhånd tak.</Text>\n        <Text Name=\"SnoozeText\">Klik udskyd for at blive påmindet igen om:</Text>\n        <Text Name=\"GreetMorningText\">Godmorgen</Text>\n        <Text Name=\"GreetAfternoonText\">God eftermiddag</Text>\n        <Text Name=\"GreetEveningText\">Godaften</Text>\n        <Text Name=\"MinutesText\">Minutter</Text>\n        <Text Name=\"HourText\">Time</Text>\n        <Text Name=\"HoursText\">Timer</Text>\n        <Text Name=\"ComputerUptimeText\">Computer oppetid:</Text>\n        <Text Name=\"ComputerUptimeDaysText\">dage</Text>\n    </da-DK>\n    <sv-SE>\n\t\t<Text Name=\"PendingRebootUptimeText\">Din dator behöver startas om då den överskridit den maximala tillåtna upptiden.</Text>\t<!-- Text used if the PendingRebootUptimeText Option is enabled -->\n\t\t<Text Name=\"WeeklyMessageTitle\">Helgpåminnelse</Text> <!-- Title text for weekly message notifications -->\n\t\t<Text Name=\"WeeklyMessageBody\">Det är fredag eftermiddag - Överväg att starta om din dator under helgen</Text> <!-- Body text for weekly message notifications -->\n\t\t<Text Name=\"ActionButton1\">Starta Om</Text>\t<!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"ActionButton2\">Starta Om</Text>\t<!-- Text on the ActionButton if enabled -->\n\t\t<Text Name=\"DismissButton\">Stäng</Text>\t<!-- Text on the DismissButton if enabled -->\n\t\t<Text Name=\"SnoozeButton\">Påminn</Text>\t<!-- Text on the SnoozeButton if enabled -->\n\t\t<Text Name=\"AttributionText\">www.imab.dk</Text>\n\t\t<Text Name=\"HeaderText\">En vänlig påminnelse från IT...</Text>\n\t\t<Text Name=\"TitleText\">Din dator behövs starta om</Text>\n\t\t<Text Name=\"BodyText1\">För att kunna garantera datorns säkerhet och stabilitet ber vi dig att starta om datorn så snart som möjligt.</Text>\n\t\t<Text Name=\"BodyText2\">Att starta om sin dator regelbundet bidrar till en stabilare och säkrare It-miljö. Tack på förhand!</Text>\n\t\t<Text Name=\"SnoozeText\">Klicka på Påminn för att bli påmind igen:</Text>\n\t\t<Text Name=\"GreetMorningText\">God morgon</Text>\n\t\t<Text Name=\"GreetAfternoonText\">God eftermiddag</Text>\n\t\t<Text Name=\"GreetEveningText\">God kväll</Text>\n\t\t<Text Name=\"MinutesText\">Minuter</Text>\n\t\t<Text Name=\"HourText\">Timma</Text>\n\t\t<Text Name=\"HoursText\">Timmar</Text>\n\t\t<Text Name=\"ComputerUptimeText\">Datorns upptid:</Text>\n\t\t<Text Name=\"ComputerUptimeDaysText\">dagar</Text>\n    </sv-SE>\n</Configuration>"
  }
]