We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents adcbc33 + e06db65 commit 45eacf3Copy full SHA for 45eacf3
scripts/Win_Win11_Ready.ps1
@@ -7,6 +7,17 @@
7
#
8
#=============================================================================================================================
9
10
+# Check Windows Version
11
+$osInfo = Get-WmiObject -Class Win32_OperatingSystem
12
+$winVersion = [System.Version]$osInfo.Version
13
+
14
+if ($winVersion -ge [System.Version]::new(10, 0, 22000)) {
15
+ Write-Output "Already Windows 11"
16
+ Exit 0
17
+}
18
19
+# Continue with Windows 11 readiness check
20
21
$exitCode = 0
22
23
[int]$MinOSDiskSizeGB = 64
@@ -480,6 +491,6 @@ if (0 -eq $outObject.returncode) {
480
491
"Windows 11 Ready"
481
492
}
482
493
else {
483
- "Not Windows 11 Ready"
494
+ "Not Windows 11 Ready | "
484
495
Write-Output $outObject.returnReason
485
496
0 commit comments