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

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

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.
4,613 questions
No comments
{count} votes

2 answers

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

    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 . . ."

    No comments

  2. answered 2021-09-23T09:32:39.737+00:00
    Limitless Technology 37,291 Reputation points

    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--

    No comments