diff --git a/src/Configuration/features/revision/appx.yml b/src/Configuration/features/revision/appx.yml index c9546cae..6b4dae5d 100644 --- a/src/Configuration/features/revision/appx.yml +++ b/src/Configuration/features/revision/appx.yml @@ -6,9 +6,12 @@ actions: - !writeStatus: {status: "Removing Appx Packages"} - !appx: {name: '*Disney*', type: family, weight: 10} + - !appx: {name: '*microsoft.microsoftedge.stable*', type: family, weight: 10, option: "remove-edge"} - !appx: {name: '*Microsoft.MicrosoftEdge*', type: family, weight: 10, option: "remove-edge"} - !appx: {name: '*Microsoft.MicrosoftEdgeDevToolsClient*', type: family, weight: 10, option: "remove-edge"} + - !file: {path: "C:\\Windows\\SystemApps\\Microsoft.MicrosoftEdgeDevToolsClient_8wekyb3d8bbwe", option: "remove-edge"} + - !appx: {name: '*OneDrive*', type: family, weight: 10, option: "remove-onedrive"} - !appx: {name: '*Spotify*', type: family, weight: 10} - !appx: {name: '*SecureAssessmentBrowser*', type: family, weight: 10} diff --git a/src/Executables/CLEANER.ps1 b/src/Executables/CLEANER.ps1 index 02105ad5..9111d9df 100644 --- a/src/Executables/CLEANER.ps1 +++ b/src/Executables/CLEANER.ps1 @@ -68,6 +68,8 @@ foreach ($folderName in $foldersToRemove) { } } +Remove-Item -Path "C:\Program Files\WindowsApps\MicrosoftWindows.Client.WebExperience*" -Recurse -Force + Get-ChildItem -Path "$env:SystemRoot" -Filter *.log -File -Recurse -Force | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue Write-Host "Cleaning up %TEMP%" diff --git a/src/Executables/ONED.cmd b/src/Executables/ONED.cmd index bf0b5e48..d168877b 100644 --- a/src/Executables/ONED.cmd +++ b/src/Executables/ONED.cmd @@ -32,7 +32,7 @@ exit /b 0 for /f "usebackq delims=" %%e in (`reg query "HKU\%~1\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\BannerStore" ^| findstr /i /c:"OneDrive"`) do reg delete "%%e" /f >NUL 2>nul for /f "usebackq delims=" %%e in (`reg query "HKU\%~1\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers" ^| findstr /i /c:"OneDrive"`) do reg delete "%%e" /f >NUL 2>nul -) + for /f "usebackq delims=" %%e in (`reg query "HKU\%~1\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths" ^| findstr /i /c:"OneDrive"`) do reg delete "%%e" /f >NUL 2>nul for /f "usebackq delims=" %%e in (`reg query "HKU\%~1\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" ^| findstr /i /c:"OneDrive"`) do reg delete "%%e" /f >NUL 2>nul diff --git a/src/Executables/ngen.ps1 b/src/Executables/ngen.ps1 index 8d65c350..e966aa3e 100644 --- a/src/Executables/ngen.ps1 +++ b/src/Executables/ngen.ps1 @@ -1,3 +1,5 @@ +Get-ScheduledTask -TaskPath "\Microsoft\Windows\.NET Framework\" | Start-ScheduledTask + # Credits to https://stackoverflow.com/users/9898643/theo $env:PATH = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory() [AppDomain]::CurrentDomain.GetAssemblies() | ForEach-Object { @@ -7,7 +9,4 @@ $env:PATH = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory() Write-Host -ForegroundColor Yellow "`r`nRunning ngen on '$name'" ngen.exe install $path /nologo } -} - - -Get-ScheduledTask -TaskPath "\Microsoft\Windows\.NET Framework\" | Start-ScheduledTask \ No newline at end of file +} \ No newline at end of file