mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
Compile Winutil
This commit is contained in:
parent
9a1fbd77a7
commit
ee0a2818b6
@ -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
|
||||
Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Standard' -Wait
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
Stop-Process -name explorer -force
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Legacy' -Wait
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
Stop-Process -name explorer -force
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -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"'
|
||||
$trigger = New-ScheduledTaskTrigger -Daily -At 00:30
|
||||
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System'
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -41,7 +41,7 @@ Runs Disk Cleanup on Drive C: and removes old Windows Updates.
|
||||
|
||||
cleanmgr.exe /d C: /VERYLOWDISK
|
||||
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -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 monitor-timeout-ac 10" -NoNewWindow -Wait
|
||||
Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-dc 1" -NoNewWindow -Wait
|
||||
|
||||
|
||||
|
||||
```
|
||||
## 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 monitor-timeout-ac 15" -NoNewWindow -Wait
|
||||
Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-dc 15" -NoNewWindow -Wait
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Registry Changes
|
||||
@ -113,7 +113,7 @@ You can find information about the registry on [Wikipedia](https://www.wikiwand.
|
||||
|
||||
**New Value:** 2
|
||||
|
||||
### Registry Key: Attributes
|
||||
### Registry Key: Attributes
|
||||
|
||||
**Type:** DWord
|
||||
|
||||
|
@ -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"
|
||||
Write-Host -ForegroundColor Green "System Restore Point Created Successfully"
|
||||
}
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -428,7 +428,7 @@ Disables Microsoft Telemetry. Note: This will lock many Edge Browser settings. M
|
||||
|
||||
# Disable Defender Auto Sample Submission
|
||||
Set-MpPreference -SubmitSamplesConsent 2 -ErrorAction SilentlyContinue | Out-Null
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Registry Changes
|
||||
|
@ -182,7 +182,7 @@ Reduce user interruptions by selectively blocking connections to Adobe's activat
|
||||
} catch {
|
||||
Write-Error "Failed to flush DNS cache. Error: $_"
|
||||
}
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Undo Script
|
||||
@ -232,7 +232,7 @@ Reduce user interruptions by selectively blocking connections to Adobe's activat
|
||||
} catch {
|
||||
Write-Error "Failed to flush DNS cache. Error: $_"
|
||||
}
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -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.WaitForExit()
|
||||
}
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -220,7 +220,7 @@ Manages Adobe Services, Adobe Desktop Service, and Acrobat Updates
|
||||
|
||||
CCStopper
|
||||
AcrobatUpdates
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Undo Script
|
||||
@ -262,7 +262,7 @@ Manages Adobe Services, Adobe Desktop Service, and Acrobat Updates
|
||||
|
||||
RestoreCCService
|
||||
AcrobatUpdates
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Service Changes
|
||||
|
@ -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 'Intel LMS vPro service has been disabled, removed, and blocked.';
|
||||
|
||||
|
||||
|
||||
```
|
||||
## 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"
|
||||
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -70,7 +70,7 @@ Disables MS Copilot AI built into Windows since 23H2.
|
||||
|
||||
Write-Host "Remove Copilot"
|
||||
dism /online /remove-package /package-name:Microsoft.Windows.Copilot
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Undo Script
|
||||
@ -79,7 +79,7 @@ Disables MS Copilot AI built into Windows since 23H2.
|
||||
|
||||
Write-Host "Install Copilot"
|
||||
dism /online /add-package /package-name:Microsoft.Windows.Copilot
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Registry Changes
|
||||
|
@ -45,7 +45,7 @@ Removes MS Edge when it gets reinstalled by updates. Credit: Techie Jack
|
||||
```powershell
|
||||
|
||||
Uninstall-WinUtilEdgeBrowser
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Undo Script
|
||||
@ -54,7 +54,7 @@ Removes MS Edge when it gets reinstalled by updates. Credit: Techie Jack
|
||||
|
||||
Write-Host "Install Microsoft Edge"
|
||||
Start-Process -FilePath winget -ArgumentList "install --force -e --accept-source-agreements --accept-package-agreements --silent Microsoft.Edge " -NoNewWindow -Wait
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Function: Uninstall-WinUtilEdgeBrowser
|
||||
|
@ -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\{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"
|
||||
|
||||
|
||||
|
||||
```
|
||||
## 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\{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"
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -197,7 +197,7 @@ Moves OneDrive files to Default Home Folders and Uninstalls it.
|
||||
} else {
|
||||
Write-Host "Something went Wrong during the Unistallation of OneDrive" -ForegroundColor Red
|
||||
}
|
||||
|
||||
|
||||
|
||||
```
|
||||
## Undo Script
|
||||
@ -206,7 +206,7 @@ Moves OneDrive files to Default Home Folders and Uninstalls it.
|
||||
|
||||
Write-Host "Install OneDrive"
|
||||
Start-Process -FilePath winget -ArgumentList "install -e --accept-source-agreements --accept-package-agreements --silent Microsoft.OneDrive " -NoNewWindow -Wait
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Set Classic Right-Click Menu
|
||||
# Set Classic Right-Click Menu
|
||||
|
||||
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 ...
|
||||
$process = Get-Process -Name "explorer"
|
||||
Stop-Process -InputObject $process
|
||||
|
||||
|
||||
|
||||
```
|
||||
## 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 ...
|
||||
$process = Get-Process -Name "explorer"
|
||||
Stop-Process -InputObject $process
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
501
winutil.ps1
501
winutil.ps1
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user