Syntax
New-PxeImage [-Depots] <String[]> [-SoftwareSpec] <String> [-KernelOptions <String[]>] [-CheckAcceptance] [-LiveImage] [-Overwrite] -Destination <String> [<CommonParameters>]Related Commands
Get-DepotAddonsDetailed Description
This cmdlet generates a PXE image by using the specified software depot and software specification at the specified file path. Optionally, you can pass additional kernel options, create a live image instead, overwrite existing files, or check acceptance levels for individual VIBs used during the creation of the image.Parameters
Return Type
No return typeNotes
No notesExamples
-------------- Create a PXE image --------------
C:\PS>New-PxeImage "C:\<depot>.zip", "https://<address-to-depot>/index.xml" "C:\<spec>.json" -Destination "C:\<name-of-pxe-directory>"
Creates a new PXE image by using the depots located at "C:\<depot>.zip" and "https://<address-to-depot>/index.xml" (one offline and one online depot, can be used in any number and combination). Uses the software specification located at "C:\<spec>.json" to construct the image and saves the PXE files to "C:\<name-of-pxe-directory>" afterwards.
-------------- Create an PXE image with kernel options --------------
C:\PS>New-PXEImage "C:\<depot>.zip", "https://<address-to-depot>/index.xml" "C:\<spec>.json" -Destination "C:\<name-of-pxe-directory>" -KernelOptions "option1=value1", "option2=value2"
Creates a new PXE image by using the depots located at "C:\<depot>.zip" and "https://<address-to-depot>/index.xml" (one offline and one online depot, can be used in any number and combination). Uses the software specification located at "C:\<spec>.json" to construct the image and include the additional kernel options "option1=value1", "option2=value2" provided with -KernelOptions. Saves the PXE files to "C:\<name-of-pxe-directory>" afterwards.