small changes, enable specific regs, change backup dir, create new script from utils, renamed elevate-cmd.bat
parent
418a937d14
commit
0a6970d7a7
@ -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
|
@ -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…
Reference in New Issue