Skip to content

Determine if System Windows 11 ready #3

@fthobe

Description

@fthobe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions