07 16 2023 testing (#895)

* Fix Security Updates not getting set

* Ndu Fix - Task Manager issue

* Ndu Fix 2

* Create edge.ps1

* Update edge.ps1

* Update edge.ps1

* Update edge.ps1

* Update edge.ps1

* Update edge.ps1

* Update edge.ps1

* Update inputXML.xaml

* Edge Removal Progress

* edge removal

* edge removal
This commit is contained in:
Chris Titus
2023-07-20 15:39:49 -05:00
committed by GitHub
parent d5047e9a8d
commit b2e3def511
5 changed files with 324 additions and 105 deletions

View File

@ -1778,7 +1778,7 @@
"Path": "HKLM:\\SYSTEM\\ControlSet001\\Services\\Ndu",
"OriginalValue": "1",
"name": "Start",
"value": "4",
"value": "2",
"type": "Dword"
},
{
@ -2195,59 +2195,11 @@
"WPFEssTweaksRemoveEdge": {
"InvokeScript": [
"
# Stop Edge Task
Stop-Process -Name \"msedge\" -Force -ErrorAction SilentlyContinue
#:: Standalone script by padsalatushal Source: https://raw.githubusercontent.com/padsalatushal/Edge-Removal/main/edge.bat
# Uninstall - Edge
$edgePath = \"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\"
if (Test-Path $edgePath) {
$edgeVersions = Get-ChildItem $edgePath -Directory
foreach ($version in $edgeVersions) {
$installerPath = Join-Path $version.FullName \"Installer\"
if (Test-Path $installerPath) {
Set-Location -Path $installerPath | Out-Null
if (Test-Path \"setup.exe\") {
Write-Host \"Removing Microsoft Edge\"
Start-Process -Wait -FilePath \"setup.exe\" -ArgumentList \"--uninstall --system-level --force-uninstall\"
}
}
}
}
curl.exe -s \"https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/edgeremoval.bat\" -o $ENV:temp\\edgeremoval.bat
Start-Process $ENV:temp\\edgeremoval.bat
# Uninstall - EdgeWebView
$edgeWebViewPath = \"C:\\Program Files (x86)\\Microsoft\\EdgeWebView\\Application\"
if (Test-Path $edgeWebViewPath) {
$edgeWebViewVersions = Get-ChildItem $edgeWebViewPath -Directory
foreach ($version in $edgeWebViewVersions) {
$installerPath = Join-Path $version.FullName \"Installer\"
if (Test-Path $installerPath) {
Set-Location -Path $installerPath | Out-Null
if (Test-Path \"setup.exe\") {
Write-Host \"Removing EdgeWebView\"
Start-Process -Wait -FilePath \"setup.exe\" -ArgumentList \"--uninstall --msedgewebview --system-level --force-uninstall\"
}
}
}
}
# Delete Edge desktop icon, from all users
$users = Get-ChildItem -Path \"C:\\Users\" -Directory
foreach ($user in $users) {
$desktopPath = Join-Path -Path $user.FullName -ChildPath \"Desktop\"
Remove-Item -Path \"$desktopPath\\edge.lnk\" -Force -ErrorAction SilentlyContinue
Remove-Item -Path \"$desktopPath\\Microsoft Edge.lnk\" -Force -ErrorAction SilentlyContinue
}
# Delete additional files
if (Test-Path \"C:\\Windows\\System32\\MicrosoftEdgeCP.exe\") {
$edgeFiles = Get-ChildItem -Path \"C:\\Windows\\System32\" -Filter \"MicrosoftEdge*\" -File
foreach ($file in $edgeFiles) {
$filePath = Join-Path -Path $file.Directory.FullName -ChildPath $file.Name
takeown.exe /F \"$filePath\" > $null
icacls.exe \"$filePath\" /inheritance:e /grant \"$env:UserName:(OI)(CI)F\" /T /C > $null
Remove-Item -Path $filePath -Force -ErrorAction SilentlyContinue
}
}
"
],
"UndoScript": [