Skip to content

Commit

Permalink
Fixed wrong URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Nov 29, 2024
1 parent 3a29bff commit c6ceea0
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 36 deletions.
10 changes: 9 additions & 1 deletion Download_Latest_Sophia.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<#
.SYNOPSIS
Download the latest Sophia Script version from the last commit available, depending on what Windows or PowerShell versions are used to
Download the latest Sophia Script version from the last commit available, depending on which Windows or PowerShell versions are used to
.SYNOPSIS
For example, if you start script on Windows 11 via PowerShell 5.1 you will start downloading Sophia Script for Windows 11 PowerShell 5.1
.EXAMPLE
iwr sl.sophia.team -useb | iex
#>
Clear-Host

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Expand Down Expand Up @@ -37,6 +38,7 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName) -match "LTSC 2019")
{
$Version = "Sophia_Script_for_Windows_10_LTSC_2019"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 | Latest | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024"
}
else
{
Expand All @@ -61,6 +63,7 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName) -match "LTSC 2021")
{
$Version = "Sophia_Script_for_Windows_10_LTSC_2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 | Latest | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024"
}
else
{
Expand All @@ -84,10 +87,12 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
if ($Host.Version.Major -eq 5)
{
$Version = "Sophia_Script_for_Windows_10"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 | Latest | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024"
}
else
{
$Version = "Sophia_Script_for_Windows_10_PowerShell_7"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 PowerShell 7 | Latest | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024"
}
}
{$_ -ge 22631}
Expand All @@ -98,15 +103,18 @@ switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
if ($Host.Version.Major -eq 5)
{
$Version = "Sophia_Script_for_Windows_11"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 | Latest | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024"
}
else
{
$Version = "Sophia_Script_for_Windows_11_PowerShell_7"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 PowerShell 7 | Latest | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024"
}
}
else
{
$Version = "Sophia_Script_for_Windows_11_LTSC_2024"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 LTSC 2024 | Latest | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024"
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions Download_Sophia.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<#
.SYNOPSIS
Download and expand latest Sophia Script version, depending on what Windows or PowerShell versions are used to
Download and expand the latest Sophia Script version, depending on which Windows or PowerShell versions are used to
.SYNOPSIS
For example, if you start script on Windows 11 via PowerShell 5.1 you will start downloading Sophia Script for Windows 11 PowerShell 5.1
.EXAMPLE
iwr script.sophia.team -useb | iex
#>
Clear-Host

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Expand All @@ -32,7 +33,7 @@ $Parameters = @{
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json"
UseBasicParsing = $true
}
$JSONVersions = Invoke-WebRequest @Parameters
$JSONVersions = Invoke-RestMethod @Parameters

switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber)
{
Expand Down
2 changes: 1 addition & 1 deletion sophia_script_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Sophia_Script_Windows_10_PowerShell_7": "5.19.3",
"Sophia_Script_Windows_10_LTSC2019": "5.9.3",
"Sophia_Script_Windows_10_LTSC2021": "5.19.3",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.7.23",
"Sophia_Script_Windows_11_PowerShell_5_1": "6.7.3",
"Sophia_Script_Windows_11_LTSC2024": "6.7.3",
"Sophia_Script_Windows_11_PowerShell_7": "6.7.3",
"Sophia_Script_Wrapper": "2.7.5"
Expand Down
2 changes: 1 addition & 1 deletion src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2737,7 +2737,7 @@ function SnapAssist
$Enable
)

New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 1 -Force

switch ($PSCmdlet.ParameterSetName)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_10/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
.EXAMPLE Download and expand the latest Sophia Script version archive (without running) according which Windows and PowerShell versions it is run on
irm script.sophi.app -useb | iex
iwr script.sophia.team -useb | iex
.NOTES
Supported Windows 10 versions
Expand All @@ -32,7 +32,7 @@
.NOTES
To use the TAB completion for functions and their arguments dot source the Functions.ps1 script first:
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
Read more at https://github.com/farag2/Sophia-Script-for-Windows?tab=readme-ov-file#how-to-run-the-specific-functions
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,7 @@ function SnapAssist
$Enable
)

New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 1 -Force

switch ($PSCmdlet.ParameterSetName)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal"
.EXAMPLE Download and expand the latest Sophia Script version archive (without running) according which Windows and PowerShell versions it is run on
irm script.sophi.app -useb | iex
iwr script.sophia.team -useb | iex
.NOTES
Supported Windows 10 Enterprise LTSC 2019
Expand All @@ -30,7 +30,7 @@
.NOTES
To use the TAB completion for functions and their arguments dot source the Functions.ps1 script first:
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
Read more at https://github.com/farag2/Sophia-Script-for-Windows?tab=readme-ov-file#how-to-run-the-specific-functions
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,7 @@ function SnapAssist
$Enable
)

New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 1 -Force

switch ($PSCmdlet.ParameterSetName)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal"
.EXAMPLE Download and expand the latest Sophia Script version archive (without running) according which Windows and PowerShell versions it is run on
irm script.sophi.app -useb | iex
iwr script.sophia.team -useb | iex
.NOTES
Supported Windows 10 Enterprise LTSC 2021
Expand All @@ -30,7 +30,7 @@
.NOTES
To use the TAB completion for functions and their arguments dot source the Functions.ps1 script first:
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
Read more at https://github.com/farag2/Sophia-Script-for-Windows?tab=readme-ov-file#how-to-run-the-specific-functions
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2755,7 +2755,7 @@ function SnapAssist
$Enable
)

New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 1 -Force

switch ($PSCmdlet.ParameterSetName)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
.EXAMPLE Download and expand the latest Sophia Script version archive (without running) according which Windows and PowerShell versions it is run on
irm script.sophi.app -useb | iex
iwr script.sophia.team -useb | iex
.NOTES
Supported Windows 10 versions
Expand All @@ -32,7 +32,7 @@
.NOTES
To use the TAB completion for functions and their arguments dot source the Functions.ps1 script first:
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
Read more at https://github.com/farag2/Sophia-Script-for-Windows?tab=readme-ov-file#how-to-run-the-specific-functions
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
Expand Down
12 changes: 6 additions & 6 deletions src/Sophia_Script_for_Windows_11/Localizations/en-US/Sophia.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Win10TweakerWarning = Windows has been infected with a tro
TweakerWarning = The Windows stability may have been compromised by using {0}. Reinstall Windows using only a genuine ISO image.\nhttps://www.microsoft.com/software-download/windows11
Bin = There are no files in the bin folder. Please, re-download the archive.
RebootPending = The PC is waiting to be restarted.
UnsupportedRelease = A new version found.
UnsupportedRelease = A new script version found. Please use only latest Sophia Script. ###
KeyboardArrows = Please use the arrow keys {0} and {1} on your keyboard to select your answer
CustomizationWarning = Have you customized every function in the {0} preset file before running Sophia Script?
WindowsComponentBroken = {0} broken or removed from Windows.
UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again.
ControlledFolderAccessDisabled = Controlled folder access disabled.
InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file.
InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. ###
ScheduledTasks = Scheduled tasks
OneDriveUninstalling = Uninstalling OneDrive...
OneDriveInstalling = Installing OneDrive...
Expand All @@ -26,19 +26,19 @@ OptionalFeaturesTitle = Optional features
EnableHardwareVT = Enable Virtualization in UEFI.
UserShellFolderNotEmpty = Some files left in the "{0}" folder. Move them manually to a new location.
UserFolderLocationMove = You shouldn't change user folder location to C drive root.
RetrievingDrivesList = Retrieving drives list...
RetrievingDrivesList = Retrieving drives list... ###
DriveSelect = Select the drive within the root of which the "{0}" folder will be created.
CurrentUserFolderLocation = The current "{0}" folder location: "{1}".
UserFolderRequest = Would you like to change the location of the "{0}" folder?
UserDefaultFolder = Would you like to change the location of the "{0}" folder to the default value?
ReservedStorageIsInUse = This operation is not supported when reserved storage is in use\nPlease re-run the "{0}" function again after PC restart.
ShortcutPinning = The "{0}" shortcut is being pinned to Start...
SSDRequired = To use Windows Subsystem for Android™ on your device, your PC needs to have Solid State Drive (SSD) installed.
SSDRequired = To use Windows Subsystem for Android™ on your device, your PC needs to have Solid State Drive (SSD) installed. ###
UninstallUWPForAll = For all users
UWPAppsTitle = UWP Apps
GraphicsPerformanceTitle = Would you like to set the graphics performance setting of an app of your choice to "High performance"?
ActionCenter = In order to use "{0}" function you have to enable Action Center.
WindowsScriptHost = Windows Script Host access is disabled on this machine. In order to use "{0}" function you have to enable Windows Script Host.
ActionCenter = In order to use "{0}" function you have to enable Action Center. ###
WindowsScriptHost = Windows Script Host access is disabled on this machine. In order to use "{0}" function you have to enable Windows Script Host. ###
ScheduledTaskPresented = The "{0}" function was already created as "{1}".
CleanupTaskNotificationTitle = Windows clean up
CleanupTaskNotificationEvent = Run task to clean up Windows unused files and updates?
Expand Down
12 changes: 6 additions & 6 deletions src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2819,7 +2819,7 @@ function SnapAssist
$Enable
)

New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 1 -Force

switch ($PSCmdlet.ParameterSetName)
{
Expand Down Expand Up @@ -5555,15 +5555,15 @@ function WindowsFeatures
{
"Enable"
{
$State = @("Disabled", "DisablePending")
$ButtonContent = $Localization.Enable
$State = @("Disabled", "DisablePending")
$ButtonContent = $Localization.Enable
$ButtonAdd_Click = {EnableButton}
}
"Disable"
{
$State = @("Enabled", "EnablePending")
$ButtonContent = $Localization.Disable
$ButtonAdd_Click = {DisableButton}
$State = @("Enabled", "EnablePending")
$ButtonContent = $Localization.Disable
$ButtonAdd_Click = {DisableButton} ###
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_11/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
.EXAMPLE Download and expand the latest Sophia Script version archive (without running) according which Windows and PowerShell versions it is run on
irm script.sophi.app -useb | iex
iwr script.sophia.team -useb | iex
.NOTES
Supported Windows 11 versions
Expand All @@ -31,7 +31,7 @@
.NOTES
To use the TAB completion for functions and their arguments dot source the Functions.ps1 script first:
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
Read more at https://github.com/farag2/Sophia-Script-for-Windows?tab=readme-ov-file#how-to-run-the-specific-functions
.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2790,7 +2790,7 @@ function SnapAssist
$Enable
)

New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 1 -Force

switch ($PSCmdlet.ParameterSetName)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps

.EXAMPLE Download and expand the latest Sophia Script version archive (without running) according which Windows and PowerShell versions it is run on
irm script.sophi.app -useb | iex
iwr script.sophia.team -useb | iex

.NOTES
Supported Windows 11 Enterprise LTSC 2024

.NOTES
To use the TAB completion for functions and their arguments dot source the Functions.ps1 script first:
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
Read more at https://github.com/farag2/Sophia-Script-for-Windows?tab=readme-ov-file#how-to-run-the-specific-functions

.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,7 @@ function SnapAssist
$Enable
)

New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WindowArrangementActive -PropertyType DWord -Value 1 -Force

switch ($PSCmdlet.ParameterSetName)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps

.EXAMPLE Download and expand the latest Sophia Script version archive (without running) according which Windows and PowerShell versions it is run on
irm script.sophi.app -useb | iex
iwr script.sophia.team -useb | iex

.NOTES
Supported Windows 11 versions
Expand All @@ -31,7 +31,7 @@
.NOTES
To use the TAB completion for functions and their arguments dot source the Functions.ps1 script first:
. .\Function.ps1 (with a dot at the beginning)
Read more in the Functions.ps1 file
Read more at https://github.com/farag2/Sophia-Script-for-Windows?tab=readme-ov-file#how-to-run-the-specific-functions

.LINK GitHub
https://github.com/farag2/Sophia-Script-for-Windows
Expand Down

0 comments on commit c6ceea0

Please sign in to comment.