small changes, enable specific regs, change backup dir, create new script from utils, renamed elevate-cmd.bat

main
LeDragoX 4 years ago committed by Plínio Larrubia
parent 418a937d14
commit 0a6970d7a7
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -41,32 +41,35 @@ Function RunScripts {
ls -Recurse *.ps*1 | Unblock-File
Clear-Host
Write-Output "=========================================================================================" "backup-system.ps1"
Write-Output "|==================== backup-system.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"backup-system.ps1"
Clear-Host
Write-Output "=========================================================================================" "all-in-one-tweaks.ps1"
Write-Output "|==================== all-in-one-tweaks.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"all-in-one-tweaks.ps1"
Clear-Host
Write-Output "=========================================================================================" "block-telemetry.ps1"
Write-Output "|==================== block-telemetry.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"block-telemetry.ps1"
Clear-Host
Write-Output "=========================================================================================" "disable-services.ps1"
Write-Output "|==================== disable-services.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"disable-services.ps1"
Clear-Host
Write-Output "=========================================================================================" "fix-privacy-settings.ps1"
Write-Output "|==================== fix-privacy-settings.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"fix-privacy-settings.ps1"
Clear-Host
Write-Output "=========================================================================================" "optimize-user-interface.ps1"
Write-Output "|==================== optimize-user-interface.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"optimize-user-interface.ps1"
Clear-Host
Write-Output "=========================================================================================" "optimize-windows-update.ps1"
Write-Output "|==================== optimize-windows-update.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"optimize-windows-update.ps1"
Clear-Host
Write-Output "=========================================================================================" "remove-default-apps.ps1"
Write-Output "|==================== remove-default-apps.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"remove-default-apps.ps1"
Clear-Host
Write-Output "=========================================================================================" "remove-onedrive.ps1"
Write-Output "|==================== remove-onedrive.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"remove-onedrive.ps1"
Clear-Host
Write-Output "|==================== fix-general-problems.ps1 ====================|" ""
PowerShell -NoProfile -ExecutionPolicy Bypass -file .\"fix-general-problems.ps1"
Pop-Location
}

@ -105,6 +105,7 @@ reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWi
# Change Windows Updates to "Notify to schedule restart"
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v UxOption /t REG_DWORD /d 1 /f
# Disable P2P Update downloads outside of local network
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /t REG_DWORD /d 0 /f
@ -117,17 +118,17 @@ reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ad
# *** Set Windows Explorer to start on This PC instead of Quick Access ***
# 1 = This PC, 2 = Quick access
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
# NOW JUST SOME TWEAKS
# *** Show hidden files in Explorer ***
# reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
# *** Show super hidden system files in Explorer ***
# reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 1 /f
# reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 1 /f
# *** Show file extensions in Explorer ***
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f
Write-Output "" "*** Misc. Tweaks ***" ""

@ -1,4 +1,5 @@
# Made by LeDragoX inspired by Chris Titus Tech
Write-Output "Enabling system drive Restore Point"
Enable-ComputerRestore -Drive "C:\"
mkdir "$env:SystemDrive\WinBackup"
Enable-ComputerRestore -Drive "$env:SystemDrive\WinBackup"
Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS"

@ -0,0 +1,25 @@
Write-Output "============================================"
Write-Output ""
Write-Output "Fix windows explorer opening with no reason"
Write-Output ""
Write-Output "============================================"
Write-Output ""
sfc /scannow
dism.exe /online /cleanup-image /restorehealth
Write-Output "=========================================="
Write-Output ""
Write-Output "This will Fix your Start Menu not opening"
Write-Output ""
Write-Output "=========================================="
Write-Output ""
taskkill /F /IM explorer.exe
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V EnableXamlStartMenu /T REG_DWORD /D 0 /F
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Start-Process explorer
Write-Output "Restart your Computer!" | Msg * /time:3

@ -51,3 +51,5 @@
:gotPrivileges
setlocal & cd /d %~dp0
if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul & shift /1)
REM "Your script here"

@ -1,20 +0,0 @@
@echo ---- Preparation ----
@set this=%~dp0
@set thisdrive=%this:~0,2%
%thisdrive%
@cd %this%
@echo This bat drive = %thisdrive%
@echo This bat folder = %this%
@echo off & echo ---- Prepared ----
@Echo ============================================
@Echo Fix windows explorer opening with no reason
@Echo ============================================
@sfc /scannow
@dism.exe /online /cleanup-image /restorehealth
@PowerShell Write-Output 'Restart your Computer!' | Msg * /time:3

@ -1,13 +0,0 @@
Write-Output "===================================="
Write-Output "This will Fix your Start Menu click"
Write-Output "===================================="
taskkill /F /IM explorer.exe
PowerShell Set-ExecutionPolicy Unrestricted
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V EnableXamlStartMenu /T REG_DWORD /D 0 /F
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
PowerShell Set-ExecutionPolicy Restricted
start explorer
Loading…
Cancel
Save