Update syscheck for Pro

This commit is contained in:
camoy 2024-08-15 14:59:20 -07:00
parent e2831aac5c
commit 6f91d49d08

View File

@ -25,17 +25,17 @@ function fSCCountTotalMemory
function fSCOSVerification function fSCOSVerification
{ {
Write-Host "---Check Windows OS Installation Version (Windows 10 LTSC)---" Write-Host "---Check Windows OS Installation Version (Windows 10 Pro)---"
(Get-WmiObject -Class Win32_OperatingSystem).Caption (Get-WmiObject -Class Win32_OperatingSystem).Caption
$vSCOSEdition = (Get-WmiObject -Class Win32_OperatingSystem).Caption $vSCOSEdition = (Get-WmiObject -Class Win32_OperatingSystem).Caption
if $vSCOSEdition -notlike "*LTSC*" if $vSCOSEdition -notlike "*Pro*"
then then
{ {
Write-Host "SC-SYS-ERR002: INCORRECT OS EDITION" Write-Host "SC-SYS-ERR002: INCORRECT OS EDITION"
Write-Host "This system does not have Windows 10 LTSC installed." Write-Host "This system does not have Windows 10 Pro installed."
Write-Host "Please reinstall Windows 10 with a LTSC build to run Sweetcade." Write-Host "Please reinstall Windows 10 with the Pro Edition to run Sweetcade."
Write-Host "Sweetcade is only tested on LTSC builds of Windows 10 at this time." Write-Host "Sweetcade is only tested on Pro editions of Windows 10 at this time."
Write-Host "If this error has appeared on a system with LTSC installed please open a issue on Git https://git.sdf.org/camoy/Sweetcade" Write-Host "If this error has appeared on a system with a Pro edition installed please open a issue on Git https://git.sdf.org/camoy/Sweetcade"
Write-Host "This script will now terminate in 60 seconds." Write-Host "This script will now terminate in 60 seconds."
Start-Sleep -Seconds 60 Start-Sleep -Seconds 60
Exit 1 Exit 1