Skip to content

Instantly share code, notes, and snippets.

@mgreenegit
Created May 11, 2015 13:42
Show Gist options
  • Save mgreenegit/b07a986737bbe4824d2a to your computer and use it in GitHub Desktop.
Save mgreenegit/b07a986737bbe4824d2a to your computer and use it in GitHub Desktop.
Fix: Convert-WindowsImage run on Windows 10
# https://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f
# Update line 3044
# In version 6.3, the evaluator was comparing strings to integers.
# Replacing this line will use version objects to check the version of Windows and integers for the build number.
$isWin8 = (((new-object Version $os.Version) -ge (new-object Version 6.2)) -and ([uint32]$os.BuildNumber -ge $lowestSupportedBuild))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment