Create-Media error



I received the following error when trying to run Create-Media.ps1

Get-ChildItem : Cannot find path 'E:\a' because it does not exist.
At E:\TestLabBaseConfigHydrationKit\Build\Modules\TestLab.psm1:474 char:13
  • Get-ChildItem -Path $Kit\$Arch\ -Filter $Name -Recurse
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : ObjectNotFound: (E:\a:String) [Get-ChildItem], ItemNotFoundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
The expression after '&' in a pipeline element produced a object that was not valid. It must result in a command name,
script block or CommandInfo object.
At line:1 char:3
  • & "" -u1 C:\TestLab_BaseConfigMedia\Content "E:\TestLabBaseConfigHydrationKit\Bu ...
  • ~~
    • CategoryInfo : InvalidOperation: (:String) [], RuntimeException
    • FullyQualifiedErrorId : BadExpression
Any idea what I did wrong?


Closed Jul 14, 2013 at 11:24 AM by Scriptimus
Issue was WAIK wasn't installed.


bassics38 wrote Apr 11, 2013 at 10:02 PM

Figured it out. Didn't have the AIK installed. Once I opened up the MDT and downloaded and installed MSXML 6.0 and the AIK, the scripts worked fine.


Scriptimus wrote Jul 14, 2013 at 11:23 AM

Great. Glad to hear you sorted it. I wish I had time to do some more work on this because, I'd add some error checking to ensure that the AIK or ADK was installed.

wrote Jul 14, 2013 at 11:24 AM