Skip to content

Commit a9a1126

Browse files
authored
Add files via upload
1 parent c5989d2 commit a9a1126

File tree

1 file changed

+33
-16
lines changed

1 file changed

+33
-16
lines changed

Windows_Optimisation_Pack.ps1

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwners
142142
function SophiaScript{
143143
Clear-Host
144144
IF($WindowsVersion -eq "Microsoft Windows 11 Home" -Or $WindowsVersion -eq "Microsoft Windows 11 Pro" -Or $WindowsVersion -eq "Microsoft Windows 11 Enterprise") {
145-
Start-BitsTransfer -Source "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/6.2.7/Sophia.Script.for.Windows.11.v6.2.7.zip" -Destination $env:temp\Sophia.zip
145+
Start-BitsTransfer -Source "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/6.3.1/Sophia.Script.for.Windows.11.v6.3.1.zip" -Destination $env:temp\Sophia.zip
146146
Expand-Archive $env:temp\Sophia.zip $env:temp -force
147147
Move-Item -Path $env:temp\"Sophia_Script*" -Destination $ScriptFolder\Sophia_Script\
148148
Start-BitsTransfer -Source "https://raw.githubusercontent.com/Marvin700/Windows_Optimisation_Pack/main/config/Sophia_Win11.ps1" -Destination "$ScriptFolder\Sophia_Script\Sophia.ps1" }
149149
else { IF($WindowsVersion -eq "Microsoft Windows 10 Home" -Or $WindowsVersion -eq "Microsoft Windows 10 Pro" -Or $WindowsVersion -eq "Microsoft Windows 11 Enterprise") {
150-
Start-BitsTransfer -Source "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/6.2.7/Sophia.Script.for.Windows.10.v5.14.7.zip" -Destination $env:temp\Sophia.zip
150+
Start-BitsTransfer -Source "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/6.3.1/Sophia.Script.for.Windows.10.v5.15.1.zip" -Destination $env:temp\Sophia.zip
151151
Expand-Archive $env:temp\Sophia.zip $env:temp -force
152152
Move-Item -Path $env:temp\"Sophia_Script*" -Destination $ScriptFolder\Sophia_Script\
153153
Start-BitsTransfer -Source "https://raw.githubusercontent.com/Marvin700/Windows_Optimisation_Pack/main/config/Sophia_Win10.ps1" -Destination "$ScriptFolder\Sophia_Script\Sophia.ps1" } }
@@ -189,11 +189,16 @@ Start-Process $env:temp\Autoruns64.exe }
189189
function WindowsCleanup{
190190
Clear-Host
191191
gpupdate.exe /force
192+
ipconfig /flushdns
192193
$Key = Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches
193194
ForEach($result in $Key)
194195
{If($result.name -eq "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\DownloadsFolder"){}Else{
195196
$Regkey = 'HKLM:' + $result.Name.Substring( 18 )
196197
New-ItemProperty -Path $Regkey -Name 'StateFlags0001' -Value 2 -PropertyType DWORD -Force -EA 0 | Out-Null}}
198+
sfc /SCANNOW
199+
Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore
200+
Dism.exe /Online /Cleanup-Image /spsuperseded
201+
Dism.exe /online /Cleanup-Image /StartComponentCleanup
197202
Clear-BCCache -Force -ErrorAction SilentlyContinue
198203
Get-ChildItem -Path $env:temp -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
199204
Get-ChildItem -Path $env:windir\Temp -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
@@ -205,16 +210,28 @@ Get-ChildItem -Path $env:windir/../AMD/ -Recurse -Force -ErrorAction SilentlyCon
205210
Get-ChildItem -Path $env:LOCALAPPDATA\NVIDIA\DXCache -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
206211
Get-ChildItem -Path $env:LOCALAPPDATA\NVIDIA\GLCache -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
207212
Get-ChildItem -Path $env:APPDATA\..\locallow\Intel\ShaderCache -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
213+
Get-ChildItem -Path $env:LOCALAPPDATA\CrashDumps -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
214+
Get-ChildItem -Path $env:APPDATA\..\locallow\AMD -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
215+
Get-ChildItem -Path $env:windir\..\MSOCache
208216
Get-ChildItem -Path ${env:ProgramFiles(x86)}\Steam\steamapps\common\"Call of Duty HQ"\shadercache -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
217+
if ((Test-Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\EscapeFromTarkov")){
218+
taskkill /F /IM EscapeFromTarkov.exe
209219
$EscapefromTarkov = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\EscapeFromTarkov' -Name 'InstallLocation').InstallLocation
210220
Get-ChildItem -Path $EscapefromTarkov\Logs -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
221+
Get-ChildItem -Path $env:temp\"Battlestate Games" -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse}
222+
if ((Test-Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 1938090")){
223+
taskkill /F /IM iexplore.exe
211224
$CallofDutyMW2_Steam = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 1938090' -Name 'InstallLocation').InstallLocation
225+
Get-ChildItem -Path $CallofDutyMW2_Steam\shadercache -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse}
226+
if ((Test-Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Call of Duty")){
227+
taskkill /F /IM iexplore.exe
212228
$CallofDutyMW2_Battlenet = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Call of Duty' -Name 'InstallLocation').InstallLocation
213-
Get-ChildItem -Path $CallofDutyMW2_Steam\shadercache -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
214-
Get-ChildItem -Path $CallofDutyMW2_Battlenet\shadercache -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse
229+
Get-ChildItem -Path $CallofDutyMW2_Battlenet\shadercache -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse}
215230
lodctr /r
216231
lodctr /r
217-
Start-Process cleanmgr.exe /sagerun:1 -Wait }
232+
Clear-Host
233+
Write-Host "Datentraeger Bereinigung wird gestartet..."
234+
Start-Process cleanmgr.exe /sagerun:1 -Wait}
218235

219236
function Runtime{
220237
winget source update | Out-Null
@@ -225,7 +242,7 @@ IF(!($InstalledSoftware -Contains "Microsoft Windows Desktop Runtime - 7.0.0 (x6
225242
winget install --id=Microsoft.DirectX --exact --accept-source-agreements}
226243

227244
function Fan_Control{
228-
Start-BitsTransfer -Source "https://github.com/Rem0o/FanControl.Releases/releases/download/V143/FanControl_net_4_8.zip" -Destination $env:temp\FanControl.zip
245+
Start-BitsTransfer -Source "https://github.com/Rem0o/FanControl.Releases/releases/download/V145/FanControl_net_7_0.zip" -Destination $env:temp\FanControl.zip
229246
Expand-Archive $env:temp\FanControl.zip "C:\Program Files\FanControl" -force
230247
Remove-Item -Path $env:temp\FanControl.zip -Force -Recurse
231248
$WshShell = New-Object -comObject WScript.Shell
@@ -243,7 +260,7 @@ $Shortcut.TargetPath = "C:\Program Files\AutoActions\AutoActions.exe"
243260
$Shortcut.Save() }
244261

245262
function Controller{
246-
Start-BitsTransfer -Source "https://github.com/Ryochan7/DS4Windows/releases/download/v3.2.7/DS4Windows_3.2.7_x64.zip" -Destination "$env:temp\DS4Windows.zip "
263+
Start-BitsTransfer -Source "https://github.com/Ryochan7/DS4Windows/releases/download/v3.2.8/DS4Windows_3.2.8_x64.zip" -Destination "$env:temp\DS4Windows.zip "
247264
Expand-Archive $env:temp\DS4Windows.zip "C:\Program Files\" -force
248265
Remove-Item -Path $env:temp\DS4Windows.zip -Force -Recurse
249266
$WshShell = New-Object -comObject WScript.Shell
@@ -530,8 +547,8 @@ Finish
530547
# SIG # Begin signature block
531548
# MIIFiwYJKoZIhvcNAQcCoIIFfDCCBXgCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
532549
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
533-
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQULxxa4KM2eZS8DeyMe43lHaCE
534-
# DU2gggMcMIIDGDCCAgCgAwIBAgIQJBEmIU6B/6pL+Icl+8AGsDANBgkqhkiG9w0B
550+
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUOBufR16vHOptTI6QyQSJYO4p
551+
# mCSgggMcMIIDGDCCAgCgAwIBAgIQJBEmIU6B/6pL+Icl+8AGsDANBgkqhkiG9w0B
535552
# AQsFADAkMSIwIAYDVQQDDBlXaW5kb3dzX09wdGltaXNhdGlvbl9QYWNrMB4XDTIy
536553
# MTAwMzA5NTA0MloXDTMwMTIzMTIyMDAwMFowJDEiMCAGA1UEAwwZV2luZG93c19P
537554
# cHRpbWlzYXRpb25fUGFjazCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
@@ -551,11 +568,11 @@ Finish
551568
# JDEiMCAGA1UEAwwZV2luZG93c19PcHRpbWlzYXRpb25fUGFjawIQJBEmIU6B/6pL
552569
# +Icl+8AGsDAJBgUrDgMCGgUAoHgwGAYKKwYBBAGCNwIBDDEKMAigAoAAoQKAADAZ
553570
# BgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgorBgEEAYI3AgELMQ4wDAYKKwYB
554-
# BAGCNwIBFTAjBgkqhkiG9w0BCQQxFgQUrSRLDzn3nDcFGbsaJhsMvPttetswDQYJ
555-
# KoZIhvcNAQEBBQAEggEAFtRuiR6e8tkCYcwVx202okELK/zk2k2VyJqXi41WvkwI
556-
# Ng9khH2KYHTdLgeVYGBOoY9VEQLwcln0m/AyIqDMFD0QUo89+dhDZtND0u3pMM6g
557-
# fjWuYVBV4UHHeS7r5VXpAhg4CGOEuS7YisQpucfNdbu+vICGayiIt/1BtnUrcz0Y
558-
# sOVfcZhDte1Tk+wgChtbm9evhC8K/D1AeLVqP4VyWfmojWGUAxJQVVaVUL2jSMKj
559-
# R2jslLFKbFWD3L5UbwXDQTWxDysixj8JSyAzTTzNWr3Rd2zrx979ZczfJXKBl9Aa
560-
# /IovF4kIIjBfn/IXOTA24E2848d4Qd/7r40QfB3N+Q==
571+
# BAGCNwIBFTAjBgkqhkiG9w0BCQQxFgQU50CDKFUA4bUv06rTk248mPMQlWcwDQYJ
572+
# KoZIhvcNAQEBBQAEggEAhn8wxrQiyrJAAeLd1yGX7dJ2xjVggTh8yos7FO68keL4
573+
# XJklrPTweHWBDI69/8h2ktI/xQ/CjW8gyPqiK04uf0gJbCmdhsC5Ij+ZfxK69HC4
574+
# Bfpz+Ed/EPtM8VC40Wzw5CnfSwOHKKvOAbd8PpWUyUzIBzM8BxAp0gQFGYLqMyn+
575+
# OZANmk/TTu14U22KnvR3i1I7UVogDSWnR8cLClUU9SUwGyVe+9GrTMTOs6MBMtvV
576+
# QJ1/KQ621er0fSG9OTi7UPilWRk6OGM7zy/Ohi2HuKOyeIx50AVyOHTigaZ9bso7
577+
# 752iefYf99Kss0dNXkSHYQ76XRhDnQkoGNVFM/uufg==
561578
# SIG # End signature block

0 commit comments

Comments
 (0)