Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-BootWIM 0 #7

Closed
AlexanderRydberg opened this issue May 15, 2020 · 3 comments
Closed

-BootWIM 0 #7

AlexanderRydberg opened this issue May 15, 2020 · 3 comments

Comments

@AlexanderRydberg
Copy link
Contributor

AlexanderRydberg commented May 15, 2020

gives this error:

Update-Win10WIM : Cannot process argument transformation on parameter 'UpdateBootWIM'. Cannot convert value "" to type "System.Boolean". Boolean parameters accept only Boolean values and numbers, such as $True, $False, 1 or 0.
At C:\Users\MrBalmer\Documents\GitHub\SurfaceDeploymentAccelerator\CreateSurfaceWindowsImage.ps1:2422 char:389
+ ... KitsInstall $WindowsKitsInstall -UpdateBootWIM $UpdateBootWIM -MakeUS ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Update-Win10WIM], ParameterBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Update-Win10WIM
@cluberti
Copy link
Member

Interesting param handling. Can you post the command line you passed so I can validate this?

@AlexanderRydberg
Copy link
Contributor Author

This issue can be closed when my PR is merged. And to answer the question the parameter that was used was: -BootWIM 0. But since the code did not have any check if it was set to false/0 and the variables value was replaced, it then gives us this error if bootvim is set to 0 :-)

@cluberti
Copy link
Member

I've got this into 1.2.3, which will hit testing soon. Thanks for your help finding bugs :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants