Get Error message Working Directory is not valid when trying to create a WinPE disk on Windows Server 2022

Anonymous
2024-03-19T17:37:10+00:00

Hi,

I'm trying to create a WinPE disk for Windows Server 2022 using the instructions at WinPE: Create bootable media | Microsoft Learn. This is so I can back up the entire hard drive using EaseUS(it won't permit me to backup unless I create a WinPE disk).

On Instruction MakeWinPEMedia /ISO C:\WinPE_amd64 C:\WinPE_amd64\WinPE_amd64.iso it says that ERROR: Working directory is not valid: "C:\Users\Administrator\Desktop\WinPE_amd64".

What I am doing wrong. Any help would be much appreicated.

Thanks,

Tony

Windows for business | Windows Server | Directory services | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2024-03-20T09:53:21+00:00

    Thanks for your help, unfortunatley it didn't work, but I've tried using the Emergency Disk creator in EaseUS and I've accomplished everything I need to do.

    Thanks once again.

    Tony

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-03-19T19:41:55+00:00

    The error makes it appear you typed in MakeWinPEMedia /ISO WinPE_amd64 C:\WinPE_amd64\WinPE_amd64.iso instead of MakeWinPEMedia /ISO C:\WinPE_amd64 C:\WinPE_amd64\WinPE_amd64.iso.

    I suggest you try the command with quotes. Ensure the directories exist and that there are no permission errors with the directories used.

    MakeWinPEMedia /ISO "C:\WinPE_amd64" "C:\WinPE_amd64\WinPE_amd64.iso"

    0 comments No comments
  2. Anonymous
    2024-07-11T13:43:26+00:00

    If you already have the directory destination created, delete it. Then run "copype amd64 C:\WinPE_amd64" to recreate the directory. Then try running the "MakeWinPEMedia /ISO C:\WinPE_amd64 C:\WinPE_amd64\WinPE_amd64.iso" again.

    1 person found this answer helpful.
    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Anonymous
    2024-07-29T21:22:11+00:00

    It seems to be a requirement to have "media" folder inside your working directory. I executed the following commands and it seemed to work for me.

    > copype amd64 C:\WinPE_arm64

    > Dism /Mount-Image /ImageFile:"en-us\winpe.wim" /index:1 /MountDir:"c:\WinPE_arm64\mount"

    > MakeWinPEMedia /UFD /f "C:\WinPE_arm64" V:

    P.S. - This code helped me fix the issue - Link. Although, I'm not sure if it'd be the best way to fix the same. Been following the below documentation - WinPE: Create bootable media | Microsoft Learn

    1 person found this answer helpful.
    0 comments No comments