Skip to content

Commit

Permalink
Core changes, additions and refactor (#127)
Browse files Browse the repository at this point in the history
* fix: console background color changing
- Add new background colors which works greatly with Powershell and Windows Terminal

* docs: update ISSUE_TEMPLATEs
- Log folder location
- change label to only Feature Request

* Fix: Tab 1 Panel 2 app order

* refactor: change script tmp folder to actually be on User Temp
- Get the Script Temp folder using a new function

* Delete remaining from old tmp\ folder

* arch: rename all powershell scripts to match PS naming
- Even if it isn't approved

* chore: remove unused code
- Install-HEVCSupport function which doesn't work anymore

* arch: rename remaining scripts
- Also fix an name warning from PSScriptAnalyzer
- Remove Main() functions

* style: change debloat script order
- Remove useless code from Remove-CapabilitiesList

* feat: remove old quick assist if the new one is already installed

* feat: Install Quick Assist by GUI
- Remove some console output which wasn't important

* BREAKING CHANGE: Attempt to correctly rename the remaining files (part 1)

* fix: Attempt to correctly rename the remaining files (part 2)

* Change CONTRIBUTING to a less strict policy

* Fix path not being found while downloading (#95)
- This is not a complete fix

* Fix adwcleaner not working (#95)
- Organize imports (yes, again)

* Fix adwcleaner not working (yikes!) (#95)

* Don't set NVIDIA services to Manual anymore (#98)
- Solves issues with GeForce Experience and Control Panel

* Remove more Apps: (#102)
- WhatsApp
- Amazon Prime Video
- TikTok
- Facebook
- Instagram

Spotify will not be removed, as i don't want to :v

* Remove useless files and code
- The lib Grant-RegistryPermission isn't working at all
- Removing all references from this handmade lib

* Prefer using "legacy" Windows 10 context menu on Windows 11
- If you dislike it you can click twice on "Enable Legacy Context Menu" to restore the default
- Less laggy

* Stop triggering github actions everyday

* Rename powershell-linter CI

* Refactor Issue templates
- Need less info
- Fixed punctuation.

* Logs should be divided monthly

* Modify Windows Explorer Navigation Pane behaviors
- Hide Duplicated Removable Devices
- Disable Expand to folder on navigation pane

(Seems to solve: Explorer opening as the primary window without any reason)

* Making disable expand to folder on navigation pane irreversible
- The default is already disabled

* Load PSScheduledJob Module before using it's calls (#119)

* Add DELL bloatware to remove
- Add Alienware apps, but keep them commented
.
.
.
I've been thinking about this for a long time...

* Use less colors on terminal
> This is not Cyberpunk 2077
- Change credits location

* Enable Run Dialog History back (#102)
- Press Win + R, then type something, you should see more stuff now.

* Add Hyper-V to Optional Features (#102)

* Add Windows Sandbox to Optional Features (#102)

* Add new MS Edge Apps to Remove

* Organize Bloatware list in each category
- Add Dev Home to MSApps

* Don't remove Dev Home yet, it can't be reinstalled

* Winget and Chocolatey won't install while initializing the script (#110)
- Every Winget/Chocolatey operation was moved to Software Install Tab.
- To be able to install apps again, you need to install individually Winget and Chocolatey.
- Also, you can Add or Remove Daily Upgrade for Winget and Chocolatey.
- Chocolatey can now be Uninstalled! *(Be aware to uninstall everything before)*

infra: Manage-Software and every code related to package managers were moved to /src/lib/package-managers/

* Update the message when a package manager was already found before enabling daily upgrade

* Switch Xbox app order on list
- Replace comments

No code changes.

* Update CONTRIBUTING
- I thought i made this change before, sorry for the inconvenience.

* Purge Cortana from reinstallable system apps. (#124)

* When removing Microsoft Edge, keep EdgeWebView (#125)

* Keep EdgeCore folder
- Testing to Remove Edge but keep EdgeWebView working

* Fix Remove-ItemVerified hardcode

* Revert EdgeCore commit (#125)
- Refactor what folders are removed (The Exclude param was broken)

* Move the last package manager related file to /src/lib/package-managers/

* Allow WinDebloatTools to run asking for admin perms +
+ Run Windows Terminal or PowerShell depending on winget.
- If script is in the wrong folder, it'll be able to detect and correct it.

* Install Winget, Chocolatey and WSL on DEMAND (#110 #112)
- If the user wants to install something, instead of going directly to an error, install the missing package manager.
- The 1st time installing will prompt a bigger message (I don't know how this happened)

* Fix PSScriptAnalyzer note.
- The cmdlet 'Install-Software' returns an object of type 'System.Management.Automation.ScriptBlock' but this type is not declared in the OutputType attribute.

* Add option to switch Mouse Acceleration (#102)

* Add option to turn on/off Family Safety Features from Task Schedules (#104)

* Improve Windows Search info (#112)
- Use lib to disable/enable service for WSearch service
- Isolate WSearch tweak on Services category

* Fix Mouse Acceleration persistance after reboot (#102)
- Changed Type to String.

* Add Messenger app and Spotify (#102)
- Spotify line was uncommented

* Fix missing .URL file association :D (#113)
- Took a long time to find out, I'm not doing this again
- All .reg files should wait until finished
- Add "None" type to Set-ItemPropertyVerified
  - Used to a specific case where REG_NONE was needed
- Check if system is Windows 10, then only apply on it
- Added other comment to Windows Photos App, because it's the same as Video Editor (2 apps in 1)
- Create new reg file to bypass perms, solving the .url file disassociation
- In Enable-LegacyContextMenu suppress the New-Item command output

* Use -Encoding UTF8 parameter (#118?)

* Load PSScheduledJob Module in Manage-DailyUpgradeJob (#119)
- For some reason the import was missing again.

* Disable Edge Tasks and Services after uninstalling (#123/#125)
- Add a disclaimer to the message before Removing Edge
- Fixed wildcard usage '*' in Set-ScheduledTaskState function
  • Loading branch information
LeDragoX authored Oct 12, 2023
1 parent 42c3a0d commit b5ab6db
Show file tree
Hide file tree
Showing 29 changed files with 999 additions and 438 deletions.
30 changes: 7 additions & 23 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ body:
value: |
## Important: Read First
- If some section doesn't apply, use "N/A"
- If some section doesn't apply, use "N/A".
- type: textarea
id: description
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is
description: A clear and concise description of what the bug "is". You can also add Screenshots.
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: How can this issue be reproduced?
description: Steps to reproduce the behavior
description: Steps to reproduce the behavior.
placeholder: |
Example:
1. Go to '...'
Expand All @@ -36,7 +36,7 @@ body:
id: expectedBehavior
attributes:
label: Expected behavior?
description: A clear and concise description of what you expected to happen
description: A clear and concise description of what you expected to happen.
validations:
required: false
- type: markdown
Expand All @@ -47,7 +47,7 @@ body:
id: os
attributes:
label: Operating System
description: Versions before Windows 10 are not supported
description: Versions before Windows 10 are not supported.
options:
- Windows 11
- Windows 10
Expand All @@ -57,33 +57,17 @@ body:
id: osVer
attributes:
label: Operating System Version
description: Versions before 1809 are not supported
description: Versions before 1809 are not supported.
placeholder: "Example: 21H2"
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: |
If your issue is better illustrated with screenshots, you may do that here
validations:
required: false
- type: textarea
id: logs
attributes:
label: Logs
description: |
**Only needed if it's error related**
Put your log file from: C:\Users\{ Your User }\AppData\Local\Temp\Win-Debloat-Tools\logs\WinDebloatTools.log
TIP: press `Win + R` and type `%Temp%` then hit `ENTER`, now find the log file
validations:
required: false
- type: textarea
id: context
attributes:
label: Additional Info
description: |
Please feel free to add any additional info here
TIP: press `Win + R` and type `%Temp%` then hit `ENTER`, now find the log file.
validations:
required: false
11 changes: 5 additions & 6 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ body:
value: |
## Important: Read First
- If some section doesn't apply, use "N/A"
- If some section doesn't apply, use "N/A".
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what you want to happen
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
id: reason
attributes:
label: Reason
description: |
Give a reason why you want this feature
Give a reason why you want this feature:
- How will it make things easier for you?
- What does it provide that isn't being provided currently?
- How does it benefit?
Expand All @@ -35,8 +35,7 @@ body:
attributes:
label: Examples
description: |
Provide examples of the feature as implemented by other software
Include screenshots or video if you like to help demonstrate how you'd like this feature to work
Provide examples of the feature as implemented by other software.
Include screenshots or video if you can demonstrate how you'd like this feature to work.
validations:
required: false
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ name: PSScriptAnalyzer
on:
push:
branches:
- main
- develop
- main
- develop
pull_request:
branches:
- main
- develop
schedule:
- cron: '30 12 * * 0-6'

- main
- develop

jobs:
build:
name: PSScriptAnalyzer
Expand All @@ -34,7 +32,7 @@ jobs:
with:
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
path: .\
recurse: true
recurse: true
# Exclude rules that will not be worked on / are invalid
# Command: invoke-scriptanalyzer . -recurse -excludeRule: "PSAvoidUsingInvokeExpression", "PSAvoidUsingWriteHost", "PSUseShouldProcessForStateChangingFunctions"
excludeRule: '"PSAvoidUsingInvokeExpression", "PSAvoidUsingWriteHost", "PSUseShouldProcessForStateChangingFunctions"'
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Warning**: this file is subject to changing without notice.

I would be happy to extend the collection of scripts.
If you want to send me a **PULL REQUEST**, you can send PRs to `main` branch, i'll check your code, request changes if necessary or approve, and merge directly unless it's a "Draft PR".
If you want to send me a **PULL REQUEST**, send you PRs to the `develop` branch, select your `local branch (from)` and put into `develop`, i'll check your code, request changes if necessary or approve, and merge directly unless it's a "Draft PR".

## 🖌 Coding Style

Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 |
- [Import all necessary _modules_ before executing everything](./src/lib/);
- Logs both script runs on `C:\Users\<<USERNAME>>\AppData\Local\Temp\Win-DT-Logs`;
- [Make a Restore Point and Backup the Hosts file](./src/scripts/Backup-System.ps1);
- [Install _Winget/Chocolatey_ package managers by default](./src/scripts/Install-PackageManager.ps1);
- Creates a new Scheduled Task to daily upgrade all available softwares via _Winget_ at **12:00** and _Chocolatey_ at **13:00**;
- Find the Scheduled Task on `Task Scheduler > Microsoft > Windows > PowerShell > ScheduledJobs > Chocolatey/Winget Daily Upgrade`;
- Register daily upgrade logs on `C:\Users\<<USERNAME>>\AppData\Local\Temp\Win-DT-Logs` and remove old log files;
- [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-TaskScheduler.ps1);
- [Disable _heavy_ Services, but enable some on SSDs for optimum performance](./src/scripts/Optimize-ServicesRunning.ps1);
Expand Down Expand Up @@ -143,6 +139,7 @@ Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 |
- `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 Legacy Context Menu`: Bring back the Windows 10 **context menu** from right-clicking or default on Windows 11;
- `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;
Expand All @@ -156,15 +153,14 @@ Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 |

- `Apply Tweaks`: Run every Common Tweak scripts ([Go To **☑️ Common Script Features** section](#%EF%B8%8F-common-script-features));
- `Undo Tweaks`: Re-apply some tweaks and _Revert_ all possible ones, covering the, `ShutUp10 settings`, `Scheduled Tasks`, `Services`, `Privacy and Performance`, `Personal` and `Optional Features` tweaks, then try to `Reinstall Pre-Installed Apps`;
- [`Remove Microsoft Edge`](./src/scripts/Remove-MSEdge.ps1): uninstalls Microsoft Edge/WebView, then remove the remaining files;
- [`Remove Microsoft Edge`](./src/scripts/Remove-MSEdge.ps1): uninstalls **Microsoft Edge**, then remove the remaining files, **Edge Web View** files will remain untouched;
- [`Remove OneDrive`](./src/scripts/Remove-OneDrive.ps1): completely removes OneDrive from the System, re-install is possible via Win Store;
- [`Remove Xbox`](./src/scripts/Remove-Xbox.ps1): wipe Xbox Apps, disable Services related to Xbox and GameBar/GameDVR;

#### Install System Apps ([Can be found here](src/utils/Install-Individual-System-Apps.psm1))

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

- `Cortana`;
- `Dolby Audio`;
- `Microsoft Edge`;
- `OneDrive`;
Expand Down Expand Up @@ -202,6 +198,17 @@ _This section can manually adjust `Optional Features` from the system, working a

### Software Install

- [Install _Winget/Chocolatey_ package managers](./src/lib/package-managers/);

- Be able to install the listed software in this script! Even from System apps.

- [**Create** or **Remove** a Daily Upgrade Task for _Winget/Chocolatey_ packages](./src/lib/package-managers/);

- Creates a new Scheduled Job to daily upgrade all available softwares via _Winget_ at **12:00** and _Chocolatey_ at **13:00**;
- Register daily upgrade logs on `C:\Users\<<USERNAME>>\AppData\Local\Temp\Win-DT-Logs` and remove old log files;

- `Remove All Chocolatey Packages`: List all packages from Chocolatey which are installed and remove everything at once;

- `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);
Expand Down
Loading

0 comments on commit b5ab6db

Please sign in to comment.