Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » MDT Warning: Unable to set working directory, the application returned an unexpected code 2
  • image 64
    Windows Local Account Authorization and Access Control Windows
  • banner
    How to Fix Python was not found run without arguments to install from the Microsoft Store Windows
  • Defender Antivirus
    Windows Defender Antivirus Management with Intune Anti-Virus Solution
  • cisco ASA
    Common Cisco ASA Commands Network | Monitoring
  • Delete Expired Profiles on Mac
    Remove Expired Configuration Profiles on Mac Mac
  • maxresdefault 2 7
    How to record your screen with PowerPoint and make slide shows Mac
  • ddf 2
    Add boot and install images to WDS and configure Multicast transmission via the GUI and WDSUTIL Windows Server
  • How to Restore Microsoft Authenticator App on a New Device
    How to fix “Action required” in Microsoft Authenticator App Microsoft Exchange/Office/365

MDT Warning: Unable to set working directory, the application returned an unexpected code 2

Posted on 07/10/202003/09/2023 Christian By Christian No Comments on MDT Warning: Unable to set working directory, the application returned an unexpected code 2
Error code 2

The main function of MDT and WDS is to ease the installation of Windows on remote PCs via the Pre-execution Environment (PXE). PXE requires the use of a Windows Server configured with the Windows Deployment Services (WDS) role. WDS gets the image from the MDT server and then uses WinPE to run the boot.wim file to boot the target machine up and then install the device.

For more on the configuration of MDT and WDS, see the following guides: ADK, MDT, and WDS: How to configure and deploy Windows using Microsoft Deployment Toolkit, and Windows Deployment Services for Windows 10. For WDS/DHCP scenarios: How to configure DHCP Server option 60, 66 and 67 for Windows Deployment Services, Uninstall WDS: How to remove Windows Deployment Services role via the GUI and PowerShell, What happens when WDS and DNS is installed on the same server: DNS issues with WDS. How to create a capture image on Windows Deployment Services, Windows Deployment Services: WDSUTIL CommandLine Options on Windows Server 2019.

The following error was prompted because the application itself was available over MDT, and there was a madatory rule to have the application installed, but the application files (directory) was not available on the MDT Deployment Share file system.
HMDT application

Solution: Since the working directory no longer exists that is assigned to the application to be installed, we will need to copy the application directory (files) to the DeployShare file system. In this way, the installation will run and complete without errors.

Unable to set working directory

Here are some other errors related to MDT and WDS I have written on. How to fix error 0xc1510114: The wim file needs to be remounted, error 0x80070002: When trying to mount an image file, error code 15601: How to resolve DISM unspecified error when removing preinstalled packages, error 0xc1420127: The specified image in the specified wim is already mounted for read and write access, DISM Error 87: The package is unknown and Error 740: Elevated permissions are required to run DISM.

For more information on the differences between ADK, MDT, Microsoft Endpoint Configuration Manager (SCCM), Intune, Autopilot, and WSUS. No bootable media found system halted: Unable to PXE boot WDS to Virtualbox.

I hope you found this blog post helpful. If you encounter issues like “Unable to set working directory,” please let me know in the comment section, and I’ll do my best to assist you.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Microsoft Deployment Tool kit, Microsoft Deployment Toolkit (MDT), OS, WDS, Windows Deployment Services, Windows Server 2016

Post navigation

Previous Post: MDT deployment failed and Stuck at Command Prompt: Windows installation does not proceed via PXE boot
Next Post: How to remove a Bluetooth device and connect a new Bluetooth device to Macbook

Related Posts

  • sandboxx
    Use Windows Sandbox as a security feature Virtualization
  • images 8
    Microsoft Direct Access: Now Always On VPN Windows Server
  • 0318 4
    Active Directory Authentication methods: How do Kerberos and NTLM work Windows Server
  • Screenshot 2021 03 16 at 21.14.05
    Unable to locate the account: Fix call to DsGetDcNameWithAccount failed with return value 0x0000054B Windows Server
  • the Execute permission was denied
    Fix An error has occurred during report processing (rsProcessingAborted) Oracle/MSSQL/MySQL
  • https   blogs images.forbes.com jasonevangelho files 2018 06 windows 7 2018 edition 1200x676 1
    Windows deployment cannot continue, the operating system is missing via MDT deployment Windows Server

More Related Articles

sandboxx Use Windows Sandbox as a security feature Virtualization
images 8 Microsoft Direct Access: Now Always On VPN Windows Server
0318 4 Active Directory Authentication methods: How do Kerberos and NTLM work Windows Server
Screenshot 2021 03 16 at 21.14.05 Unable to locate the account: Fix call to DsGetDcNameWithAccount failed with return value 0x0000054B Windows Server
the Execute permission was denied Fix An error has occurred during report processing (rsProcessingAborted) Oracle/MSSQL/MySQL
https   blogs images.forbes.com jasonevangelho files 2018 06 windows 7 2018 edition 1200x676 1 Windows deployment cannot continue, the operating system is missing via MDT deployment Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • image 64
    Windows Local Account Authorization and Access Control Windows
  • banner
    How to Fix Python was not found run without arguments to install from the Microsoft Store Windows
  • Defender Antivirus
    Windows Defender Antivirus Management with Intune Anti-Virus Solution
  • cisco ASA
    Common Cisco ASA Commands Network | Monitoring
  • Delete Expired Profiles on Mac
    Remove Expired Configuration Profiles on Mac Mac
  • maxresdefault 2 7
    How to record your screen with PowerPoint and make slide shows Mac
  • ddf 2
    Add boot and install images to WDS and configure Multicast transmission via the GUI and WDSUTIL Windows Server
  • How to Restore Microsoft Authenticator App on a New Device
    How to fix “Action required” in Microsoft Authenticator App Microsoft Exchange/Office/365

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.