Compile Winutil

This commit is contained in:
ChrisTitusTech 2024-08-07 16:57:14 +00:00 committed by github-actions[bot]
parent 9a1fbd77a7
commit ee0a2818b6
19 changed files with 388 additions and 171 deletions

View File

@ -48,7 +48,7 @@ Disables Advanced Boot Options screen that lets you start Windows in advanced tr
} }
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood' -Name 'Enabled' -Type DWord -Value 0 -Force New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood' -Name 'Enabled' -Type DWord -Value 0 -Force
Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Standard' -Wait Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Standard' -Wait
``` ```

View File

@ -48,7 +48,7 @@ Disables web suggestions when searching using Windows Search.
} }
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 1 -Force New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 1 -Force
Stop-Process -name explorer -force Stop-Process -name explorer -force
``` ```

View File

@ -48,7 +48,7 @@ Enables Advanced Boot Options screen that lets you start Windows in advanced tro
} }
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood' -Name 'Enabled' -Type DWord -Value 1 -Force New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood' -Name 'Enabled' -Type DWord -Value 1 -Force
Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Legacy' -Wait Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Legacy' -Wait
``` ```

View File

@ -48,7 +48,7 @@ Enables web suggestions when searching using Windows Search.
} }
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 0 -Force New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 0 -Force
Stop-Process -name explorer -force Stop-Process -name explorer -force
``` ```

View File

@ -48,7 +48,7 @@ Enables daily registry backup, previously disabled by Microsoft in Windows 10 18
$action = New-ScheduledTaskAction -Execute 'schtasks' -Argument '/run /i /tn "\Microsoft\Windows\Registry\RegIdleBackup"' $action = New-ScheduledTaskAction -Execute 'schtasks' -Argument '/run /i /tn "\Microsoft\Windows\Registry\RegIdleBackup"'
$trigger = New-ScheduledTaskTrigger -Daily -At 00:30 $trigger = New-ScheduledTaskTrigger -Daily -At 00:30
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System' Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System'
``` ```

View File

@ -41,7 +41,7 @@ Runs Disk Cleanup on Drive C: and removes old Windows Updates.
cleanmgr.exe /d C: /VERYLOWDISK cleanmgr.exe /d C: /VERYLOWDISK
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
``` ```

View File

@ -81,7 +81,7 @@ Most modern laptops have connected standby enabled which drains the battery, thi
Start-Process -FilePath powercfg -ArgumentList "/change standby-timeout-dc 60" -NoNewWindow -Wait Start-Process -FilePath powercfg -ArgumentList "/change standby-timeout-dc 60" -NoNewWindow -Wait
Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-ac 10" -NoNewWindow -Wait Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-ac 10" -NoNewWindow -Wait
Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-dc 1" -NoNewWindow -Wait Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-dc 1" -NoNewWindow -Wait
``` ```
## Undo Script ## Undo Script
@ -96,7 +96,7 @@ Most modern laptops have connected standby enabled which drains the battery, thi
Start-Process -FilePath powercfg -ArgumentList "/change standby-timeout-dc 15" -NoNewWindow -Wait Start-Process -FilePath powercfg -ArgumentList "/change standby-timeout-dc 15" -NoNewWindow -Wait
Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-ac 15" -NoNewWindow -Wait Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-ac 15" -NoNewWindow -Wait
Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-dc 15" -NoNewWindow -Wait Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-dc 15" -NoNewWindow -Wait
``` ```
## Registry Changes ## Registry Changes
@ -113,7 +113,7 @@ You can find information about the registry on [Wikipedia](https://www.wikiwand.
**New Value:** 2 **New Value:** 2
### Registry Key: Attributes ### Registry Key: Attributes
**Type:** DWord **Type:** DWord

View File

@ -126,7 +126,7 @@ Creates a restore point at runtime in case a revert is needed from WinUtil modif
Checkpoint-Computer -Description $description -RestorePointType "MODIFY_SETTINGS" Checkpoint-Computer -Description $description -RestorePointType "MODIFY_SETTINGS"
Write-Host -ForegroundColor Green "System Restore Point Created Successfully" Write-Host -ForegroundColor Green "System Restore Point Created Successfully"
} }
``` ```

View File

@ -428,7 +428,7 @@ Disables Microsoft Telemetry. Note: This will lock many Edge Browser settings. M
# Disable Defender Auto Sample Submission # Disable Defender Auto Sample Submission
Set-MpPreference -SubmitSamplesConsent 2 -ErrorAction SilentlyContinue | Out-Null Set-MpPreference -SubmitSamplesConsent 2 -ErrorAction SilentlyContinue | Out-Null
``` ```
## Registry Changes ## Registry Changes

View File

@ -182,7 +182,7 @@ Reduce user interruptions by selectively blocking connections to Adobe's activat
} catch { } catch {
Write-Error "Failed to flush DNS cache. Error: $_" Write-Error "Failed to flush DNS cache. Error: $_"
} }
``` ```
## Undo Script ## Undo Script
@ -232,7 +232,7 @@ Reduce user interruptions by selectively blocking connections to Adobe's activat
} catch { } catch {
Write-Error "Failed to flush DNS cache. Error: $_" Write-Error "Failed to flush DNS cache. Error: $_"
} }
``` ```

View File

@ -176,7 +176,7 @@ USE WITH CAUTION!!!!! This will remove ALL Microsoft store apps other than the e
$proc = Start-Process -FilePath $FilePath -Args $ProcessArgs -PassThru $proc = Start-Process -FilePath $FilePath -Args $ProcessArgs -PassThru
$proc.WaitForExit() $proc.WaitForExit()
} }
``` ```

View File

@ -220,7 +220,7 @@ Manages Adobe Services, Adobe Desktop Service, and Acrobat Updates
CCStopper CCStopper
AcrobatUpdates AcrobatUpdates
``` ```
## Undo Script ## Undo Script
@ -262,7 +262,7 @@ Manages Adobe Services, Adobe Desktop Service, and Acrobat Updates
RestoreCCService RestoreCCService
AcrobatUpdates AcrobatUpdates
``` ```
## Service Changes ## Service Changes

View File

@ -123,7 +123,7 @@ Intel LMS service is always listening on all ports and could be a huge security
Write-Host "All found LMS.exe files have been deleted."; Write-Host "All found LMS.exe files have been deleted.";
} }
Write-Host 'Intel LMS vPro service has been disabled, removed, and blocked.'; Write-Host 'Intel LMS vPro service has been disabled, removed, and blocked.';
``` ```
## Undo Script ## Undo Script
@ -132,7 +132,7 @@ Intel LMS service is always listening on all ports and could be a huge security
Write-Host "LMS vPro needs to be redownloaded from intel.com" Write-Host "LMS vPro needs to be redownloaded from intel.com"
``` ```

View File

@ -70,7 +70,7 @@ Disables MS Copilot AI built into Windows since 23H2.
Write-Host "Remove Copilot" Write-Host "Remove Copilot"
dism /online /remove-package /package-name:Microsoft.Windows.Copilot dism /online /remove-package /package-name:Microsoft.Windows.Copilot
``` ```
## Undo Script ## Undo Script
@ -79,7 +79,7 @@ Disables MS Copilot AI built into Windows since 23H2.
Write-Host "Install Copilot" Write-Host "Install Copilot"
dism /online /add-package /package-name:Microsoft.Windows.Copilot dism /online /add-package /package-name:Microsoft.Windows.Copilot
``` ```
## Registry Changes ## Registry Changes

View File

@ -45,7 +45,7 @@ Removes MS Edge when it gets reinstalled by updates. Credit: Techie Jack
```powershell ```powershell
Uninstall-WinUtilEdgeBrowser Uninstall-WinUtilEdgeBrowser
``` ```
## Undo Script ## Undo Script
@ -54,7 +54,7 @@ Removes MS Edge when it gets reinstalled by updates. Credit: Techie Jack
Write-Host "Install Microsoft Edge" Write-Host "Install Microsoft Edge"
Start-Process -FilePath winget -ArgumentList "install --force -e --accept-source-agreements --accept-package-agreements --silent Microsoft.Edge " -NoNewWindow -Wait Start-Process -FilePath winget -ArgumentList "install --force -e --accept-source-agreements --accept-package-agreements --silent Microsoft.Edge " -NoNewWindow -Wait
``` ```
## Function: Uninstall-WinUtilEdgeBrowser ## Function: Uninstall-WinUtilEdgeBrowser

View File

@ -50,7 +50,7 @@ Removes the Home and Gallery from explorer and sets This PC as default
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /f REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /f
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /f REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /f
REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "LaunchTo" /t REG_DWORD /d "1" REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "LaunchTo" /t REG_DWORD /d "1"
``` ```
## Undo Script ## Undo Script
@ -60,7 +60,7 @@ Removes the Home and Gallery from explorer and sets This PC as default
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /f /ve /t REG_SZ /d "{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /f /ve /t REG_SZ /d "{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}"
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /f /ve /t REG_SZ /d "CLSID_MSGraphHomeFolder" REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /f /ve /t REG_SZ /d "CLSID_MSGraphHomeFolder"
REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "LaunchTo" REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "LaunchTo"
``` ```

View File

@ -197,7 +197,7 @@ Moves OneDrive files to Default Home Folders and Uninstalls it.
} else { } else {
Write-Host "Something went Wrong during the Unistallation of OneDrive" -ForegroundColor Red Write-Host "Something went Wrong during the Unistallation of OneDrive" -ForegroundColor Red
} }
``` ```
## Undo Script ## Undo Script
@ -206,7 +206,7 @@ Moves OneDrive files to Default Home Folders and Uninstalls it.
Write-Host "Install OneDrive" Write-Host "Install OneDrive"
Start-Process -FilePath winget -ArgumentList "install -e --accept-source-agreements --accept-package-agreements --silent Microsoft.OneDrive " -NoNewWindow -Wait Start-Process -FilePath winget -ArgumentList "install -e --accept-source-agreements --accept-package-agreements --silent Microsoft.OneDrive " -NoNewWindow -Wait
``` ```

View File

@ -1,4 +1,4 @@
# Set Classic Right-Click Menu # Set Classic Right-Click Menu
Last Updated: 2024-08-07 Last Updated: 2024-08-07
@ -54,7 +54,7 @@ Great Windows 11 tweak to bring back good context menus when right clicking thin
Write-Host Restarting explorer.exe ... Write-Host Restarting explorer.exe ...
$process = Get-Process -Name "explorer" $process = Get-Process -Name "explorer"
Stop-Process -InputObject $process Stop-Process -InputObject $process
``` ```
## Undo Script ## Undo Script
@ -66,7 +66,7 @@ Great Windows 11 tweak to bring back good context menus when right clicking thin
Write-Host Restarting explorer.exe ... Write-Host Restarting explorer.exe ...
$process = Get-Process -Name "explorer" $process = Get-Process -Name "explorer"
Stop-Process -InputObject $process Stop-Process -InputObject $process
``` ```

File diff suppressed because it is too large Load Diff