From 91a9beed0c125e536c36a7b09b37037d9a1509ab Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Sun, 22 Mar 2026 23:48:56 +0100 Subject: [PATCH] Also check for required regfiles and assets --- Win11Debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 5f9c50e..410a54d 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -173,7 +173,7 @@ else { # Check if script has all required files/directories. $optionalPathVariables = @('SavedSettingsFilePath', 'CustomAppsListFilePath', 'DefaultLogPath') $requiredPathVariables = @(Get-Variable -Scope Script | Where-Object { - $_.Name -match '(FilePath|Schema|ScriptPath)$' -and ($optionalPathVariables -notcontains $_.Name) + $_.Name -match '(FilePath|Schema|ScriptPath|RegfilesPath|AssetsPath)$' -and ($optionalPathVariables -notcontains $_.Name) } | Select-Object -ExpandProperty Name) $missingRequiredPaths = @()