The computer assessment script currently provides hardware information and the OEM license.
To complete the script it would be useful to determine the max OS version to implement a check if windows 11 can be installed.
Reddit provided following script:
#region Check for Windows 11 Compatibility
$result = iwr https://aka.ms/HWReadinessScript |
iex -ErrorAction stop | select -last 1 | convertfrom-json
$result | out-string | write-verbose
if ( $Result.ReturnCode -eq 0 ) {
write-host "This machine is Windows 11 Ready!"
}
elseif ( $result.ReturnCode -eq 1 ) {
write-host "This machine is NOT Windows 11 Ready!"
$result | out-string | Write-verbose
}
else { write-host "Some other error" }
#endregion
The computer assessment script currently provides hardware information and the OEM license.
To complete the script it would be useful to determine the max OS version to implement a check if windows 11 can be installed.
Reddit provided following script: