Skip to content

Conversation

@ricoroodenburg
Copy link
Contributor

Support has been added for specifying an ImageFileItem via parameter input. Additionally, it is now possible to provide the OSImageIndex via the existing OSImageIndex parameter.

In other words, for deployments using an offline image file, you can now specify both the image file and the index to be used. This enables a full automated deployment process.

Failsafe Mechanism: A failsafe has been implemented. If the specified image or index does not exist, the process will fall back to the original behavior, allowing users to select an image and index from the available list.

The ImageFileItem parameter has been added, which updates the ImageFileItem property in the $global:StartOSDCloud variable. If ImageFileItem is provided, the existence of the specified file is checked. If the file does not exist, the user will be prompted to manually select an ImageFileItem as usual.

The integer value for OSImageIndex is also validated based on the provided ImageFileItem. If the specified index does not exist, the user will be prompted to manually select an item, as per the usual process.

In Summary: 
It is now possible to perform a zero-touch deployment for offline images.

Example:
Start-OSDCloud -ImageFileItem "\windows 11 - 24H2 - NLD\install.wim" -OSImageIndex 3
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

Successfully merging this pull request may close these issues.

1 participant