Update Remove Bloatware Apps description

- Returning UWP MS Teams removal to default name
- Add version by "Date modified version" to each file loaded
- Add "GUI Script" version on graphical interface
- Improve some terminal/console colors
- Show CLI/GUI version on terminal before anything (except logging)
- Update GIF
main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent 5267b0e4fa
commit 2fd340f3e9
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -131,7 +131,7 @@ Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 |
- Download OOShutUp10 and import all Recommended settings;
- Disable Telemetry from Scheduled Tasks and Optimize it; ([`optimize-scheduled-tasks.ps1`](./src/scripts/optimize-scheduled-tasks.ps1))
- Disable heavy Services, but enable some on SSDs for optimum performance; ([`optimize-services.ps1`](./src/scripts/optimize-services.ps1))
- Remove Bloatware Apps that comes with Windows 10, except from my choice; ([`remove-bloatware-apps.ps1`](./src/scripts/remove-bloatware-apps.ps1))
- Remove Bloatware UWP Apps that comes with Windows 10+, except from my choice; ([`remove-bloatware-apps.ps1`](./src/scripts/remove-bloatware-apps.ps1))
- Optimize Privacy and Performance settings disabling more telemetry stuff and changing GPOs; ([`optimize-privacy-and-performance.ps1`](./src/scripts/optimize-privacy-and-performance.ps1))
- Apply General Personalization tweaks via Registry and Powershell commands; ([`personal-tweaks.ps1`](./src/scripts/personal-tweaks.ps1))
- Help improve the Security of Windows while maintaining performance; ([`optimize-security.ps1`](./src/scripts/optimize-security.ps1))

@ -38,10 +38,11 @@ function Main() {
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"start-logging.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"title-templates.psm1"
Set-ConsoleStyle # Makes the console look cooler
Start-Logging -File (Split-Path -Path $PSCommandPath -Leaf).Split(".")[0]
Write-Caption "$((Split-Path -Path $PSCommandPath -Leaf).Split('.')[0]) v$((Get-Item "$(Split-Path -Path $PSCommandPath -Leaf)").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
Write-Host "Your Current Folder $pwd"
Write-Host "Script Root Folder $PSScriptRoot"
Set-ConsoleStyle # Makes the console look cooler
Unlock-ScriptUsage
Use-WindowsForm
Open-Script # Run all scripts inside 'scripts' folder

@ -36,8 +36,9 @@ function Show-GUI() {
$TitleLabel2 = New-Label -Text "Customize Tweaks" -Width $LabelWidth -Height $TitleLabelHeight -LocationX $TitleLabelX -LocationY $TitleLabelY -FontSize $FontSize4 -FontStyle "Bold" -ForeColor $WinBlue
$TitleLabel3 = New-Label -Text "Software Install" -Width $LabelWidth -Height $TitleLabelHeight -LocationX $TitleLabelX -LocationY $TitleLabelY -FontSize $FontSize4 -FontStyle "Bold" -ForeColor $WinBlue
# Panel 3-4-5 ~> Caption Label
$CaptionLabel1 = New-Label -Text "Package Managers: Winget and Chocolatey" -Width ($CaptionLabelWidth * 1.25) -Height $CaptionLabelHeight -LocationX (($PanelWidth * 2) - ($PanelWidth * 0.10)) -LocationY ($FirstButtonY - 27) -FontSize $FontSize1 -ForeColor $Purple
# Panel 1, 3-4-5 ~> Caption Label
$CaptionLabel1_1 = New-Label -Text "($((Split-Path -Path $PSCommandPath -Leaf).Split('.')[0]) v$((Get-Item "$(Split-Path -Path $PSCommandPath -Leaf)").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd"))" -Width $PanelWidth -Height $CaptionLabelHeight -LocationX 0 -LocationY ($FirstButtonY - 27) -FontSize $FontSize1 -ForeColor $Purple
$CaptionLabel1_2 = New-Label -Text "Package Managers: Winget and Chocolatey" -Width ($CaptionLabelWidth * 1.25) -Height $CaptionLabelHeight -LocationX (($PanelWidth * 2) - ($PanelWidth * 0.10)) -LocationY ($FirstButtonY - 27) -FontSize $FontSize1 -ForeColor $Purple
# Panel 1 ~> Big Button
$ApplyTweaks = New-Button -Text "Apply Tweaks" -Width $ButtonWidth -Height $BBHeight -LocationX $ButtonX -LocationY $FirstButtonY -FontSize $FontSize2 -FontStyle "Italic" -ForeColor $WinBlue
@ -509,9 +510,9 @@ function Show-GUI() {
# Add all Panels to the Form (Screen)
$Form.Controls.AddRange(@($FullPanel))
# Add Elements to each Panel
$FullPanel.Controls.AddRange(@($CaptionLabel1))
$FullPanel.Controls.AddRange(@($CaptionLabel1_2))
$FullPanel.Controls.AddRange(@($Panel1, $Panel2, $Panel3, $Panel4, $Panel5))
$Panel1.Controls.AddRange(@($TitleLabel1, $ApplyTweaks, $RevertTweaks, $RemoveXbox, $RepairWindows, $InstallOneDrive, $ReinstallBloatApps, $ShowDebloatInfo, $PictureBox1))
$Panel1.Controls.AddRange(@($TitleLabel1, $CaptionLabel1_1, $ApplyTweaks, $RevertTweaks, $RemoveXbox, $RepairWindows, $InstallOneDrive, $ReinstallBloatApps, $ShowDebloatInfo, $PictureBox1))
$Panel2.Controls.AddRange(@($TitleLabel2, $DarkTheme, $LightTheme, $EnableSearchIdx, $DisableSearchIdx, $EnableBgApps, $DisableBgApps, $EnableTelemetry, $DisableTelemetry, $EnableCortana, $DisableCortana, $EnableGameBarAndDVR, $DisableGameBarAndDVR, $EnableClipboardHistory, $DisableClipboardHistory, $EnableOldVolumeControl, $DisableOldVolumeControl))
$Panel3.Controls.AddRange(@($InstallDrivers, $CaptionLabel3_1, $BraveBrowser, $GoogleChrome, $MozillaFirefox))
$Panel3.Controls.AddRange(@($CaptionLabel3_2, $7Zip, $WinRAR))
@ -1098,10 +1099,11 @@ function Main() {
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"start-logging.psm1"
Import-Module -DisableNameChecking $PSScriptRoot\src\lib\"title-templates.psm1"
Set-ConsoleStyle # Makes the console look cooler
Start-Logging -File (Split-Path -Path $PSCommandPath -Leaf).Split(".")[0]
Write-Caption "$((Split-Path -Path $PSCommandPath -Leaf).Split('.')[0]) v$((Get-Item "$(Split-Path -Path $PSCommandPath -Leaf)").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
Write-Host "Your Current Folder $pwd"
Write-Host "Script Root Folder $PSScriptRoot"
Set-ConsoleStyle # Makes the console look cooler
Unlock-ScriptUsage
Open-PowerShellFilesCollection -RelativeLocation "src\scripts" -Scripts "install-package-managers.ps1" -DoneTitle $DoneTitle -DoneMessage $DoneMessage -NoDialog # Install Winget and Chocolatey at the beginning
Write-ScriptLogo # Thanks Figlet

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 KiB

After

Width:  |  Height:  |  Size: 399 KiB

@ -17,7 +17,8 @@ function Open-PowerShellFilesCollection {
Get-ChildItem -Recurse *.ps*1 | Unblock-File
ForEach ($FileName in $Scripts) {
$Private:Counter = Write-TitleCounter -Text "$FileName" -Counter $Counter -MaxLength $Scripts.Length
$LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
$Private:Counter = Write-TitleCounter -Text "$FileName ($LastAccessUtc)" -Counter $Counter -MaxLength $Scripts.Length
If ($OpenFromGUI) {
Import-Module -DisableNameChecking .\"$FileName" -Force
}
@ -46,7 +47,8 @@ function Open-RegFilesCollection {
Push-Location -Path "$PSScriptRoot\..\..\$RelativeLocation"
ForEach ($FileName in $Scripts) {
$Private:Counter = Write-TitleCounter -Text "$FileName" -Counter $Counter -MaxLength $Scripts.Length
$LastAccessUtc = "v$((Get-Item "$FileName").LastWriteTimeUtc | Get-Date -Format "yyyy-MM-dd")"
$Private:Counter = Write-TitleCounter -Text "$FileName ($LastAccessUtc)" -Counter $Counter -MaxLength $Scripts.Length
regedit /s "$FileName"
}

@ -7,13 +7,13 @@ function Start-Logging {
$Date = Get-Date -Format "yyyy-MM-dd_HH-mm-ss"
$File = "$File`_$Date.log"
Write-Host -NoNewline "[@] " -ForegroundColor White
Write-Host -NoNewline "[@] " -ForegroundColor Blue
Start-Transcript -Path "$Path\$File"
Write-Host
}
function Stop-Logging {
Write-Host -NoNewline "[@] " -ForegroundColor White
Write-Host -NoNewline "[@] " -ForegroundColor Blue
Stop-Transcript
Write-Host
}

@ -54,7 +54,7 @@ function Remove-BloatwareAppsList() {
# Default Windows 11 apps
"MicrosoftWindows.Client.WebExperience" # Taskbar Widgets
"*MicrosoftTeams*" # Microsoft Teams / Preview
"MicrosoftTeams" # Microsoft Teams / Preview
# 3rd party Apps
"*ACGMediaPlayer*"

@ -3,7 +3,7 @@ Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"title-templates.psm1"
function WSLPreviewInstall() {
Try {
Write-Host "[?] Installing WSL Preview from MS Store for Windows 11+ ..." -ForegroundColor Yellow -BackgroundColor Black
Write-Host "[?] PRESS 'Y' AND ENTER TO CONTINUE IF STUCK (Winget bug) ..." -ForegroundColor Yellow -BackgroundColor Black
Write-Host "[?] Press 'Y' and ENTER to continue if stuck (Winget bug) ..." -ForegroundColor Magenta -BackgroundColor Black
$CheckExistenceBlock = { winget install --source "msstore" --id 9P9TQF7MRM4R --accept-package-agreements }
$err = $null
$err = (Invoke-Expression "$CheckExistenceBlock") | Out-Host

Loading…
Cancel
Save