From d619ee7e85e12c8632f1f35ea2b8827d5c916d48 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:14:46 +0100 Subject: [PATCH] [MicroWin] Fix reference issue after #2888 (#3022) Specifically, it fixes a reference issue for the "Recall fix". Thankfully, we're not making a release yet :) --- config/feature.json | 2 +- functions/microwin/Invoke-Microwin.ps1 | 2 +- functions/microwin/Microwin-GetLocalizedUsers.ps1 | 2 +- functions/private/Invoke-WinUtilInstallPSProfile.ps1 | 2 +- functions/private/Invoke-WinUtilUninstallPSProfile.ps1 | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/feature.json b/config/feature.json index 9405cb33..afa423a7 100644 --- a/config/feature.json +++ b/config/feature.json @@ -332,4 +332,4 @@ "Type": "Button", "ButtonWidth": "300" } -} \ No newline at end of file +} diff --git a/functions/microwin/Invoke-Microwin.ps1 b/functions/microwin/Invoke-Microwin.ps1 index 9125fac5..65b032ab 100644 --- a/functions/microwin/Invoke-Microwin.ps1 +++ b/functions/microwin/Invoke-Microwin.ps1 @@ -164,7 +164,7 @@ public class PowerManagement { Microwin-RemoveProvisionedPackages # Detect Windows 11 24H2 and add dependency to FileExp to prevent Explorer look from going back - thanks @WitherOrNot and @thecatontheceiling - if ((Test-CompatibleImage $imgVersion $([System.Version]::new(10,0,26100,1))) -eq $true) { + if ((Microwin-TestCompatibleImage $imgVersion $([System.Version]::new(10,0,26100,1))) -eq $true) { try { if (Test-Path "$scratchDir\Windows\SystemApps\MicrosoftWindows.Client.FileExp_cw5n1h2txyewy\appxmanifest.xml" -PathType Leaf) { # Found the culprit. Do the following: diff --git a/functions/microwin/Microwin-GetLocalizedUsers.ps1 b/functions/microwin/Microwin-GetLocalizedUsers.ps1 index 0f7bf7bd..9b1763f3 100644 --- a/functions/microwin/Microwin-GetLocalizedUsers.ps1 +++ b/functions/microwin/Microwin-GetLocalizedUsers.ps1 @@ -18,4 +18,4 @@ function Microwin-GetLocalizedUsers } else { return (Get-LocalGroup | Where-Object { $_.SID.Value -like "S-1-5-32-545" }).Name } -} \ No newline at end of file +} diff --git a/functions/private/Invoke-WinUtilInstallPSProfile.ps1 b/functions/private/Invoke-WinUtilInstallPSProfile.ps1 index e34fc75b..551c935a 100644 --- a/functions/private/Invoke-WinUtilInstallPSProfile.ps1 +++ b/functions/private/Invoke-WinUtilInstallPSProfile.ps1 @@ -100,4 +100,4 @@ function Invoke-WinUtilInstallPSProfile { Write-Host "This profile requires Powershell Core, which is currently not installed!" -ForegroundColor Red } } -} \ No newline at end of file +} diff --git a/functions/private/Invoke-WinUtilUninstallPSProfile.ps1 b/functions/private/Invoke-WinUtilUninstallPSProfile.ps1 index 3394fa7c..d97442d0 100644 --- a/functions/private/Invoke-WinUtilUninstallPSProfile.ps1 +++ b/functions/private/Invoke-WinUtilUninstallPSProfile.ps1 @@ -184,4 +184,4 @@ function Invoke-WinUtilUninstallPSProfile { Write-Host "===> No PowerShell Profile Found. Skipped Uninstallation. <===" -ForegroundColor Magenta } } -} \ No newline at end of file +}