Powershell - MakeWinPEMedia : The term 'MakeWinPEMedia' is not recognized as the name of a cmdlet

David Heinz 6 Reputation points
2021-09-22T15:30:02.937+00:00

I am in the process of creating a WinPE w/ PowerShell using the following link;

I have mounted the wim but when I go to make the media I get the following error,

PS C:\WinPE_amd64_PS> MakeWinPEMedia /UFD C:\WinPE_amd64_PS D:
MakeWinPEMedia : The term 'MakeWinPEMedia' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.

I am running PowerShell as admin

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 44,776 Reputation points
    2021-09-22T18:58:10.447+00:00

    The error says "Check the spelling of the name, or if a path was included, verify that the path is correct and try again.".

    Assuming the executable name is correct, is it in a directory included in your PATH environment variable? If not, use the complete path to run it.

    Again, assuming the executable is in the C:\WinPE_amd64_PS directory, try "C:\WinPE_amd64_PS MakeWinPEMedia.exe . . ."

    0 comments No comments

  2. Limitless Technology 39,351 Reputation points
    2021-09-23T09:32:39.737+00:00

    Hello @David Heinz ,

    This seems to be a common issue. You can read the notice here: https://answers.microsoft.com/en-us/windows/forum/all/microsoft-removed-windows-pe-folders-from-windows/db7a37a3-4dc1-4c66-8cbb-daf9525c6ae2

    Solution is included on the article.

    Hope this helps in your case,

    -------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments