Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

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

Posted on 07/10/202003/09/2026 Christian By Christian No Comments on MDT Warning: Unable to set working directory, the application returned an unexpected code 2
  1. Home
  2. Windows Server
  3. 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. Please see Synology Surveillance365: Cloud-Based Camera Management Without an On-Premises Surveillance Server, and Strategic breakdown and step by step guide to upgrading to VBR 13.1.

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.

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

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.

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

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
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

  • Install Microsoft PKI ADCS
    Set up Microsoft PKI (ADCS) for SystoLOCK via PowerShell Windows Server
  • needthetools
    Fix no BitLocker Recovery tab in Active Directory Windows Server
  • INACCESSIBLE BOOT DEVICE in Windows and Windows Server e1786794584350
    Fix INACCESSIBLE_BOOT_DEVICE in Windows and Windows Server Windows
  • windows update 03
    Check if Windows Updates were installed via the Registry Editor Windows
  • How do I disable credentials from Remote Desktop
    Disable credential Prompts for Remote Desktop Connections Windows
  • 10.0.17763.1 error
    Fix Windows 10 Setup 1809 build 10.0.17763.1 is not supported Error Windows Server

More Related Articles

1 WeXxkEX0JG3oB781HD8Hrg 3 Fix Access denied to the hard drive, and the security tab missing under properties Windows Server
ycx Detect registry keys using Process Monitor using Sysinternals Tools Windows Server
Resolvederror MBAM MBAM Policy was detected: Verify the OU used for pre-deployment does not apply MBAM policy Windows Server
wmic4 How to find User Security Identifier (SID) in Windows [Part 1] Windows
microsoft logo rgb wht All about Group Policies: Group Policy GPUpdate Commands Windows Server
integrate Icloud with Windows Synchronize Apple Calendar on Windows with Outlook [Part 2] Mac

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • openstack ola
    Openstack Deployment with Devstack Linux
  • fdsdsd
    Configuring DHCP Scope: Post-deployment of Dynamic Host Configuration Protocol Windows Server
  • Feature image Wakeonlan
    How to download and use the NirSorf WakeonLan tool Network | Monitoring
  • fsa
    How to prevent MacBook from automatically Logging out Mac
  • Gemini Generated Image gt62f8gt62f8gt62
    Hardening Veeam Backup & Replication on Windows 2025: A CIS-Compliant Walkthrough Backup
  • zoom
    How to install Zoom on macOS Mac
  • Featured image Clearing cache
    How to clear cache in Windows 11 Windows
  • Object First OOTBI Best Storage Repo for Veeam
    Understanding User Roles & Access Control in Object First OOTBI Backup

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.