Dmitry Nefedov 3 years ago
parent
commit
2be04bbc1e
  1. 27
      CHANGELOG.md
  2. 61
      Download_Sophia.ps1
  3. 17
      README.md
  4. 206
      Sophia Script/Sophia Script for Windows 11/Sophia_edited.ps1
  5. 12
      sophia_script_versions.json

27
CHANGELOG.md

@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 5.12.6 | 6.0.7 — 23.11.2021
Diff from v6.0.6
[6.0.6...6.0.7](https://github.com/farag2/Sophia-Script-for-Windows/compare/5.12.4...5.12.5)
* Added support for Windows 10 Enterprise LTSC 2021;
* Added the `UninstallPCHealthCheck` funtion;
* This application is installed with the [KB5005463](https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56) update to check if PC meets the system requirements of Windows 11;
* For Windows 10 only.
* Added the `InstallVCRedistx64` funtion;
* Install the latest supported Microsoft Visual C++ Redistributable 2015—2022 x64;
* <https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist>;
* Added the `UnpinAllStartApps` function to provide a feature to unpin all Start apps;
* Minor changes.
* [Check out](https://t.me/SophiaNews/396) the 4th [SophiApp](https://github.com/Sophia-Community/SophiApp) 0.0.0.70 public alpha build :rocket:
![SophiApp](https://hsto.org/r/w780/getpro/habr/upload_files/be9/060/0b6/be90600b648639aa85d755fe10677cb2.jpg)
## Sophia Script Wrapper 2.5.2
* Cleaned up JSONs;
* Cleaned up code;
* Added Portuguese-Brazil (pt-BR);
* JSON validation checker in wrapper: messagebox will popup telling you location of JSON error;
* Added support for LTSC 2021.
![Wrapper](https://i.imgur.com/yS0eESG.png)
## 5.12.5 | 6.0.6 — 24.10.2021
## Windows 11 21H2 | Windows 10 2004/20H2/21H1/21H2 | LTSC 1809

61
Download_Sophia.ps1

@ -3,7 +3,7 @@
Download the latest Sophia Script version, depending on what Windows or PowerShell versions are used to
E.g., if you start script on Windows 11 via PowerShell 5.1 you will start downloading Sophia Script for Windows 11 PowerShell 5.1
.EXAMPLE Download and expand the Sophia Script archive
.EXAMPLE Download and the Sophia Script archive
irm script.sophi.app | iex
.EXAMPLE Download and expand the Wrapper archive
@ -68,33 +68,55 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json"
UseBasicParsing = $true
}
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_LTSC
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_LTSC2019
$Parameters = @{
Uri = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.LTSC.v$LatestRelease.zip"
Uri = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.LTSC.2019.v$LatestRelease.zip"
OutFile = "$DownloadsFolder\Sophia.Script.zip"
UseBasicParsing = $true
Verbose = $true
}
$Version = "LTSC"
$Version = "LTSC2019"
break
}
{($_ -ge 19041) -and ($_ -le 19044)}
{
if ($PSVersionTable.PSVersion.Major -eq 5)
{
$Parameters = @{
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json"
UseBasicParsing = $true
# Check if Windows 10 is an LTSC 2021
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName) -eq "Windows 10 Enterprise LTSC 2021")
{
$Parameters = @{
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json"
UseBasicParsing = $true
}
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_LTSC2021
$Parameters = @{
Uri = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.LTSC.2021.v$LatestRelease.zip"
OutFile = "$DownloadsFolder\Sophia.Script.zip"
UseBasicParsing = $true
Verbose = $true
}
$Version = "LTSC2021"
}
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_PowerShell_5_1
$Parameters = @{
Uri = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.v$LatestRelease.zip"
OutFile = "$DownloadsFolder\Sophia.Script.zip"
UseBasicParsing = $true
Verbose = $true
else
{
$Parameters = @{
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json"
UseBasicParsing = $true
}
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_PowerShell_5_1
$Parameters = @{
Uri = "https://github.com/farag2/Sophia-Script-for-Windows/releases/download/$LatestGitHubRelease/Sophia.Script.for.Windows.10.v$LatestRelease.zip"
OutFile = "$DownloadsFolder\Sophia.Script.zip"
UseBasicParsing = $true
Verbose = $true
}
$Version = "Windows_10_PowerShell_5.1"
}
$Version = "Windows_10_PowerShell_5.1"
}
else
{
@ -112,6 +134,7 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
$Version = "Windows_10_PowerShell_7"
}
}
"22000"
{
@ -168,9 +191,13 @@ switch ($Version)
{
Invoke-Item -Path "$DownloadsFolder\Sophia Script Wrapper v$LatestRelease"
}
"LTSC"
"LTSC2019"
{
Invoke-Item -Path "$DownloadsFolder\Sophia Script for Windows 10 LTSC 2019 v$LatestRelease"
}
"LTSC2021"
{
Invoke-Item -Path "$DownloadsFolder\Sophia Script for Windows 10 LTSC v$LatestRelease"
Invoke-Item -Path "$DownloadsFolder\Sophia Script for Windows 10 LTSC 2021 v$LatestRelease"
}
"Windows_10_PowerShell_5.1"
{

17
README.md

@ -97,23 +97,24 @@ Available in: <img src="https://upload.wikimedia.org/wikipedia/commons/a/ae/Flag
* Due to the fact that the script includes more than **150** functions with different arguments, you must read the entire **Sophia.ps1** carefully and **comment out/uncomment** those functions that you do/do not want to be executed (without need to edit the code), or use [Wrapper](https://github.com/farag2/Sophia-Script-for-Windows#davids-sophia-script-wrapper). Every tweak in the preset file has its' corresponding function to **restore the default settings**.
* Running the script is best done on a fresh install because running it on **wrong** tweaked system may result in errors occurring.
## Minimum supported Windows versions
## Minimum supported Windows versions and builds
# Windows 11
|Version| Build | Editions | Script version |
|:-----:|:---------:|:-----------------:|:--------------:|
| 21H2 | 22000.282 |Home/Pro/Enterprise|[6.0.6](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 21H2 | 22000.318 |Home/Pro/Enterprise|[6.0.7](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
# Windows 10
|Version| Marketing name | Build | Arch| Editions | Script version |
|:-----:|:-------------------:|:----------:|:---:|:----------------------:|:--------------:|
| 21H2 | October 2021 Update | 19044.1151 | x64 |Home/Pro/Enterprise|[5.12.5](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 21H1 | May 2021 Update | 19043.1151 | x64 |Home/Pro/Enterprise|[5.12.5](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 20H2 | October 2020 Update | 19042.1151 | x64 |Home/Pro/Enterprise|[5.12.5](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 2004 | May 2020 Update | 19041.1151 | x64 |Home/Pro/Enterprise|[5.12.5](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 1809 | Enterprise LTSC 2019| 17763 | x64 | Enterprise |[5.2.16](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 21H2 | October 2021 Update | 19044.1151 | x64 |Home/Pro/Enterprise|[5.12.6](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 21H2 | Enterprise LTSC 2021| 19044.1348 | x64 | Enterprise |[5.12.6](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 21H1 | May 2021 Update | 19043.1151 | x64 |Home/Pro/Enterprise|[5.12.6](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 20H2 | October 2020 Update | 19042.1151 | x64 |Home/Pro/Enterprise|[5.12.6](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 2004 | May 2020 Update | 19041.1151 | x64 |Home/Pro/Enterprise|[5.12.6](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
| 1809 | Enterprise LTSC 2019| 17763 | x64 | Enterprise |[5.2.17](https://github.com/farag2/Sophia-Script-for-Windows/releases/latest)|
## Screenshots
@ -145,7 +146,7 @@ Available in: <img src="https://upload.wikimedia.org/wikipedia/commons/a/ae/Flag
### David's Sophia Script Wrapper
![Wrapper](https://i.imgur.com/DRRQPJh.png)
![Wrapper](https://i.imgur.com/yS0eESG.png)
## Videos

206
Sophia Script/Sophia Script for Windows 11/Sophia_edited.ps1

@ -1,206 +0,0 @@
#Requires -RunAsAdministrator
#Requires -Version 5.1
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string[]]
$Functions
)
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
#region Protection
Checkings -Warning
CreateRestorePoint
#endregion Protection
#region Privacy & Telemetry
DiagTrackService -Disable
DiagnosticDataLevel -Minimal
ErrorReporting -Disable
FeedbackFrequency -Never
ScheduledTasks -Disable
SigninInfo -Disable
LanguageListAccess -Disable
AdvertisingID -Disable
WindowsWelcomeExperience -Hide
WindowsTips -Enable
SettingsSuggestedContent -Hide
AppsSilentInstalling -Disable
WhatsNewInWindows -Disable
TailoredExperiences -Disable
BingSearch -Disable
#endregion Privacy & Telemetry
#region UI & Personalization
ThisPC -Show
Windows10FileExplorer -Enable
CheckBoxes -Disable
HiddenItems -Enable
FileExtensions -Show
MergeConflicts -Show
OpenFileExplorerTo -ThisPC
FileExplorerCompactMode -Disable
OneDriveFileExplorerAd -Hide
SnapAssistFlyout -Enable
SnapAssist -Disable
FileTransferDialog -Detailed
RecycleBinDeleteConfirmation -Enable
QuickAccessRecentFiles -Hide
QuickAccessFrequentFolders -Hide
TaskbarAlignment -Left
TaskbarSearch -Hide
TaskViewButton -Hide
TaskbarWidgets -Hide
TaskbarChat -Hide
ControlPanelView -LargeIcons
WindowsColorMode -Dark
AppColorMode -Dark
FirstLogonAnimation -Disable
JPEGWallpapersQuality -Max
TaskManagerWindow -Expanded
RestartNotification -Show
ShortcutsSuffix -Disable
PrtScnSnippingTool -Enable
AppsLanguageSwitch -Enable
AeroShaking -Enable
UnpinTaskbarShortcuts -Shortcuts Edge, Store
#endregion UI & Personalization
#region OneDrive
OneDrive -Uninstall
#endregion OneDrive
#region System
StorageSense -Enable
StorageSenseFrequency -Month
StorageSenseTempFiles -Enable
Hibernation -Disable
Win32LongPathLimit -Disable
BSoDStopError -Enable
AdminApprovalMode -Never
MappedDrivesAppElevatedAccess -Enable
DeliveryOptimization -Disable
WaitNetworkStartup -Enable
WindowsManageDefaultPrinter -Disable
WindowsFeatures -Disable
WindowsCapabilities -Uninstall
UpdateMicrosoftProducts -Enable
PowerPlan -High
LatestInstalled.NET -Enable
NetworkAdaptersSavePower -Disable
IPv6Component -Disable
InputMethod -English
SetUserShellFolderLocation -Root
WinPrtScrFolder -Desktop
RecommendedTroubleshooting -Automatically
FoldersLaunchSeparateProcess -Enable
ReservedStorage -Disable
F1HelpPage -Disable
NumLock -Enable
StickyShift -Disable
Autoplay -Disable
ThumbnailCacheRemoval -Disable
SaveRestartableApps -Enable
NetworkDiscovery -Enable
ActiveHours -Automatically
RestartDeviceAfterUpdate -Enable
DefaultTerminalApp -WindowsTerminal
#endregion System
#region WSL
#endregion WSL
#region Start menu
RunPowerShellShortcut -Elevated
#endregion Start menu
#region UWP apps
HEIF -Install
CortanaAutostart -Disable
TeamsAutostart -Disable
UninstallUWPApps
CheckUWPAppsUpdates
#endregion UWP apps
#region Gaming
XboxGameBar -Disable
XboxGameTips -Disable
GPUScheduling -Enable
SetAppGraphicsPerformance
#endregion Gaming
#region Scheduled tasks
CleanupTask -Register
SoftwareDistributionTask -Register
TempTask -Register
#endregion Scheduled tasks
#region Microsoft Defender & Security
NetworkProtection -Enable
PUAppsDetection -Enable
DefenderSandbox -Enable
AuditProcess -Enable
CommandLineProcessAudit -Enable
EventViewerCustomView -Enable
PowerShellModulesLogging -Enable
PowerShellScriptsLogging -Enable
AppsSmartScreen -Disable
SaveZoneInformation -Disable
DismissMSAccount
DismissSmartScreenFilter
#endregion Microsoft Defender & Security
#region Context menu
MSIExtractContext -Show
CABInstallContext -Show
RunAsDifferentUserContext -Show
CastToDeviceContext -Hide
ShareContext -Hide
EditWithPhotosContext -Hide
CreateANewVideoContext -Hide
PrintCMDContext -Hide
IncludeInLibraryContext -Hide
SendToContext -Hide
BitLockerContext -Hide
CompressedFolderNewContext -Hide
MultipleInvokeContext -Enable
UseStoreOpenWith -Hide
OpenWindowsTerminalContext -Hide
OpenWindowsTerminalAdminContext -Show
Windows10ContextMenu -Disable
#endregion Context menu
RefreshEnvironment
Errors

12
sophia_script_versions.json

@ -1,9 +1,9 @@
{
"Sophia_Script_Windows_10_PowerShell_5_1": "5.12.5",
"Sophia_Script_Windows_10_PowerShell_7": "5.12.5",
"Sophia_Script_Windows_10_LTSC": "5.2.16",
"Sophia_Script_Windows_10_PowerShell_5_1": "5.12.6",
"Sophia_Script_Windows_10_PowerShell_7": "5.12.6",
"Sophia_Script_Windows_10_LTSC2019": "5.2.17",
"Sophia_Script_Windows_10_LTSC2021": "5.12.6",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.0.6",
"Sophia_Script_Windows_11_PowerShell_7": "6.0.6",
"Sophia_Script_Wrapper": "2.5.1"
"Sophia_Script_Windows_11_PowerShell_5_1": "6.0.7",
"Sophia_Script_Windows_11_PowerShell_7": "6.0.7",
"Sophia_Script_Wrapper": "2.5.2"
}

Loading…
Cancel
Save