@@ -142,12 +142,12 @@ New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwners
142
142
function SophiaScript {
143
143
Clear-Host
144
144
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
146
146
Expand-Archive $env: temp \Sophia.zip $env: temp - force
147
147
Move-Item - Path $env: temp \" Sophia_Script*" - Destination $ScriptFolder \Sophia_Script\
148
148
Start-BitsTransfer - Source " https://raw.githubusercontent.com/Marvin700/Windows_Optimisation_Pack/main/config/Sophia_Win11.ps1" - Destination " $ScriptFolder \Sophia_Script\Sophia.ps1" }
149
149
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
151
151
Expand-Archive $env: temp \Sophia.zip $env: temp - force
152
152
Move-Item - Path $env: temp \" Sophia_Script*" - Destination $ScriptFolder \Sophia_Script\
153
153
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 }
189
189
function WindowsCleanup {
190
190
Clear-Host
191
191
gpupdate.exe / force
192
+ ipconfig / flushdns
192
193
$Key = Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches
193
194
ForEach ($result in $Key )
194
195
{If ($result.name -eq " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\DownloadsFolder" ){}Else {
195
196
$Regkey = ' HKLM:' + $result.Name.Substring ( 18 )
196
197
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
197
202
Clear-BCCache - Force - ErrorAction SilentlyContinue
198
203
Get-ChildItem - Path $env: temp - Recurse - Force - ErrorAction SilentlyContinue | Remove-Item - Recurse
199
204
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
205
210
Get-ChildItem - Path $env: LOCALAPPDATA \NVIDIA\DXCache - Recurse - Force - ErrorAction SilentlyContinue | Remove-Item - Recurse
206
211
Get-ChildItem - Path $env: LOCALAPPDATA \NVIDIA\GLCache - Recurse - Force - ErrorAction SilentlyContinue | Remove-Item - Recurse
207
212
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
208
216
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
209
219
$EscapefromTarkov = (Get-ItemProperty - Path ' HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\EscapeFromTarkov' - Name ' InstallLocation' ).InstallLocation
210
220
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
211
224
$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
212
228
$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}
215
230
lodctr / r
216
231
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}
218
235
219
236
function Runtime {
220
237
winget source update | Out-Null
@@ -225,7 +242,7 @@ IF(!($InstalledSoftware -Contains "Microsoft Windows Desktop Runtime - 7.0.0 (x6
225
242
winget install -- id= Microsoft.DirectX -- exact -- accept- source- agreements}
226
243
227
244
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
229
246
Expand-Archive $env: temp \FanControl.zip " C:\Program Files\FanControl" - force
230
247
Remove-Item - Path $env: temp \FanControl.zip - Force - Recurse
231
248
$WshShell = New-Object - comObject WScript.Shell
@@ -243,7 +260,7 @@ $Shortcut.TargetPath = "C:\Program Files\AutoActions\AutoActions.exe"
243
260
$Shortcut.Save () }
244
261
245
262
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 "
247
264
Expand-Archive $env: temp \DS4Windows.zip " C:\Program Files\" - force
248
265
Remove-Item - Path $env: temp \DS4Windows.zip - Force - Recurse
249
266
$WshShell = New-Object - comObject WScript.Shell
@@ -530,8 +547,8 @@ Finish
530
547
# SIG # Begin signature block
531
548
# MIIFiwYJKoZIhvcNAQcCoIIFfDCCBXgCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
532
549
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
533
- # AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQULxxa4KM2eZS8DeyMe43lHaCE
534
- # DU2gggMcMIIDGDCCAgCgAwIBAgIQJBEmIU6B /6pL+Icl+8AGsDANBgkqhkiG9w0B
550
+ # AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUOBufR16vHOptTI6QyQSJYO4p
551
+ # mCSgggMcMIIDGDCCAgCgAwIBAgIQJBEmIU6B /6pL+Icl+8AGsDANBgkqhkiG9w0B
535
552
# AQsFADAkMSIwIAYDVQQDDBlXaW5kb3dzX09wdGltaXNhdGlvbl9QYWNrMB4XDTIy
536
553
# MTAwMzA5NTA0MloXDTMwMTIzMTIyMDAwMFowJDEiMCAGA1UEAwwZV2luZG93c19P
537
554
# cHRpbWlzYXRpb25fUGFjazCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
@@ -551,11 +568,11 @@ Finish
551
568
# JDEiMCAGA1UEAwwZV2luZG93c19PcHRpbWlzYXRpb25fUGFjawIQJBEmIU6B/6pL
552
569
# +Icl+8AGsDAJBgUrDgMCGgUAoHgwGAYKKwYBBAGCNwIBDDEKMAigAoAAoQKAADAZ
553
570
# 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 ==
561
578
# SIG # End signature block
0 commit comments