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 28, 2024
1 parent a612099 commit 05cd8da
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 16 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
3 changes: 2 additions & 1 deletion 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 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
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
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
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
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
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
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 05cd8da

Please sign in to comment.