Created
May 11, 2015 13:42
-
-
Save mgreenegit/b07a986737bbe4824d2a to your computer and use it in GitHub Desktop.
Fix: Convert-WindowsImage run on Windows 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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