Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements from UI, Libs, Scripts, Docs, Performance and Lightweight size #90

Merged
merged 51 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
128b038
(#74) Remove tweak to not detect automatically proxy settings
LeDragoX Dec 13, 2022
aad5863
fix: .Net Framework install
LeDragoX Dec 17, 2022
c2735f7
feat: add WizTree to software install
LeDragoX Dec 18, 2022
0b74cdd
fix: WSL install
LeDragoX Dec 18, 2022
d9d7a7e
(#75) Remove Feedback Hub
LeDragoX Jan 4, 2023
422b01f
(#78) Download and install Updates automatically as default
LeDragoX Jan 12, 2023
060dc70
Allow Windows Update to search missing drivers
LeDragoX Jan 12, 2023
62b6a0a
Update description about driver icons and apps
LeDragoX Jan 12, 2023
fc71596
Docs: add description to Automatic Windows Update function
LeDragoX Jan 12, 2023
edf11fe
Optimize all image sizes
LeDragoX Jan 26, 2023
7c95bf8
Optimize EVEN MORE the images!
LeDragoX Jan 26, 2023
b70ec5f
Redo script icon gradient colors
LeDragoX Jan 26, 2023
76684ff
Update script logo
LeDragoX Jan 26, 2023
81d130b
Update description about Hibernate
LeDragoX Feb 9, 2023
69d2582
(#83) Fix MouseHoverTime type on Registry
LeDragoX Feb 12, 2023
4199905
Re-architecture the folder structure
LeDragoX Feb 20, 2023
93025b6
(#84) Remove Windows Capabilities including PowerShell ISE (but not l…
LeDragoX Feb 20, 2023
2c4beb2
Debloat lib refactor/cleanup part 1
LeDragoX Feb 20, 2023
e920f6b
Debloat lib refactor/cleanup part 2
LeDragoX Feb 20, 2023
a272816
Add 2 libs to manage registry item creation/removal
LeDragoX Feb 21, 2023
02d03e5
Docs: Improve writing on README and CONTRIBUTING
LeDragoX Feb 21, 2023
8f61b5c
Fix the wrong Function name leading to errors
LeDragoX Feb 21, 2023
b0e222f
Remove H.265 Codec from system apps
LeDragoX Feb 21, 2023
53a1622
Fixed the typing in all advanced functions
LeDragoX Feb 22, 2023
a4c08d9
Fix lib types and weird imports i've done on the past
LeDragoX Feb 22, 2023
dd6112d
Update CLI imports
LeDragoX Feb 23, 2023
20c3a9a
refactor(uwp): Verify App before and proceed to next
LeDragoX Feb 24, 2023
e9c5e7a
refactor(ui): Add autocomplete to FontStyle
LeDragoX Feb 25, 2023
0b72727
chore(auto-update): Update Winget sources before upgrading all apps
LeDragoX Feb 25, 2023
eb381f3
feat(personal/scripts): restore aero shaking
LeDragoX Feb 25, 2023
fdfbbcd
fix(auto-update): add output to host while updating winget sources
LeDragoX Feb 25, 2023
de6ded5
feat(package-managers): Add the name of the package manager in the te…
LeDragoX Feb 25, 2023
55b191f
refactor(CLI/GUI): Join CLI/GUI scripts together
LeDragoX Feb 25, 2023
9bfd641
fix(revert/gui): update form only after finished
LeDragoX Feb 25, 2023
dce5354
fix(gui): Reclaim consistence through gui design
LeDragoX Feb 25, 2023
9787954
perf: Optimize script-gui.png size
LeDragoX Feb 25, 2023
10add76
docs: Remove two images from CONTRIBUTING
LeDragoX Feb 25, 2023
2f4a776
feat(title-templates): add some new effects and formatting style
LeDragoX Feb 26, 2023
0002e7a
(#84) Add option to remove PowerShell ISE
LeDragoX Feb 27, 2023
acd3aad
refactor(lib/service): Remove $CustomMessage param
LeDragoX Feb 27, 2023
8dbd38f
rename: uwp-appx-hander to uwp-app-handler
LeDragoX Feb 27, 2023
295024e
feat: Add option to enable/disable hibernate (#85)
LeDragoX Feb 27, 2023
38061a9
fix: 2 detections from PSScriptAnalyzer related to PSShouldProcess rule
LeDragoX Feb 27, 2023
89e44dc
fix(gui): design inconsistencies
LeDragoX Feb 27, 2023
6d7062c
refactor(gui): Add a function to get all the colors
LeDragoX Feb 28, 2023
76327da
fix: Use function to set revert status Globally
LeDragoX Feb 28, 2023
628fdeb
docs: explicitly tell to extract the entire zip (#89)
LeDragoX Feb 28, 2023
229bf92
feat/fix: refine GUI, allowing to resize the window correctly
LeDragoX Feb 28, 2023
cd17a3c
feat: Disable Edge startup boost + running in background
LeDragoX Mar 1, 2023
51e1fc2
feat: Add Display Driver Uninstaller (DDU) in Software Install :)
LeDragoX Mar 1, 2023
292d97b
docs: update script-logo
LeDragoX Mar 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/powershell-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
path: .\
recurse: true
# Exclude rules that will not be worked on / are invalid
# Command: invoke-scriptanalyzer . -excludeRule: "PSAvoidUsingInvokeExpression", "PSAvoidUsingWriteHost", "PSUseShouldProcessForStateChangingFunctions"
# Command: invoke-scriptanalyzer . -recurse -excludeRule: "PSAvoidUsingInvokeExpression", "PSAvoidUsingWriteHost", "PSUseShouldProcessForStateChangingFunctions"
excludeRule: '"PSAvoidUsingInvokeExpression", "PSAvoidUsingWriteHost", "PSUseShouldProcessForStateChangingFunctions"'
output: results.sarif

Expand Down
5 changes: 0 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
⚠ **Warning**: this file is subject to changing without notice.

I would be happy to extend the collection of scripts.
If you found a **BUG** or if you want a new **FEATURE REQUEST**, open an issue on the tab `ISSUES`.
If you want to send me a **PULL REQUEST**, please use the `develop` branch to be up to date, and send PRs there, or i'll close it.

## 🖌 Coding Style
Expand Down Expand Up @@ -79,12 +78,8 @@ By using [SysInternal Suite](https://docs.microsoft.com/en-us/sysinternals/downl
and searching the Registry Key inside `Procmon(64).exe`.
- Also make sure to disable the Events being captured `(Ctrl + E)` after applying a specific config.

![Grab the current tweak on registry with Procmon64.exe](./src/assets/grab-the-current-tweak-on-registry-with-procmon64.png)

After finding the right register Key, you just need to Right-Click and select `Jump To... (Ctrl + J)` to get on it's directory.

![Showing on regedit](./src/assets/showing-on-regedit.png)

</details>

### 🧊 Note about registry
Expand Down
91 changes: 49 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ I need to change these files:
- src\lib\title-templates.psm1 (LOGO)
- CONTRIBUTING.md
- README.md
- Win10ScriptGUI.ps1 (Window Title)
- WinDebloatTools.ps1 (Window Title)
-->

<h2 align="center">
<img src="src/assets/script-image.png" style="vertical-align: bottom" width="90%">
<img src="src/assets/script-logo.png" style="vertical-align: bottom" width="90%">

[![PSScriptAnalyzer](https://github.com/LeDragoX/Win-Debloat-Tools/actions/workflows/powershell-linter.yml/badge.svg?style=flat)](https://github.com/LeDragoX/Win-Debloat-Tools/actions/workflows/powershell-linter.yml)
![GitHub issues](https://img.shields.io/github/issues/LeDragoX/Win-Debloat-Tools?label=Issues)
Expand All @@ -27,7 +27,7 @@ _These scripts will Customize, Debloat and Improve Privacy/Performance and Syste

This has a collection of scripts to tweak the system per category, using different functions to adjust the system settings and make Windows great again! You can also install your favorite softwares through the GUI with just one click after being selected.

> _Use on a fresh Windows install to note the differences. Using an admin account is recommended to avoid any compatibility issues._
> _Use on a fresh Windows install to notice the differences. Using an admin account is recommended to avoid any compatibility issues._

⚠️ **DISCLAIMER:** _You're doing this at your own risk, I am not responsible for any data loss or damage that may occur. It's not guaranteed that every feature removed from the system can be easily restored._

Expand Down Expand Up @@ -63,44 +63,43 @@ Code located in the `main` branch is considered stable, the `develop` branch con
</table>
</div>

## 🔄️ Roll-Back

**If something breaks you can rely on:**

1. If you want (almost) everything to it's original state, use the `Undo Tweaks` button on [`Win10ScriptGUI.ps1`](./Win10ScriptGUI.ps1).
2. A restoration point done by the script itself;
3. The `Repair Windows` button on [`Win10ScriptGUI.ps1`](./Win10ScriptGUI.ps1);

## ❗ Usage Requirements

The `Win10Script(CLI/GUI).ps1` does not make everything automatically, so follow these steps.
## ✨ Usage

- Extract the `.zip` file to another folder.
- Run `OpenTerminalHere.cmd` (try as admin if nothing happens at all).
- Enable execution of PowerShell scripts and Unblock PowerShell scripts and modules within this directory (Down below).
**To run a variant of the script, follow these steps:**

### **GUI Version**
- Extract the **entire** `.zip` file to another folder.
- Run `OpenTerminalHere.cmd` (try to `run as admin` if nothing happens at all).
- Copy and Paste one of the lines below on your **Terminal** to unblock the scripts and execute it:

- Copy and Paste this entire line below on **PowerShell**:
### GUI Version

```ps1
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\"Win10ScriptGUI.ps1"
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\"WinDebloatTools.ps1"
```

![Script GUI](./src/assets/script-gui.gif)
<div align="center">

![Script GUI](./src/assets/script-gui.png)
_The `Apply Tweaks` button is the main one for debloating._

### **CLI Version** (Minimal, good for automation)
</div>

- Copy and Paste this entire line below on **PowerShell**:
### **CLI Version** (Minimal, good for automation)

```ps1
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\"Win10ScriptCLI.ps1"
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\"WinDebloatTools.ps1" 'CLI'
```

**[Scripts](./src/scripts) can be run individually, pick what you need.**

## 🔄️ Roll-Back

**If something breaks you can rely on:**

1. If you want **(almost)** everything to it's original state, use the `Undo Tweaks` button on [`WinDebloatTools.ps1`](./WinDebloatTools.ps1).
2. A restoration point done by the script itself;
3. The `Repair Windows` button on [`WinDebloatTools.ps1`](./WinDebloatTools.ps1);

## ☑️ Common Script Features

<details>
Expand All @@ -118,6 +117,7 @@ Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 |
- [Download AdwCleaner and Run the latest version for _Virus/Adware_ scan and from OOShutUp10 and import all Recommended settings from a file](./src/scripts/silent-debloat-softwares.ps1);
- [Disable _non-essential_ Telemetry from Scheduled Tasks and Optimize it](./src/scripts/optimize-task-scheduler.ps1);
- [Disable _heavy_ Services, but enable some on SSDs for optimum performance](./src/scripts/optimize-services.ps1);
- [Remove some of the legacy system components called "_capabilities_", except the most popular ones](./src/scripts/remove-windows-capabilities.ps1);
- [Remove _Bloatware_ UWP Apps that comes with Windows 10+, except from my choice](./src/scripts/remove-bloatware-apps.ps1);
- [Optimize Privacy by disabling more telemetry parts and changing GPOs, all through changing registry keys](./src/scripts/optimize-privacy.ps1);
- [Optimize Performance by changing away from default settings that slowdowns the system, utilizing _PowerShell_ commands and changing registries to disable features](./src/scripts/optimize-performance.ps1);
Expand All @@ -134,6 +134,24 @@ Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 |

### System Tweaks

#### Customize System Features ([Can be found here](src/utils/individual-tweaks.psm1))

- `Enable/Disable Dark Theme`: Apply _Dark Theme_ or _Light Theme_ on Windows;
- `Enable/Disable Activity History`: Manages the **Activity History** setting;
- `Enable/Disable Background Apps`: Manages _ALL_ the **Background Apps** settings;
- `Enable/Disable Clipboard History`: Manages the **Clipboard History** setting, that keeps a history from your clipboard pressing `Windows + V` key;
- `Enable/Disable Clipboard Sync Across Devices`: Manages the **Clipboard Sync Across Devices** setting, which allows to use the same clipboard for multiple devices (must be using a MS account);
- `Enable/Disable Cortana`: Manages the **Cortana** setting;
- `Enable/Disable Hibernate`: Manages the **Hibernate** setting;
- `Enable/Disable Old Volume Control`: Manages the **Old Volume Control (Win 7/8.1)** setting;
- `Enable/Disable Online Speech Recognition`: Manages the **Online Speech Recognition** setting, by pressing the keys `Windows + H` you can speak through your mic, then use it to type text using your voice;
- `Enable/Disable Phone Link`: Manages the **Phone Link** setting, which can link your Android/iPhone devices notifications to Windows;
- `Enable/Disable Photo Viewer`: [_Enables_](./src/utils/enable-photo-viewer.reg) or [_Disables_](src/utils/disable-photo-viewer.reg) the old **Photo Viewer (Win 7/8.1)**;
- `Enable/Disable Search App for Unknown Ext.`: When running a unknown extension file, be able to search through **MS Store** for an App that can open it.
- `Enable/Disable Telemetry`: Manages the **Windows Telemetry Level** setting;
- `Enable/Disable WSearch Service`: Manages the **Windows Search Service** setting;
- `Enable/Disable Xbox Game Bar/DVR/Mode`: Manages the **Xbox Game Bar/DVR/Mode** setting, that can open Game Bar anywhere, record clips from games and change Game Mode;

#### System Debloat Tools

- `Apply Tweaks`: Run every Common Tweak scripts ([Go To **☑️ Common Script Features** section](#%EF%B8%8F-common-script-features));
Expand All @@ -146,11 +164,12 @@ Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 |

_This section contains options to restore the system apps, by downloading them from the **MS Store** (mostly) and doing **Stock configurations** (for some Apps)._

- `Get H.265 video codec`: Get the missing HEVC support to run **H.265 videos** through MS Store, it's a must have that didn't came with (Free and DIY).
- `Cortana`;
- `Dolby Audio`;
- `Microsoft Edge`;
- `OneDrive`;
- `Paint + Paint 3D`;
- `Phone Link`;
- `Sound Recorder`;
- `Taskbar Widgets`;
- `Windows Media Player (UWP)`;
Expand All @@ -165,22 +184,9 @@ _This section contains tools to solve some Windows problems and get info about h
- [`Repair Windows`](./src/scripts/repair-windows.ps1): Try to Completely fix the Windows worst problems via Command Line;
- [`Show Debloat Info`](./src/scripts/other-scripts/show-debloat-info.ps1): Make an overall check-up from disabled and enabled Windows Components (Compare before and after applying tweaks, it's a great difference);

#### Customize System Features ([Can be found here](src/utils/individual-tweaks.psm1))
#### Windows Update ([Can be found here](src/utils/individual-tweaks.psm1))

- `Enable/Disable Dark Theme`: Apply _Dark Theme_ or _Light Theme_ on Windows;
- `Enable/Disable Activity History`: Manages the **Activity History** setting;
- `Enable/Disable Background Apps`: Manages _ALL_ the **Background Apps** settings;
- `Enable/Disable Clipboard History`: Manages the **Clipboard History** setting, that keeps a history from your clipboard pressing `Windows + V` key;
- `Enable/Disable Clipboard Sync Across Devices`: Manages the **Clipboard Sync Across Devices** setting, which allows to use the same clipboard for multiple devices (must be using a MS account);
- `Enable/Disable Cortana`: Manages the **Cortana** setting;
- `Enable/Disable Old Volume Control`: Manages the **Old Volume Control (Win 7/8.1)** setting;
- `Enable/Disable Online Speech Recognition`: Manages the **Online Speech Recognition** setting, by pressing the keys `Windows + H` you can speak through your mic, then use it to type text using your voice;
- `Enable/Disable Phone Link`: Manages the **Phone Link** setting, which can link your Android/iPhone devices notifications to Windows;
- `Enable/Disable Photo Viewer`: [_Enables_](./src/utils/enable-photo-viewer.reg) or [_Disables_](src/utils/disable-photo-viewer.reg) the old **Photo Viewer (Win 7/8.1)**;
- `Enable/Disable Search App for Unknown Ext.`: When running a unknown extension file, be able to search through **MS Store** for an App that can open it.
- `Enable/Disable Telemetry`: Manages the **Windows Telemetry Level** setting;
- `Enable/Disable WSearch Service`: Manages the **Windows Search Service** setting;
- `Enable/Disable Xbox Game Bar/DVR/Mode`: Manages the **Xbox Game Bar/DVR/Mode** setting, that can open Game Bar anywhere, record clips from games and change Game Mode;
- `Enable/Disable Automatic Windows Update`: Set Windows updates to automatic or manual;

#### Optional Features ([Can be found here](src/utils/individual-tweaks.psm1))

Expand All @@ -199,7 +205,7 @@ _This section can manually adjust `Optional Features` from the system, working a
- `Upgrade All Softwares`: Upgrades all Softwares installed on your machine installed through _Winget_ and _Chocolatey_.
- WSL will only update itself, not the distros installed.
- `Install Selected`: Install the selected apps by marking the checkbox(es);
- `Uninstall Mode`: Default as OFF, clicking this will switch the `Install Selected` button to `Uninstall Selected` and uninstall every selected apps (**Advice**: Blue colored buttons may not be able to uninstall completely and WSL UWP Apps, but WSL Distros will be unregistered);
- `Uninstall Mode`: Default as OFF, clicking this will switch the `Install Selected` button to `Uninstall Selected` and uninstall every selected apps (**Advice:** differently colored buttons may not be able to uninstall completely and WSL UWP Apps, but WSL Distros will be unregistered);

</details>

Expand Down Expand Up @@ -259,7 +265,8 @@ Get-Service "NVDisplay.ContainerLocalSystem" | Set-Service -StartupType Automati

## ➕ Contributing

Found a _bug_ or want a _new feature_? Please check out the [CONTRIBUTING.md](CONTRIBUTING.md) file.
Found a _bug_ or want a _new feature_? You can open a new `Issue` [here](https://github.com/LeDragoX/Win-Debloat-Tools/issues/new/choose).
Wanting to add improvements or fixes? Please check out the [CONTRIBUTING.md](CONTRIBUTING.md) file.

## 📝 License

Expand Down
52 changes: 0 additions & 52 deletions Win10ScriptCLI.ps1

This file was deleted.

Loading