Bug 6989

Summary: Error in Create-DevboardKey script, when trying to make a Win8.1 installation
Product: [Hardware Platforms] MinnowBoard MAX Firmware Reporter: shacharweis
Component: minnowboard-firmwareAssignee: Ivan Rouzanov <ivan.rouzanov>
Status: CLOSED NOTABUG QA Contact:
Severity: major    
Priority: Medium CC: sjolley.yp.pm
Version: 2C A2   
Target Milestone: Production Release   
Hardware: MinnowBoard Max   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description shacharweis 2014-11-21 04:00:59 UTC
I am following this guide to install Win8.1 on MinnowBoard Max
http://msdn.microsoft.com/en-us/library/windows/hardware/dn781278%28v=vs.85%29.aspx

Step #6 is to run this command line in PowerShell:
.\Create-DevboardKey.ps1 -ImagePath Setup\sources\install.wim -Index 2

It fails with this error:

You must provide a value expression on the right-hand side of the '-' operator.
At D:\MAX\Create-DevboardKey.ps1:313 char:42
+             } elseif ($DiskNumber.Value - <<<< notin ($disks | Select-Object
-ExpandProperty Number)) {
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : ExpectedValueExpression
Comment 1 Stephen K Jolley 2014-11-21 04:11:45 UTC
Ivan, Please check if this is a problem with the Windows install or the web site.
Comment 2 shacharweis 2014-11-21 19:47:42 UTC
I just tried this under Win8.1, and it works. 
I was on Win7 SP2 before.
Comment 3 Ivan Rouzanov 2015-01-16 11:13:17 UTC
This is expected - Microsoft scripts are designed to work under Windows 8.1.
Windows 7 at this point is "old" - it was released in 2009 and mainline support for it has been stopped.
Comment 4 Ivan Rouzanov 2015-01-16 11:14:18 UTC
This is expected - Microsoft scripts are designed to work under Windows 8.1.
Comment 5 Ivan Rouzanov 2015-01-16 11:14:50 UTC
By design.
Comment 6 Ivan Rouzanov 2015-01-16 11:15:35 UTC
Closing this one.