From 806e347ac19bbcda260403455d4b1ce4cceea7b4 Mon Sep 17 00:00:00 2001 From: Olai Date: Sun, 30 Oct 2022 01:29:42 +0200 Subject: [PATCH] testers --- EnhanceWindows.ps1 | 59 +++++++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/EnhanceWindows.ps1 b/EnhanceWindows.ps1 index 2d3d333..efeb7b6 100644 --- a/EnhanceWindows.ps1 +++ b/EnhanceWindows.ps1 @@ -1160,32 +1160,8 @@ $Tab5.Controls.Add($versionlabel) #$versionlabel.Location = "300,496" #PRE-VERSION $versionlabel.Location = "330,496" #VERSION -#======================================================== -# Check if OS is Windows 11 -#======================================================== -if($value4.TaskbarDa -eq 0) -{ - $OSlabel.Text = "Windows 11 Detected" -} -elseif($value4.TaskbarDa -eq 1) -{ - $OSlabel.Text = "Windows 11 Detected" -} -#======================================================== -# Check if OS is Windows 10 -#======================================================== -if($value9.PeopleBand -eq 0) -{ - $OSlabel.Text = "Windows 10 Detected" - Windows10 -} -elseif($value9.PeopleBand -eq 1) -{ - $OSlabel.Text = "Windows 10 Detected" - Windows10 -} function Windows10 @@ -1213,6 +1189,41 @@ function Windows11 { +#======================================================== +# Check if OS is Windows 11 +#======================================================== + +if($value4.TaskbarDa -eq 0) +{ + $OSlabel.Text = "Windows 11 Detected" + Windows11 +} +elseif($value4.TaskbarDa -eq 1) +{ + $OSlabel.Text = "Windows 11 Detected" + Windows11 +} + +#======================================================== +# Check if OS is Windows 10 +#======================================================== +if($value9.PeopleBand -eq 0) +{ + $OSlabel.Text = "Windows 10 Detected" + Windows10 +} +elseif($value9.PeopleBand -eq 1) +{ + $OSlabel.Text = "Windows 10 Detected" + Windows10 +} + + + + + + +