wimlib-imagex.exe update from PowerShell

Comments, questions, bug reports, etc.
Post Reply
pxeboot
Posts: 2
Joined: Sun Aug 13, 2017 10:01 pm

wimlib-imagex.exe update from PowerShell

Post by pxeboot »

Sorry if this has been asked before, but I am unable to run this command from PowerShell:

Code: Select all

wimlib-imagex.exe update boot.wim 1 < update.txt
Here is the error that is generated:

Code: Select all

The '<' operator is reserved for future use.
The exact same command is successful in cmd.exe. Is there another character that can be used to specify a filelist instead of '<'?
JFX
Posts: 40
Joined: Tue Aug 18, 2015 3:59 pm

Re: wimlib-imagex.exe update from PowerShell

Post by JFX »

Stdin redirection is different in powershell:

Code: Select all

GET-CONTENT update.txt | wimlib-imagex.exe update boot.wim 1
pxeboot
Posts: 2
Joined: Sun Aug 13, 2017 10:01 pm

Re: wimlib-imagex.exe update from PowerShell

Post by pxeboot »

JFX wrote:Stdin redirection is different in powershell:

Code: Select all

GET-CONTENT update.txt | wimlib-imagex.exe update boot.wim 1
Thank you. That was surprisingly simple and works perfectly.
Post Reply