|
65 | 65 | "panel": "1", |
66 | 66 | "InvokeScript": [ |
67 | 67 | " |
68 | | - # Sometimes if you dont stop Widgets Process for removal to work |
| 68 | + # Sometimes if you dont stop the Widgets process the removal may fail |
| 69 | + |
69 | 70 | Stop-Process -Name Widgets |
70 | 71 | Get-AppxPackage Microsoft.WidgetsPlatformRuntime -AllUsers | Remove-AppxPackage -AllUsers |
| 72 | + Get-AppxPackage MicrosoftWindows.Client.WebExperience -AllUsers | Remove-AppxPackage -AllUsers |
71 | 73 |
|
72 | 74 | Invoke-WinUtilExplorerUpdate -action \"restart\" |
73 | 75 | Write-Host \"Removed widgets\" |
|
76 | 78 | "UndoScript": [ |
77 | 79 | " |
78 | 80 | Write-Host \"Restoring widgets AppxPackages\" |
79 | | - Add-AppxPackage -DisableDevelopmentMode -Register \"C:\\Program Files\\WindowsApps\\Microsoft.WidgetsPlatformRuntime*\\AppxManifest.xml\" |
| 81 | + |
| 82 | + Add-AppxPackage -Register \"C:\\Program Files\\WindowsApps\\Microsoft.WidgetsPlatformRuntime*\\AppxManifest.xml\" -DisableDevelopmentMode |
| 83 | + Add-AppxPackage -Register \"C:\\Program Files\\WindowsApps\\MicrosoftWindows.Client.WebExperience*\\AppxManifest.xml\" -DisableDevelopmentMode |
| 84 | + |
80 | 85 | Invoke-WinUtilExplorerUpdate -action \"restart\" |
81 | 86 | " |
82 | 87 | ], |
|
1196 | 1201 | "OriginalValue": "<RemoveEntry>" |
1197 | 1202 | }, |
1198 | 1203 | { |
1199 | | - "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", |
1200 | | - "Name": "ofefcgjbeghpigppfmkologfjadafddi", |
| 1204 | + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge\\ExtensionInstallBlocklist", |
| 1205 | + "Name": "1", |
1201 | 1206 | "Type": "String", |
1202 | | - "Value": "1", |
| 1207 | + "Value": "ofefcgjbeghpigppfmkologfjadafddi", |
1203 | 1208 | "OriginalValue": "<RemoveEntry>" |
1204 | 1209 | }, |
1205 | 1210 | { |
|
2017 | 2022 | "InvokeScript": [ |
2018 | 2023 | " |
2019 | 2024 | $hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\" |
2020 | | - $hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\" |
| 2025 | + $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" |
2021 | 2026 |
|
2022 | | - Copy-Item $hosts \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\" |
| 2027 | + Move-Item $hosts \"$hosts.bak\" |
2023 | 2028 | Invoke-WebRequest $hostsUrl -OutFile $hosts |
2024 | 2029 | ipconfig /flushdns |
2025 | 2030 |
|
|
2028 | 2033 | ], |
2029 | 2034 | "UndoScript": [ |
2030 | 2035 | " |
2031 | | - $hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\" |
2032 | | - $backup = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\" |
| 2036 | + $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" |
2033 | 2037 |
|
2034 | 2038 | Remove-Item $hosts |
| 2039 | + Move-Item \"$hosts.bak\" $hosts |
2035 | 2040 | ipconfig /flushdns |
2036 | 2041 |
|
2037 | 2042 | Write-Host \"Removed Adobe url block list from host file\" |
|
0 commit comments