If you get this error; "ERROR IMAGING DRIVE {C:\] THE PARAMETER IS INCORRECT".
Try this below...
Do "dir /b /s /a > T:\imagestore\list.txt"
Open list.txt in an advanced text editor like Notepad++ (capable of doing search/replace of line breaks)Search for \r\n (carriage return, new line), replace with "\r\n" include quotes. This will enclose all beginnings and ends of lines with quotes.
Search for a space followed by a quote, as in between the underscores: _ " or "_
Any match it finds is an invalid filename, as the space-quote combo indicates that the file name ends in a hidden space!
Just go to the command prompt, CD to that path's parent folder, and "dir /x" (example below: PROGRA~1 / Program Files) to find the short filename to be used to delete or rename the file.
Run WIM image Capture again.
Also keep in mind that you get this error if you have no room on your C:\ drive too..
Best of Luck!
Comments