diff --git a/Windows_Optimisation_Pack.ps1 b/Windows_Optimisation_Pack.ps1 new file mode 100644 index 0000000..f9ee57d --- /dev/null +++ b/Windows_Optimisation_Pack.ps1 @@ -0,0 +1,413 @@ +$Host.UI.RawUI.WindowTitle = "Windows_Optimisation_Pack" +$WindowsVersion = (Get-WmiObject -class Win32_OperatingSystem).Caption +if (!(Test-Path $env:temp\Windows_Optimisation_Pack)) {New-Item -Path $env:temp\Windows_Optimisation_Pack -ItemType Directory} +$ScriptFolder = "$env:temp\Windows_Optimisation_Pack" + +function WindowsTweaks_Services{ +Stop-Service "WpcMonSvc" +Stop-Service "SharedRealitySvc" +Stop-Service "Fax" +Stop-Service "autotimesvc" +Stop-Service "wisvc" +Stop-Service "SDRSVC" +Stop-Service "MixedRealityOpenXRSvc" +Stop-Service "WalletService" +Stop-Service "SmsRouter" +Stop-Service "SharedAccess" +Stop-Service "MapsBroker" +Stop-Service "PhoneSvc" +Stop-Service "ScDeviceEnum" +Stop-Service "icssvc" +Stop-Service "edgeupdatem" +Stop-Service "edgeupdate" +Stop-Service "MicrosoftEdgeElevationService" +Stop-Service "RetailDemo" +Stop-Service "MessagingService" +Stop-Service "PimIndexMaintenanceSvc" +Stop-Service "OneSyncSvc" +Stop-Service "UnistoreSvc" +Stop-Service "DiagTrack" +Stop-Service "dmwappushservice" +Stop-Service "diagnosticshub.standardcollector.service" +Stop-Service "diagsvc" +Stop-Service "WerSvc" +Stop-Service "wercplsupport" +Set-Service "WpcMonSvc" -StartupType Disabled +Set-Service "SharedRealitySvc" -StartupType Disabled +Set-Service "Fax" -StartupType Disabled +Set-Service "autotimesvc" -StartupType Disabled +Set-Service "wisvc" -StartupType Disabled +Set-Service "SDRSVC" -StartupType Disabled +Set-Service "MixedRealityOpenXRSvc" -StartupType Disabled +Set-Service "WalletService" -StartupType Disabled +Set-Service "SmsRouter" -StartupType Disabled +Set-Service "SharedAccess" -StartupType Disabled +Set-Service "MapsBroker" -StartupType Disabled +Set-Service "PhoneSvc" -StartupType Disabled +Set-Service "ScDeviceEnum" -StartupType Disabled +Set-Service "TabletInputService" -StartupType Disabled +Set-Service "icssvc" -StartupType Disabled +Set-Service "edgeupdatem" -StartupType Disabled +Set-Service "edgeupdate" -StartupType Disabled +Set-Service "MicrosoftEdgeElevationService" -StartupType Disabled +Set-Service "RetailDemo" -StartupType Disabled +Set-Service "MessagingService" -StartupType Disabled +Set-Service "PimIndexMaintenanceSvc" -StartupType Disabled +Set-Service "OneSyncSvc" -StartupType Disabled +Set-Service "UnistoreSvc" -StartupType Disabled +Set-Service "DiagTrack" -StartupType Disabled +Set-Service "dmwappushservice" -StartupType Disabled +Set-Service "diagnosticshub.standardcollector.service" -StartupType Disabled +Set-Service "diagsvc" -StartupType Disabled +Set-Service "WerSvc" -StartupType Disabled +Set-Service "wercplsupport" -StartupType Disabled } + +function WindowsTweaks_Registry{ +Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "SmoothMouseXCurve" ([byte[]](0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0xCC, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, +0x80, 0x99, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x66, 0x26, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x33, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00)) +Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "SmoothMouseYCurve" ([byte[]](0x00, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, +0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xA8, 0x00, 0x00, +0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00)) +New-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseSensitivity" -Type "DWORD" -Value 10 -Force +New-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseSpeed" -Type "DWORD" -Value 0 -Force +New-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseTrails" -Type "DWORD" -Value 0 -Force +New-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold1" -Type "DWORD" -Value 0 -Force +New-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold2" -Type "DWORD" -Value 0 -Force +Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\activity" -Name "Value" -Value "Deny" -Force +Set-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\DiagTrack" -Name "Start" -Type "DWORD" -Value 4 -Force +Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\dmwappushservice" -Name "Start" -Type "DWORD" -Value 4 -Force +Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\diagnosticshub.standardcollector.service" -Name "Start" -Type "DWORD" -Value 4 -Force +Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Value 0 -Type "DWORD" -Force +Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type "DWORD" -Value 0 -Force +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type "DWORD" -Value 0 -Force +Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "LimitEnhancedDiagnosticDataWindowsAnalytics" -Type "DWORD" -Value 0 -Force +Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type "DWORD" -Value 0 -Force +Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsSelfHost\UI\Visibility" -Name "HideInsiderPage" -Type "DWORD" -Value "1" -Force } + +function WindowsTweaks_Tasks{ +Get-ScheduledTask -TaskName Consolidator | Disable-ScheduledTask -ErrorAction SilentlyContinue +Get-ScheduledTask -TaskName UsbCeip | Disable-ScheduledTask -ErrorAction SilentlyContinue +Get-ScheduledTask -TaskName DmClient | Disable-ScheduledTask -ErrorAction SilentlyContinue +Get-ScheduledTask -TaskName DmClientOnScenarioDownload | Disable-ScheduledTask -ErrorAction SilentlyContinue +Get-ScheduledTask -TaskPath "\Microsoft\Windows\Customer Experience Improvement Program\" | Disable-ScheduledTask +schtasks /change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /DISABLE +schtasks /change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /DISABLE +schtasks /change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /DISABLE } +function WindowsTweaks_Features{ +dism /Online /Disable-Feature /FeatureName:"TelnetClient" /NoRestart +dism /Online /Disable-Feature /FeatureName:"WCF-TCP-PortSharing45" /NoRestart +dism /Online /Disable-Feature /FeatureName:"SmbDirect" /NoRestart +dism /Online /Disable-Feature /FeatureName:"TFTP" /NoRestart +dism /Online /Disable-Feature /FeatureName:"Microsoft-Hyper-V-All" /NoRestart +dism /Online /Disable-Feature /FeatureName:"Microsoft-Hyper-V-Management-Clients" /NoRestart +dism /Online /Disable-Feature /FeatureName:"Microsoft-Hyper-V-Tools-All" /NoRestart +dism /Online /Disable-Feature /FeatureName:"Microsoft-Hyper-V-Management-PowerShell" /NoRestart } + +function WindowsTweaks_Index{ +Get-WmiObject -Class Win32_Volume -Filter "DriveLetter='C:'" | Set-WmiInstance -Arguments @{IndexingEnabled=$False} +Get-WmiObject -Class Win32_Volume -Filter "DriveLetter='D:'" | Set-WmiInstance -Arguments @{IndexingEnabled=$False} +Get-WmiObject -Class Win32_Volume -Filter "DriveLetter='E:'" | Set-WmiInstance -Arguments @{IndexingEnabled=$False} +Get-WmiObject -Class Win32_Volume -Filter "DriveLetter='F:'" | Set-WmiInstance -Arguments @{IndexingEnabled=$False} } + +function TakeOwnership{ +New-Item "HKLM:\SOFTWARE\Classes\*\shell\TakeOwnership" -force -ea SilentlyContinue +New-Item "HKLM:\SOFTWARE\Classes\*\shell\TakeOwnership\command" -force -ea SilentlyContinue +New-Item "HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership" -force -ea SilentlyContinue +New-Item "HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership\command" -force -ea SilentlyContinue +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\*\shell\TakeOwnership' -Name '(default)' -Value 'Take Ownership' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\*\shell\TakeOwnership' -Name 'HasLUAShield' -Value '' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\*\shell\TakeOwnership' -Name 'NoWorkingDirectory' -Value '' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\*\shell\TakeOwnership' -Name 'Position' -Value 'middle' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\*\shell\TakeOwnership\command' -Name '(default)' -Value 'powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList ''/c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-3-4:F /c /l'' -Verb runAs' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\*\shell\TakeOwnership\command' -Name 'IsolatedCommand' -Value 'powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList ''/c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-3-4:F /c /l'' -Verb runAs' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership' -Name '(default)' -Value 'Take Ownership' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership' -Name 'AppliesTo' -Value 'NOT (System.ItemPathDisplay:="C:\Users" OR System.ItemPathDisplay:="C:\ProgramData" OR System.ItemPathDisplay:="C:\Windows" OR System.ItemPathDisplay:="C:\Windows\System32" OR System.ItemPathDisplay:="C:\Program Files" OR System.ItemPathDisplay:="C:\Program Files (x86)")' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership' -Name 'HasLUAShield' -Value '' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership' -Name 'NoWorkingDirectory' -Value '' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership' -Name 'Position' -Value 'middle' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership\command' -Name '(default)' -Value 'powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList ''/c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-3-4:F /c /l /q'' -Verb runAs' -PropertyType String -Force -ea SilentlyContinue; +New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Classes\Directory\shell\TakeOwnership\command' -Name 'IsolatedCommand' -Value 'powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList ''/c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-3-4:F /c /l /q'' -Verb runAs' -PropertyType String -Force -ea SilentlyContinue;} + +function SophiaScript{ +Clear-Host +IF($WindowsVersion -eq "Microsoft Windows 11 Home" -Or $WindowsVersion -eq "Microsoft Windows 11 Pro") { +Start-BitsTransfer -Source "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/6.2.3/Sophia.Script.for.Windows.11.v6.2.3.zip" -Destination $env:temp\Sophia.zip +Expand-Archive $env:temp\Sophia.zip $env:temp -force +Move-Item -Path $env:temp\"Sophia_Script*" -Destination $ScriptFolder\Sophia_Script\ +Start-BitsTransfer -Source "https://raw.githubusercontent.com/Marvin700/Windows_Optimisation_Pack/main/config/Sophia_Win11.ps1" -Destination "$ScriptFolder\Sophia_Script\Sophia.ps1" } +else { IF($WindowsVersion -eq "Microsoft Windows 10 Home" -Or $WindowsVersion -eq "Microsoft Windows 10 Pro") { +Start-BitsTransfer -Source "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/6.2.3/Sophia.Script.for.Windows.10.v5.14.3.zip" -Destination $env:temp\Sophia.zip +Expand-Archive $env:temp\Sophia.zip $env:temp -force +Move-Item -Path $env:temp\"Sophia_Script*" -Destination $ScriptFolder\Sophia_Script\ +Start-BitsTransfer -Source "https://raw.githubusercontent.com/Marvin700/Windows_Optimisation_Pack/main/config/Sophia_Win10.ps1" -Destination "$ScriptFolder\Sophia_Script\Sophia.ps1" } } +Powershell.exe -executionpolicy Bypass $ScriptFolder\Sophia_Script\Sophia.ps1 +REG ADD "HKLM\SOFTWARE\Windows_Optimisation_Pack\" /V "Sophia_Script" /T REG_DWORD /D 1 /F } + +function ooShutup{ +Start-BitsTransfer -Source "https://raw.githubusercontent.com/Marvin700/Windows_Optimisation_Pack/main/config/ooshutup10.cfg" -Destination "$ScriptFolder\ooshutup10.cfg" +Start-BitsTransfer -Source "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -Destination $ScriptFolder\OOSU10.exe +Set-Location $ScriptFolder +.\OOSU10.exe ooshutup10.cfg /quiet } + +function SystemPoint{ +vssadmin delete shadows /all /quiet +Enable-ComputerRestore -Drive "C:\" +REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /V "SystemRestorePointCreationFrequency" /T REG_DWORD /D 0 /F +Checkpoint-Computer -Description "Windows_Optimisation_Pack" -RestorePointType MODIFY_SETTINGS +REG DELETE "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /V "SystemRestorePointCreationFrequency" /F } + +function Tests{ +IF(!($WindowsVersion -eq "Microsoft Windows 11 Home" -Or $WindowsVersion -eq "Microsoft Windows 11 Pro")) { +IF(!($WindowsVersion -eq "Microsoft Windows 10 Home" -Or $WindowsVersion -eq "Microsoft Windows 10 Pro")) { +Write-Warning " No supported operating system! Windows 10 or Windows 11 required" +Write-Warning " The script will be closed in 20 seconds" +Start-Sleep 20;exit}} +if ((Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending")){ +Write-Warning " Reboot Pending !" +Write-Warning " The script will be closed in 20 seconds" +Start-Sleep 20;exit} +If (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")){ +Write-Warning " No admin rights available" +Write-Warning " The script will be closed in 20 seconds" +Start-Sleep 20;exit} +if ((Test-Path "HKLM:\SOFTWARE\Windows_Optimisation_Pack")){ +Write-Warning " The system has already been optimised by the Windows_Optimisation_Pack" +"Do you really want to continue?" +$weitermachen = Read-Host "Ja oder Nein ?" +IF(!($weitermachen -eq "Ja" -Or $weitermachen -eq "j" -Or $weitermachen -eq "JA" -Or $weitermachen -eq "y" -Or $weitermachen -eq "yes")) { +Write-Warning " The script will be closed in 20 seconds" +Start-Sleep 20;exit}} } + +function Autoruns{ +Start-BitsTransfer -Source "https://download.sysinternals.com/files/Autoruns.zip" -Destination $env:temp\Autoruns.zip +Expand-Archive $env:temp\Autoruns.zip $env:temp +Start-Process $env:temp\Autoruns64.exe } + +function WindowsCleanup{ +Clear-Host +gpupdate.exe /force +Get-ChildItem -Path $ENV:userprofile\AppData\Local\Temp *.* -Recurse | Remove-Item -Force -Recurse +Get-ChildItem -Path $env:windir\Prefetch *.* -Recurse | Remove-Item -Force -Recurse +Get-ChildItem -Path $env:ProgramData\Microsoft\Windows\RetailDemo\* -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Recurse +Remove-Item -Path $env:windir\Temp\* -Recurse -Force -ErrorAction SilentlyContinue +Clear-BCCache -Force -ErrorAction SilentlyContinue +lodctr /r +lodctr /r +Cleanmgr /sagerun:65535 +Cleanmgr /sagerun:1221 } + +function Runtime{ +winget source update +winget install --id=Microsoft.VCRedist.2015+.x64 --exact --accept-source-agreements +winget install --id=Microsoft.VCRedist.2015+.x86 --exact --accept-source-agreements +winget install --id=Microsoft.dotNetFramework --exact --accept-source-agreements +winget install --id=Microsoft.DotNet.DesktopRuntime.6 --architecture x64 --exact --accept + +function AutoActions{ +Start-BitsTransfer -Source "https://github.com/Codectory/AutoActions/releases/download/1.9.19/Release_AutoActions_1.9.19_x64.zip" -Destination $env:temp\AutoActions.zip +Expand-Archive $env:temp\AutoActions.zip "C:\Program Files\AutoActions" -force +Remove-Item -Path $env:temp\AutoActions.zip -Force -Recurse +$WshShell = New-Object -comObject WScript.Shell +$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\AutoActions.lnk") +$Shortcut.TargetPath = "C:\Program Files\AutoActions\AutoActions.exe" +$Shortcut.Save() } + +function Controller{ +Start-BitsTransfer -Source "https://github.com/Ryochan7/DS4Windows/releases/download/v3.1.9/DS4Windows_3.1.9_x64.zip" -Destination "$env:temp\DS4Windows.zip " +Expand-Archive $env:temp\DS4Windows.zip "C:\Program Files\" -force +Remove-Item -Path $env:temp\DS4Windows.zip -Force -Recurse +$WshShell = New-Object -comObject WScript.Shell +$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\Controller.lnk") +$Shortcut.TargetPath = "C:\Program Files\DS4Windows\DS4Windows.exe" +$Shortcut.Save() } + +function Process_Lasso{ +Start-BitsTransfer -Source "https://dl.bitsum.com/files/processlassosetup64.exe" -Destination $env:temp\ProcesslassoSetup64.exe +Start-Process -FilePath "$env:temp\ProcesslassoSetup64.exe" -ArgumentList "/S /language=German" }t-source-agreements +winget install --id=Microsoft.DotNet.DesktopRuntime.6 --architecture x86 --exact --accept-source-agreements +winget install --id=Microsoft.DirectX --exact --accept-source-agreements } + +function HDD_Name{Label C: Windows} + +function Winrar{winget install --id=RARLab.WinRAR --exact --accept-source-agreements} + +function Finish{ +REG ADD "HKLM\SOFTWARE\Windows_Optimisation_Pack\" /V "Successful" /T REG_DWORD /D 1 /F +Clear-Host +" Your system has been successfully optimised by the Windows_Optimisation_Pack" +"" +Write-Warning " The computer will restart automatically in 60 seconds !!!!" +Start-Sleep 60 +Restart-Computer } + +function GUI { +[reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null +[reflection.assembly]::loadwithpartialname("System.Drawing") | Out-Null +$handler_button_Click= { +if ($BOX_SophiaScript.Checked) {$SophiaScript = "true"} +if ($BOX_ooShutup.Checked) {$ooShutup = "true"} +if ($BOX_WindowsTweaks_Registry.Checked) {$WindowsTweaks_Registry = "true"} +if ($BOX_WindowsTweaks_Tasks.Checked) {$WindowsTweaks_Tasks = "true"} +if ($BOX_WindowsTweaks_Features.Checked) {$WindowsTweaks_Features = "true"} +if ($BOX_WindowsTweaks_Services.Checked) {$WindowsTweaks_Services = "true"} +if ($BOX_Runtime.Checked) {$Runtime = "true"} +if ($BOX_TakeOwnership.Checked) {$TakeOwnership = "true"} +if ($BOX_Winrar.Checked) {$Winrar = "true"} +if ($BOX_AutoActions.Checked) {$AutoActions = "true"} +if ($BOX_Controller.Checked) {$Controller = "true"} +if ($BOX_Process_Lasso.Checked) {$Process_Lasso = "true"} $Form.Close()} +$form = New-Object System.Windows.Forms.Form +$form.Size = New-Object Drawing.Point 370,410 +$form.text = "Windows_Optimisation_Pack" +$Titel = New-Object Windows.Forms.Label +$Titel.Location = New-Object Drawing.Point 90,15 +$Titel.Size = New-Object Drawing.Point 200,15 +$Titel.text = "Windows_Optimisation_Pack" +$Titel_Tweaks = New-Object Windows.Forms.Label +$Titel_Tweaks.Size = New-Object Drawing.Point 135,25 +$Titel_Tweaks.Location = New-Object Drawing.Point 50,55 +$Titel_Tweaks.text = "Tweaks" +$Titel_Extras = New-Object Windows.Forms.Label +$Titel_Extras.Size = New-Object Drawing.Point 135,25 +$Titel_Extras.Location = New-Object Drawing.Point 220,55 +$Titel_Extras.text = "Extras" +$BOX_SophiaScript = New-Object System.Windows.Forms.CheckBox +$BOX_SophiaScript.Size = New-Object Drawing.Point 135,25 +$BOX_SophiaScript.Location = New-Object Drawing.Point 27,88 +$BOX_SophiaScript.Text = "Sophia Script" +$BOX_SophiaScript.Checked = $true +$BOX_ooShutup = New-Object System.Windows.Forms.CheckBox +$BOX_ooShutup.Size = New-Object Drawing.Point 135,25 +$BOX_ooShutup.Location = New-Object Drawing.Point 27,119 +$BOX_ooShutup.Text = "O&O ShutUp10++" +$BOX_ooShutup.Checked = $true +$BOX_WindowsTweaks_Registry = New-Object System.Windows.Forms.CheckBox +$BOX_WindowsTweaks_Registry.Size = New-Object Drawing.Point 135,25 +$BOX_WindowsTweaks_Registry.Location = New-Object Drawing.Point 27,181 +$BOX_WindowsTweaks_Registry.Text = "Registry Tweaks" +$BOX_WindowsTweaks_Registry.Checked = $true +$BOX_WindowsTweaks_Tasks = New-Object System.Windows.Forms.CheckBox +$BOX_WindowsTweaks_Tasks.Size = New-Object Drawing.Point 135,25 +$BOX_WindowsTweaks_Tasks.Location = New-Object Drawing.Point 27,212 +$BOX_WindowsTweaks_Tasks.Text = "Deaktivate Tasks" +$BOX_WindowsTweaks_Tasks.Checked = $true +$BOX_WindowsTweaks_Features = New-Object System.Windows.Forms.CheckBox +$BOX_WindowsTweaks_Features.Size = New-Object Drawing.Point 135,25 +$BOX_WindowsTweaks_Features.Location = New-Object Drawing.Point 27,243 +$BOX_WindowsTweaks_Features.Text = "Disable Features" +$BOX_WindowsTweaks_Features.Checked = $true +$BOX_WindowsTweaks_Services = New-Object System.Windows.Forms.CheckBox +$BOX_WindowsTweaks_Services.Size = New-Object Drawing.Point 135,25 +$BOX_WindowsTweaks_Services.Location = New-Object Drawing.Point 27,274 +$BOX_WindowsTweaks_Services.Text = "Disable Services" +$BOX_WindowsTweaks_Services.Checked = $true +$BOX_Runtime = New-Object System.Windows.Forms.CheckBox +$BOX_Runtime.Size = New-Object Drawing.Point 135,25 +$BOX_Runtime.Location = New-Object Drawing.Point 200,88 +$BOX_Runtime.Text = "Runtime Comonents" +$BOX_Runtime.Checked = $true +$BOX_TakeOwnership = New-Object System.Windows.Forms.CheckBox +$BOX_TakeOwnership.Size = New-Object Drawing.Point 135,25 +$BOX_TakeOwnership.Location = New-Object Drawing.Point 200,119 +$BOX_TakeOwnership.Text = "TakeOwnership" +$BOX_TakeOwnership.Checked = $true +$BOX_Winrar = New-Object System.Windows.Forms.CheckBox +$BOX_Winrar.Size = New-Object Drawing.Point 135,25 +$BOX_Winrar.Location = New-Object Drawing.Point 200,181 +$BOX_Winrar.Text = "Install Winrar" +$BOX_Winrar.Checked = $true +$BOX_AutoActions = New-Object System.Windows.Forms.CheckBox +$BOX_AutoActions.Size = New-Object Drawing.Point 135,25 +$BOX_AutoActions.Location = New-Object Drawing.Point 200,212 +$BOX_AutoActions.Text = "Install AutoActions" +$BOX_AutoActions.Checked = $false +$BOX_Controller = New-Object System.Windows.Forms.CheckBox +$BOX_Controller.Size = New-Object Drawing.Point 135,25 +$BOX_Controller.Location = New-Object Drawing.Point 200,243 +$BOX_Controller.Text = "Install PS4 Controller" +$BOX_Controller.Checked = $false +$BOX_Process_Lasso = New-Object System.Windows.Forms.CheckBox +$BOX_Process_Lasso.Size = New-Object Drawing.Point 135,25 +$BOX_Process_Lasso.Location = New-Object Drawing.Point 200,274 +$BOX_Process_Lasso.Text = "Install Process Lasso" +$BOX_Process_Lasso.Checked = $false +$button = New-Object System.Windows.Forms.Button +$button.Text = "Start" +$button.Size = New-Object Drawing.Point 75,24 +$button.Location = New-Object Drawing.Point 135,320 +$button.add_Click($handler_button_Click) +$form.controls.add($Titel) +$form.controls.add($Titel_Tweaks) +$form.controls.add($Titel_Extras) +$form.Controls.Add($BOX_SophiaScript) +$form.Controls.Add($BOX_ooShutup) +$form.Controls.Add($BOX_WindowsTweaks_Registry) +$form.Controls.Add($BOX_WindowsTweaks_Tasks) +$form.Controls.Add($BOX_WindowsTweaks_Features) +$form.Controls.Add($BOX_WindowsTweaks_Services) +$form.Controls.Add($BOX_Runtime) +$form.Controls.Add($BOX_TakeOwnership) +$form.Controls.Add($BOX_Winrar) +$form.Controls.Add($BOX_AutoActions) +$form.Controls.Add($BOX_Controller) +$form.Controls.Add($BOX_Process_Lasso) +$form.Controls.Add($button) +$form.ShowDialog() | Out-Null } + +function Choice{ +if ($SophiaScript = "true"){SophiaScript} +if ($ooShutup = "true"){ooShutup} +if ($WindowsTweaks_Registry = "true"){WindowsTweaks_Registry} +if ($WindowsTweaks_Tasks = "true"){WindowsTweaks_Tasks} +if ($WindowsTweaks_Features = "true"){WindowsTweaks_Features} +if ($WindowsTweaks_Services = "true"){WindowsTweaks_Services} +if ($Runtime = "true"){Runtime} +if ($TakeOwnership = "true"){TakeOwnership} +if ($Winrar = "true"){Winrar} +if ($AutoActions = "true"){AutoActions} +if ($Controller = "true"){Controller} +if ($Process_Lasso = "true"){Process_Lasso} } + +Tests +GUI +SystemPoint +HDD_Name +Choice +Autoruns +WindowsCleanup +Finish +# SIG # Begin signature block +# MIIFiwYJKoZIhvcNAQcCoIIFfDCCBXgCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU5gbpN1bDlno8n0j6pgB/tPoj +# YZ2gggMcMIIDGDCCAgCgAwIBAgIQJBEmIU6B/6pL+Icl+8AGsDANBgkqhkiG9w0B +# AQsFADAkMSIwIAYDVQQDDBlXaW5kb3dzX09wdGltaXNhdGlvbl9QYWNrMB4XDTIy +# MTAwMzA5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KwYBBAGCNwIBDDEKMAigAoAAoQKAADAZ +# BgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgorBgEEAYI3AgELMQ4wDAYKKwYB +# BAGCNwIBFTAjBgkqhkiG9w0BCQQxFgQU/3dhEng5J5HmSBTMd2+E2g1H9twwDQYJ +# KoZIhvcNAQEBBQAEggEAhbDbyWy75zyPdSJY4daHQuKIG7ThKn6Lkhbu3C9HQjTb +# 36kvDf87Z91Pvmn3BjJpQDBIhqDFXHHbNDB6JIpQ29BugeSubEyiBNQsN6g/3gwb +# KR/L4dSSxGh6XVTCQZ4MbwCjQtAvl9Waa0dVf5kxYO3Sksk0PcdUUM104McCcz3R +# WoamUNSNZwCHAwQm15WXoy5bRGGv5i+HbvG4cWrQhzhtpx+NAI6v6Hf5QoQvXYi6 +# VNw2qHxbahxObDl842K3FdFCDFKSX08et81ABXqd9dT9Gd6W+0BvZnQIYJJCrUOe +# qn/tcyvcSp8eOngwZ+3htxMv/Yr6IasjMrOD7M67OQ== +# SIG # End signature block diff --git a/config/Sophia_Win10.ps1 b/config/Sophia_Win10.ps1 new file mode 100644 index 0000000..d6b46bc --- /dev/null +++ b/config/Sophia_Win10.ps1 @@ -0,0 +1,464 @@ +<# + Version: v5.14.3 + + Copyright (c) 2014—2022 farag + Copyright (c) 2019—2022 farag & Inestic + + https://github.com/farag2 + https://github.com/Inestic +#> + +[CmdletBinding()] +param +( + [Parameter(Mandatory = $false)] + [string[]] + $Functions +) + +Clear-Host + +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022" + +Remove-Module -Name Sophia -Force -ErrorAction Ignore +Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force + +Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia + +if ($Functions) +{ + Invoke-Command -ScriptBlock {Checkings} + + foreach ($Function in $Functions) + { + Invoke-Expression -Command $Function + } + + # The "RefreshEnvironment" and "Errors" functions will be executed at the end + Invoke-Command -ScriptBlock {Errors; RefreshEnvironment} + + exit +} + + +# Turn off the diagnostics tracking scheduled tasks +ScheduledTasks -Disable + +#Uninstall UWP apps using the pop-up dialog box +UninstallUWPApps + +#Disable the Windows features using the pop-up dialog box +WindowsFeatures -Disable + +#Uninstall optional features using the pop-up dialog box +WindowsCapabilities -Uninstall + +# Disable the "Connected User Experiences and Telemetry" service (DiagTrack), and block the connection for the Unified Telemetry Client Outbound Traffic +# Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore +DiagTrackService -Disable + +# Set the diagnostic data collection to minimum +DiagnosticDataLevel -Minimal + +# Turn off the Windows Error Reporting +ErrorReporting -Disable + +# Change the feedback frequency to "Never" +FeedbackFrequency -Never + +# Do not use sign-in info to automatically finish setting up device and reopen apps after an update or restart +SigninInfo -Disable + +# Do not let websites provide locally relevant content by accessing language list +LanguageListAccess -Disable + +# Do not allow apps to use advertising ID to make ads more interresting to you based on your app usage +AdvertisingID -Disable + +# Hide the Windows welcome experiences after updates and occasionally when I sign in to highlight what's new and suggested +WindowsWelcomeExperience -Hide + +# Do not get tips, tricks, and suggestions as you use Windows +WindowsTips -Disable + +# Hide from me suggested content in the Settings app +SettingsSuggestedContent -Hide + +# Turn off automatic installing suggested apps +AppsSilentInstalling -Disable + +# Do not suggest ways I can finish setting up my device to get the most out of Windows +WhatsNewInWindows -Disable + +# Do not let Microsoft offer you tailored expereinces based on the diagnostic data setting you have chosen +TailoredExperiences -Disable + +# Disable Bing search in the Start Menu +BingSearch -Disable + +# Hide the "This PC" icon on Desktop (default value) +ThisPC -Hide + +# Do not use item check boxes +# Не использовать флажки для выбора элементов +CheckBoxes -Disable + +# Show hidden files, folders, and drives +HiddenItems -Enable + +# Show the file name extensions +FileExtensions -Show + +# Show folder merge conflicts +MergeConflicts -Show + +# Hide Cortana button on the taskbar +CortanaButton -Hide + +# Do not show sync provider notification within File Explorer +OneDriveFileExplorerAd -Hide + +# When I snap a window, do not show what I can snap next to it +SnapAssist -Disable + +# Show the file transfer dialog box in the detailed mode +FileTransferDialog -Detailed + +# Expand the File Explorer ribbon +FileExplorerRibbon -Expanded + +# Display the recycle bin files delete confirmation dialog +RecycleBinDeleteConfirmation -Enable + +# Hide the "3D Objects" folder in "This PC" and Quick access +3DObjects -Hide + +# Hide recently used files in Quick access +QuickAccessRecentFiles -Hide + +# Hide frequently used folders in Quick access +QuickAccessFrequentFolders -Hide + +# Hide the search on the taskbar +TaskbarSearch -Hide + +# Hide the Task View button on the taskbar +TaskViewButton -Hide + +# Hide search highlights +SearchHighlights -Hide + +# Hide People on the taskbar +PeopleTaskbar -Hide + +# Hide seconds on the taskbar clock (default value) +SecondsInSystemClock -Hide + +# Hide the Windows Ink Workspace button on the taskbar +WindowsInkWorkspace -Hide + +# Hide all icons in the notification area (default value) +NotificationAreaIcons -Hide + +# Hide the Meet Now icon in the notification area +MeetNow -Hide + +# Disable "News and Interests" on the taskbar +NewsInterests -Disable + +# Unpin the "Microsoft Edge", "Microsoft Store", or "Mail" shortcuts from the taskbar +UnpinTaskbarShortcuts -Shortcuts Edge, Store, Mail + +# View the Control Panel icons by category (default value) +ControlPanelView -Category + +# Set the default Windows mode to dark +WindowsColorMode -Dark + +# Set the default app mode to dark +AppColorMode -Dark + +# Hide the "New App Installed" indicator +# Скрыть уведомление "Установлено новое приложение" +NewAppInstalledNotification -Hide + +# Hide first sign-in animation after the upgrade +FirstLogonAnimation -Disable + +# Set the quality factor of the JPEG desktop wallpapers to maximum +JPEGWallpapersQuality -Max + +# Start Task Manager in the expanded mode +TaskManagerWindow -Expanded + +# Show a notification when your PC requires a restart to finish updating +RestartNotification -Show + +# Do not add the "- Shortcut" suffix to the file name of created shortcuts +ShortcutsSuffix -Disable + +# Use the Print screen button to open screen snipping +PrtScnSnippingTool -Enable + +# Do not use a different input method for each app window (default value) +AppsLanguageSwitch -Disable + +# When I grab a windows's title bar and shake it, minimize all other windows (default value) +AeroShaking -Enable + +#region OneDrive +# Uninstall OneDrive. The OneDrive user folder won't be removed +OneDrive -Uninstall + +# Turn on Storage Sense +StorageSense -Enable + +# Run Storage Sense every month +StorageSenseFrequency -Month + +# Delete temporary files that apps aren't using +StorageSenseTempFiles -Enable + +# Disable hibernation. Do not recommend turning it off on laptops +Hibernation -Disable + +# Disable the Windows 260 characters path limit +Win32LongPathLimit -Disable + +# Display the Stop error information on the BSoD +BSoDStopError -Enable + +# Choose when to be notified about changes to your computer: never notify +AdminApprovalMode -Never + +# Turn on access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled +MappedDrivesAppElevatedAccess -Enable + +# Turn off Delivery Optimization +DeliveryOptimization -Disable + +# Always wait for the network at computer startup and logon for workgroup networks +WaitNetworkStartup -Enable + +# Do not let Windows manage my default printer +WindowsManageDefaultPrinter -Disable + +# Receive updates for other Microsoft products when you update Windows +UpdateMicrosoftProducts -Enable + +# Set power plan on "Balanced" (default value) +PowerPlan -Balanced + +# Do not allow the computer to turn off the network adapters to save power +NetworkAdaptersSavePower -Disable + +# Disable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections +IPv6Component -Disable + +# Save screenshots by pressing Win+PrtScr on the Desktop +WinPrtScrFolder -Desktop + +# Run troubleshooter automatically, then notify me +RecommendedTroubleshooting -Automatically + +# Launch folder windows in a separate process +FoldersLaunchSeparateProcess -Enable + +# Disable and delete reserved storage after the next update installation +ReservedStorage -Disable + +# Disable help lookup via F1 +F1HelpPage -Disable + +# Enable Num Lock at startup +NumLock -Enable + +# Do not allow the shortcut key to Start Sticky Keys by pressing the the Shift key 5 times +StickyShift -Disable + +# Don't use AutoPlay for all media and devices +Autoplay -Disable + +# Enable thumbnail cache removal (default value) +# Включить удаление кэша миниатюр (значение по умолчанию) +ThumbnailCacheRemoval -Enable + +# Turn off automatically saving my restartable apps when signing out and restart them after signing in (default value) +SaveRestartableApps -Disable + +# Enable "Network Discovery" and "File and Printers Sharing" for workgroup networks +NetworkDiscovery -Enable + +# Automatically adjust active hours for me based on daily usage +ActiveHours -Automatically + +# Restart this device as soon as possible when a restart is required to install an update +RestartDeviceAfterUpdate -Enable + +# Uninstall the "PC Health Check" app and prevent it from installing in the future +UninstallPCHealthCheck + +# Hide recently added apps in the Start menu +RecentlyAddedApps -Hide + +# Hide app suggestions in the Start menu +AppSuggestions -Hide + +# Run the Windows PowerShell shortcut from the Start menu as Administrator +RunPowerShellShortcut -Elevated + +# Unpin all the Start tiles +PinToStart -UnpinAll + +# Disable Cortana autostarting +CortanaAutostart -Disable + +# Do not let UWP apps run in the background +BackgroundUWPApps -Disable + +# Check for UWP apps updates +CheckUWPAppsUpdates + +# Disable Xbox Game Bar +XboxGameBar -Disable + +# Disable Xbox Game Bar tips +XboxGameTips -Disable + +# Turn on hardware-accelerated GPU scheduling. Restart needed +GPUScheduling -Enable + +# Create the "Windows Cleanup" scheduled task for cleaning up Windows unused files and updates +# A native interactive toast notification pops up every 30 days. The task runs every 30 days +CleanupTask -Register + +# Create the "SoftwareDistribution" scheduled task for cleaning up the %SystemRoot%\SoftwareDistribution\Download folder +# The task will wait until the Windows Updates service finishes running. The task runs every 90 days +SoftwareDistributionTask -Register + +# Create the "Temp" scheduled task for cleaning up the %TEMP% folder +# Only files older than one day will be deleted. The task runs every 60 days +TempTask -Register + +# Disable Microsoft Defender Exploit Guard network protection (default value) +NetworkProtection -Disable + +# Disable detection for potentially unwanted applications and block them (default value) +PUAppsDetection -Disable + +# Disable sandboxing for Microsoft Defender (default value) +DefenderSandbox -Disable + +# Dismiss Microsoft Defender offer in the Windows Security about signing in Microsoft account +DismissMSAccount + +# Dismiss Microsoft Defender offer in the Windows Security about turning on the SmartScreen filter for Microsoft Edge +DismissSmartScreenFilter + +# Enable events auditing generated when a process is created (starts) +AuditProcess -Enable + +# Include command line in process creation events +CommandLineProcessAudit -Enable + +# Create the "Process Creation" сustom view in the Event Viewer to log executed processes and their arguments +EventViewerCustomView -Enable + +# Enable logging for all Windows PowerShell modules +PowerShellModulesLogging -Enable + +# Enable logging for all PowerShell scripts input to the Windows PowerShell event log +PowerShellScriptsLogging -Enable + +# Microsoft Defender SmartScreen doesn't marks downloaded files from the Internet as unsafe +AppsSmartScreen -Disable + +# Disable the Attachment Manager marking files that have been downloaded from the Internet as unsafe +SaveZoneInformation -Disable + +# Disable Windows Sandbox (default value) +WindowsSandbox -Disable + +# Show the "Extract all" item in the Windows Installer (.msi) context menu +MSIExtractContext -Show + +# Show the "Install" item in the Cabinet (.cab) filenames extensions context menu +CABInstallContext -Show + +# Hide the "Run as different user" item from the .exe filename extensions context menu (default value) +RunAsDifferentUserContext -Hide + +# Hide the "Cast to Device" item from the media files and folders context menu +CastToDeviceContext -Hide + +# Hide the "Share" item from the context menu +ShareContext -Hide + +# Hide the "Edit with Paint 3D" item from the media files context menu +EditWithPaint3DContext -Hide + +# Hide the "Edit with Photos" item from the media files context menu +EditWithPhotosContext -Hide + +# Hide the "Create a new video" item in the media files context menu +CreateANewVideoContext -Hide + +# Hide the "Edit" item from the images context menu +ImagesEditContext -Hide + +# Hide the "Print" item from the .bat and .cmd context menu +PrintCMDContext -Hide + +# Hide the "Include in Library" item from the folders and drives context menu +IncludeInLibraryContext -Hide + +# Hide the "Send to" item from the folders context menu +SendToContext -Hide + +# Hide the "Bitmap image" item from the "New" context menu +BitmapImageNewContext -Hide + +# Hide the "Rich Text Document" item from the "New" context menu +RichTextDocumentNewContext -Hide + +# Hide the "Compressed (zipped) Folder" item from the "New" context menu +CompressedFolderNewContext -Hide + +# Enable the "Open", "Print", and "Edit" context menu items for more than 15 items selected +MultipleInvokeContext -Enable + +# Hide the "Look for an app in the Microsoft Store" item in the "Open with" dialog +UseStoreOpenWith -Hide + +# SIG # Begin signature block +# MIIFiwYJKoZIhvcNAQcCoIIFfDCCBXgCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvN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VeXLCf44EiyxZ0vF20BWwvCosONptr1MyQXFI5azArQOU9BfhYL +# rJXoqIvVp1G2GWcfqZGLAoxnidVEN1ndnbkEFCpWeNcAkzGCAdkwggHVAgEBMDgw +# JDEiMCAGA1UEAwwZV2luZG93c19PcHRpbWlzYXRpb25fUGFjawIQJBEmIU6B/6pL +# +Icl+8AGsDAJBgUrDgMCGgUAoHgwGAYKKwYBBAGCNwIBDDEKMAigAoAAoQKAADAZ +# BgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgorBgEEAYI3AgELMQ4wDAYKKwYB +# BAGCNwIBFTAjBgkqhkiG9w0BCQQxFgQUXB97WGBYQQ5Hy+vb5SHGwJ0z/BQwDQYJ +# KoZIhvcNAQEBBQAEggEAYE9NKfNQWF96WgBbuauk0RW3Nr4R1yKyPWxpnnXrodiZ +# tmwGzpswgSdiwnUxq5rjbHolbBakA88Gd3fV3+0pUmZEZt0GJKYJAoTzuWzlzmor +# 0L52NV0EPqphpaX0Tp7irnwQsOMHCW/vLXHuNTyYClGQHWsd/XOqLBcPXIFoxyjH +# GC5x8jV4urlLRSnkgE7cwy1W9OT+BJArn7O/F6ObCGVj6tMP40hNlxtHI0DZwywK +# UZbBqG8gWj7T8lC7HPL5HMecCOPw7edj1Q7olMY3Vn2QNKQoe8WPu+M94ovXbzLy +# luB3K+bXhjGcef8YNq3SW04qJyiLPgsCFgfyZJ/rJA== +# SIG # End signature block diff --git a/config/Sophia_Win11.ps1 b/config/Sophia_Win11.ps1 new file mode 100644 index 0000000..cf24c4e --- /dev/null +++ b/config/Sophia_Win11.ps1 @@ -0,0 +1,434 @@ +<# + Version: v6.2.3 + + Copyright (c) 2014—2022 farag + Copyright (c) 2019—2022 farag & Inestic + + https://github.com/farag2 + https://github.com/Inestic +#> + +[CmdletBinding()] +param +( + [Parameter(Mandatory = $false)] + [string[]] + $Functions +) + +Clear-Host + +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2022" + +Remove-Module -Name Sophia -Force -ErrorAction Ignore +Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force + +Import-LocalizedData -BindingVariable Global:Localization -BaseDirectory $PSScriptRoot\Localizations -FileName Sophia + +if ($Functions) +{ + Invoke-Command -ScriptBlock {Checkings} + + foreach ($Function in $Functions) + { + Invoke-Expression -Command $Function + } + Invoke-Command -ScriptBlock {Errors; RefreshEnvironment} + + exit +} + + +# Turn off the diagnostics tracking scheduled tasks +ScheduledTasks -Disable + +# Uninstall UWP apps using the pop-up dialog box +UninstallUWPApps + +# Disable the Windows features using the pop-up dialog box +WindowsFeatures -Disable + +# Uninstall optional features using the pop-up dialog box +WindowsCapabilities -Uninstall + +# Disable the "Connected User Experiences and Telemetry" service (DiagTrack), and block the connection for the Unified Telemetry Client Outbound Traffic +# Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore +DiagTrackService -Disable + +# Set the diagnostic data collection to minimum +DiagnosticDataLevel -Minimal + +# Turn off the Windows Error Reporting +ErrorReporting -Disable + +# Change the feedback frequency to "Never" +FeedbackFrequency -Never + +# Do not use sign-in info to automatically finish setting up device after an update +SigninInfo -Disable + +# Do not let websites provide locally relevant content by accessing language list +LanguageListAccess -Disable + +# Do not let apps show me personalized ads by using my advertising ID +AdvertisingID -Disable + +# Hide the Windows welcome experiences after updates and occasionally when I sign in to highlight what's new and suggested +WindowsWelcomeExperience -Hide + +# Do not get tips and suggestions when I use Windows +WindowsTips -Disable + +# Hide from me suggested content in the Settings app +SettingsSuggestedContent -Hide + +# Turn off automatic installing suggested apps +AppsSilentInstalling -Disable + +# Disable suggestions on how I can set up my device +WhatsNewInWindows -Disable + +# Don't let Microsoft use your diagnostic data for personalized tips, ads, and recommendations +TailoredExperiences -Disable + +# Disable Bing search in the Start Menu +BingSearch -Disable + +# Hide the "This PC" icon on Desktop (default value) +ThisPC -Hide + +# Do not use item check boxes +CheckBoxes -Disable + +# Show hidden files, folders, and drives +HiddenItems -Enable + +# Show the file name extensions +FileExtensions -Show + +# Show folder merge conflicts +MergeConflicts -Show + +# Disable the File Explorer compact mode (default value) +FileExplorerCompactMode -Disable + +# Do not show sync provider notification within File Explorer +OneDriveFileExplorerAd -Hide + +# When I snap a window, do not show what I can snap next to it +SnapAssist -Disable + +# Show snap layouts when I hover over a windows's maximaze button (default value) +SnapAssistFlyout -Enable + +# Show the file transfer dialog box in the detailed mode +FileTransferDialog -Detailed + +# Display the recycle bin files delete confirmation dialog +RecycleBinDeleteConfirmation -Enable + +# Hide recently used files in Quick access +QuickAccessRecentFiles -Hide + +# Hide frequently used folders in Quick access +QuickAccessFrequentFolders -Hide + +# Set the taskbar alignment to the left +TaskbarAlignment -Left + +# Hide the search button from the taskbar +TaskbarSearch -Hide + +# Hide the Task view button from the taskbar +TaskViewButton -Hide + +# Hide the widgets icon on the taskbar +TaskbarWidgets -Hide + +# Hide the Chat icon (Microsoft Teams) on the taskbar +TaskbarChat -Hide + +# Unpin the "Microsoft Edge", "Microsoft Store" shortcuts from the taskbar +UnpinTaskbarShortcuts -Shortcuts Edge, Store + +# View the Control Panel icons by category (default value) +ControlPanelView -Category + +# Set the default Windows mode to dark +WindowsColorMode -Dark + +# Set the default app mode to dark +AppColorMode -Dark + +# Hide first sign-in animation after the upgrade +FirstLogonAnimation -Disable + +# Set the quality factor of the JPEG desktop wallpapers to maximum +JPEGWallpapersQuality -Max + +# Notify me when a restart is required to finish updating +RestartNotification -Show + +# Do not add the "- Shortcut" suffix to the file name of created shortcuts +ShortcutsSuffix -Disable + +# Use the Print screen button to open screen snipping +PrtScnSnippingTool -Enable + +# Do not use a different input method for each app window (default value) +AppsLanguageSwitch -Disable + +# When I grab a windows's title bar and shake it, minimize all other windows +AeroShaking -Enable + +# Uninstall OneDrive. The OneDrive user folder won't be removed +OneDrive -Uninstall + +# Turn on Storage Sense +StorageSense -Enable + +# Run Storage Sense every month +StorageSenseFrequency -Month + +# Turn on automatic cleaning up temporary system and app files +StorageSenseTempFiles -Enable + +# Disable hibernation. Do not recommend turning it off on laptops +Hibernation -Disable + +# Disable the Windows 260 characters path limit +Win32LongPathLimit -Disable + +# Display the Stop error information on the BSoD +BSoDStopError -Enable + +# Choose when to be notified about changes to your computer: never notify +AdminApprovalMode -Never + +# Turn on access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled +MappedDrivesAppElevatedAccess -Enable + +# Turn off Delivery Optimization +DeliveryOptimization -Disable + +# Always wait for the network at computer startup and logon for workgroup networks +WaitNetworkStartup -Enable + +# Do not let Windows manage my default printer +WindowsManageDefaultPrinter -Disable + +# Receive updates for other Microsoft products +UpdateMicrosoftProducts -Enable + +# Set power plan on "Balanced" (default value) +PowerPlan -Balanced + +# Do not allow the computer to turn off the network adapters to save power +NetworkAdaptersSavePower -Disable + +# Disable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections +IPv6Component -Disable + +# Save screenshots by pressing Win+PrtScr on the Desktop +WinPrtScrFolder -Desktop + +# Run troubleshooter automatically, then notify me +RecommendedTroubleshooting -Automatically + +# Launch folder windows in a separate process +FoldersLaunchSeparateProcess -Enable + +# Disable and delete reserved storage after the next update installation +ReservedStorage -Disable + +# Disable help lookup via F1 +F1HelpPage -Disable + +# Enable Num Lock at startup +NumLock -Enable + +# Turn off pressing the Shift key 5 times to turn Sticky keys +StickyShift -Disable + +# Don't use AutoPlay for all media and devices +Autoplay -Disable + +# Enable thumbnail cache removal (default value) +ThumbnailCacheRemoval -Enable + +# Turn off automatically saving my restartable apps and restart them when I sign back in (default value) +SaveRestartableApps -Disable + +# Enable "Network Discovery" and "File and Printers Sharing" for workgroup networks +NetworkDiscovery -Enable + +# Automatically adjust active hours for me based on daily usage +ActiveHours -Automatically + +# Restart as soon as possible to finish updating +RestartDeviceAfterUpdate -Enable + +# Set Windows Terminal as default terminal app to host the user interface for command-line applications +DefaultTerminalApp -WindowsTerminal + +# Unpin all Start apps +UnpinAllStartApps + +# Run the Windows PowerShell shortcut from the Start menu as Administrator +RunPowerShellShortcut -Elevated + +# Show more pins on Start (for 22509+ build only) +StartLayout -ShowMorePins + +# Disable Cortana autostarting +CortanaAutostart -Disable + +# Disable Microsoft Teams autostarting +TeamsAutostart -Disable + +# Check for UWP apps updates +CheckUWPAppsUpdates + +# Disable Xbox Game Bar +XboxGameBar -Disable + +# Disable Xbox Game Bar tips +# Отключить советы Xbox Game Bar +XboxGameTips -Disable + +# Turn on hardware-accelerated GPU scheduling. Restart needed +GPUScheduling -Enable + +# Create the "Windows Cleanup" scheduled task for cleaning up Windows unused files and updates +# A native interactive toast notification pops up every 30 days. The task runs every 30 days +CleanupTask -Register + +# Create the "SoftwareDistribution" scheduled task for cleaning up the %SystemRoot%\SoftwareDistribution\Download folder +# The task will wait until the Windows Updates service finishes running. The task runs every 90 days +SoftwareDistributionTask -Register + +# Create the "Temp" scheduled task for cleaning up the %TEMP% folder +# Only files older than one day will be deleted. The task runs every 60 days +TempTask -Register + +# Disable Microsoft Defender Exploit Guard network protection (default value) +NetworkProtection -Disable + +# Disable detection for potentially unwanted applications and block them (default value) +PUAppsDetection -Disable + +# Dismiss Microsoft Defender offer in the Windows Security about signing in Microsoft account +DismissMSAccount + +# Dismiss Microsoft Defender offer in the Windows Security about turning on the SmartScreen filter for Microsoft Edge +DismissSmartScreenFilter + +# Enable events auditing generated when a process is created (starts) +AuditProcess -Enable + +# Include command line in process creation events +CommandLineProcessAudit -Enable + +# Create the "Process Creation" сustom view in the Event Viewer to log executed processes and their arguments +# In order this feature to work events auditing (AuditProcess -Enable) and command line (CommandLineProcessAudit -Enable) in process creation events will be enabled +EventViewerCustomView -Enable + +# Enable logging for all Windows PowerShell modules +PowerShellModulesLogging -Enable + +# Enable logging for all PowerShell scripts input to the Windows PowerShell event log +PowerShellScriptsLogging -Enable + +# Microsoft Defender SmartScreen doesn't marks downloaded files from the Internet as unsafe +AppsSmartScreen -Disable + +# Disable the Attachment Manager marking files that have been downloaded from the Internet as unsafe +SaveZoneInformation -Disable + +# Disable Windows Sandbox (default value) +WindowsSandbox -Disable + +# Enable DNS-over-HTTPS for IPv4 +# The valid IPv4 addresses: 1.0.0.1, 1.1.1.1, 149.112.112.112, 8.8.4.4, 8.8.8.8, 9.9.9.9 +DNSoverHTTPS -Enable -PrimaryDNS 1.0.0.1 -SecondaryDNS 1.1.1.1 + +# Show the "Extract all" item in the Windows Installer (.msi) context menu +MSIExtractContext -Show + +# Show the "Install" item in the Cabinet (.cab) filenames extensions context menu +CABInstallContext -Show + +# Hide the "Run as different user" item from the .exe filename extensions context menu (default value) +RunAsDifferentUserContext -Hide + +# Hide the "Cast to Device" item from the media files and folders context menu +CastToDeviceContext -Hide + +# Hide the "Share" item from the context menu +ShareContext -Hide + +# Hide the "Edit with Photos" item from the media files context menu +EditWithPhotosContext -Hide + +# Hide the "Create a new video" item in the media files context menu +CreateANewVideoContext -Hide + +# Hide the "Print" item from the .bat and .cmd context menu +PrintCMDContext -Hide + +# Hide the "Include in Library" item from the folders and drives context menu +IncludeInLibraryContext -Hide + +# Hide the "Send to" item from the folders context menu +SendToContext -Hide + +# Hide the "Compressed (zipped) Folder" item from the "New" context menu +CompressedFolderNewContext -Hide + +# Enable the "Open", "Print", and "Edit" context menu items for more than 15 items selected +MultipleInvokeContext -Enable + +# Hide the "Look for an app in the Microsoft Store" item in the "Open with" dialog +UseStoreOpenWith -Hide + +# Show the "Open in Windows Terminal" item in the folders context menu (default value) +OpenWindowsTerminalContext -Show + +# Open Windows Terminal in context menu as administrator by default +OpenWindowsTerminalAdminContext -Enable + +# Disable the Windows 10 context menu style (default value) +Windows10ContextMenu -Disable + +# SIG # Begin signature block +# MIIFiwYJKoZIhvcNAQcCoIIFfDCCBXgCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU3OM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JXoqIvVp1G2GWcfqZGLAoxnidVEN1ndnbkEFCpWeNcAkzGCAdkwggHVAgEBMDgw +# JDEiMCAGA1UEAwwZV2luZG93c19PcHRpbWlzYXRpb25fUGFjawIQJBEmIU6B/6pL +# +Icl+8AGsDAJBgUrDgMCGgUAoHgwGAYKKwYBBAGCNwIBDDEKMAigAoAAoQKAADAZ +# BgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgorBgEEAYI3AgELMQ4wDAYKKwYB +# BAGCNwIBFTAjBgkqhkiG9w0BCQQxFgQUAfmgRQufJf3EEibrj3c0mT4dTRUwDQYJ +# KoZIhvcNAQEBBQAEggEAVCm0N2R3euETPcw3PEg4Fd8q3T4ag+gbO2igCZ2h4ULh +# bQ0dEz+yqiZqy42BPRGEl4vfbG8eEcG9sOeDN7GKYIVx5IZDyN9OeYlfwHWAd9t8 +# 4RPQG+BEFQk5AE4XOhMsPm3KmHh4rN4CYp8OsTiOwyyO7h2/sBkXOy40G1WlvdaO +# lg5c6JEkD877136wWiWf3V+othTKioqAxKGnCj7Bfixg32nZtQzzMdQvWcbl2FHC +# NZH8DAXVEwAKHuGezF+JE5RMLoyE5G1FkIRaQfI4VSrlWne+kSBIZGqinmMHA15z +# Fh82yyENxDl29nxu3BY5+3CTVlQkLJAa+eJrVZhhvg== +# SIG # End signature block diff --git a/config/ooshutup10.cfg b/config/ooshutup10.cfg new file mode 100644 index 0000000..b34ed90 --- /dev/null +++ b/config/ooshutup10.cfg @@ -0,0 +1,181 @@ +# This file was created with O&O ShutUp10++ V1.9.1431 +P001 + +P002 + +P003 + +P004 + +P005 + +P006 + +P008 + +P026 + +P027 + +P028 + +P064 + +P065 + +P066 + +P067 + +P070 + +P069 + +P009 + +P010 - +P015 - +P068 - +P016 - +A001 + +A002 + +A003 + +A004 + +A006 + +A005 + +P007 + +P036 + +P025 + +P033 + +P023 + +P056 - +P057 - +P012 - +P034 - +P013 - +P035 - +P062 - +P063 - +P081 - +P047 - +P019 - +P048 + +P049 + +P020 - +P037 - +P011 - +P038 - +P050 - +P051 - +P018 - +P039 - +P021 - +P040 - +P022 - +P041 - +P014 - +P042 - +P052 - +P053 - +P054 - +P055 - +P029 - +P043 - +P030 - +P044 - +P031 - +P045 - +P032 - +P046 - +P058 - +P059 - +P060 - +P061 - +P071 - +P072 - +P073 - +P074 - +P075 - +P076 - +P077 - +P078 - +P079 - +P080 - +P024 - +S001 + +S002 + +S003 + +S008 - +E101 + +E115 + +E118 + +E107 + +E111 + +E112 + +E109 + +E121 + +E103 + +E123 + +E124 + +E119 + +E120 + +E122 + +E106 - +E001 + +E002 + +E003 + +E008 + +E007 + +E010 + +E011 + +E012 + +E009 + +E004 + +E005 + +E013 + +E014 + +E006 - +Y001 + +Y002 + +Y003 + +Y004 + +Y005 + +Y006 + +Y007 + +C012 + +C002 + +C013 + +C007 + +C008 + +C009 + +C010 + +C011 + +C014 + +L001 + +L003 + +L004 + +L005 + +U001 + +U004 + +U005 + +U006 + +U007 + +W001 + +W011 + +W004 - +W005 - +W010 - +W009 - +P017 - +W006 - +W008 - +M006 + +M011 + +M010 + +O003 + +O001 + +S012 + +S013 + +S014 + +K001 + +K002 + +K005 + +M022 + +M001 + +M004 + +M005 + +M003 + +M012 + +M013 + +M014 + +M015 + +M016 + +M017 + +M018 + +M019 + +M020 + +M021 + +N001 - \ No newline at end of file