Receiving WARNING - unable to set working directory: (-2147024843) when installing applications.

AKyz 1 Reputation point
2022-06-30T22:40:18.21+00:00

Hey All,

Been fighting with MDT all day when attempting to build my reference image. Getting WARNING - unable to set working directory: (-2147024843) when attempting to install 4 separate applications see the log entry below from the ZTIApplications.log. Any clue why? It doesn't look like a credential issue seeing that it "established connection using supplied credentials".

Thanks in advance!

<![LOG[Language/Locale Identified (in order of precedence): 1033,0409,0x0409,9,0009,0x0009]LOG]!><time="16:08:36.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Mandatory Single Application install indicated. Guid: {d8a772f2-4c19-458e-b551-763ba0fac1a2}]LOG]!><time="16:08:36.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[################]LOG]!><time="16:08:36.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Entry: {d8a772f2-4c19-458e-b551-763ba0fac1a2}]LOG]!><time="16:08:36.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Name: Microsoft Office Professional Plus 2016 (64-bit) 16.0.4266.1001]LOG]!><time="16:08:36.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[################]LOG]!><time="16:08:36.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Validating connection to \DOMAIN.COM\dfs\Applications\Microsoft Office Professional Plus 2016 (64-bit)]LOG]!><time="16:08:36.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Mapping server share: \DOMAIN.COM\dfs]LOG]!><time="16:08:36.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Mapped Network UNC Path Y: = \DOMAIN.COM\dfs]LOG]!><time="16:08:37.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Found Existing UNC Path Y: = \DOMAIN.COM\dfs]LOG]!><time="16:08:37.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Successfully established connection using supplied credentials.]LOG]!><time="16:08:37.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[ Change directory: \DOMAIN.COM\dfs\Applications\Microsoft Office Professional Plus 2016 (64-bit)]LOG]!><time="16:08:37.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[WARNING - unable to set working directory: (-2147024843)]LOG]!><time="16:08:41.000+000" date="06-30-2022" component="ZTIApplications" context="" type="2" thread="" file="ZTIApplications">
<![LOG[ Run Command: \SERVER.DOMAIN.COM\DeploymentShare21H2$\Tools\X64\bddrun.exe setup.exe]LOG]!><time="16:08:41.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[ZTI installing application ]LOG]!><time="16:08:41.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[About to run command: \SERVER.DOMAIN.COM\DeploymentShare21H2$\Tools\X64\bddrun.exe setup.exe]LOG]!><time="16:08:41.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Command has been started (process ID 8076)]LOG]!><time="16:08:42.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Return code from command = 2]LOG]!><time="16:08:42.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Application Microsoft Office Professional Plus 2016 (64-bit) 16.0.4266.1001 returned an unexpected return code: 2]LOG]!><time="16:08:42.000+000" date="06-30-2022" component="ZTIApplications" context="" type="3" thread="" file="ZTIApplications">
<![LOG[Property InstalledApplications001 is now = {d8a772f2-4c19-458e-b551-763ba0fac1a2}]LOG]!><time="16:08:42.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[ZTIApplications processing completed successfully.]LOG]!><time="16:08:42.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Microsoft Deployment Toolkit version: 6.3.8456.1000]LOG]!><time="16:08:42.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[The task sequencer log is located at C:\Users\ADMINI~1\AppData\Local\Temp\SMSTSLog\SMSTS.LOG. For task sequence failures, please consult this log.]LOG]!><time="16:08:42.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
<![LOG[Language/Locale Identified (in order of precedence): 1033,0409,0x0409,9,0009,0x0009]LOG]!><time="16:08:42.000+000" date="06-30-2022" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Simon Ren-MSFT 40,341 Reputation points Microsoft External Staff
    2022-07-03T16:51:50.353+00:00

    Hi,

    1,Maybe the working directory is changed and no longer exists that is assigned to the application to be installed, we can try to copy the application directory (files) to the DeployShare file system.
    Similar thread: MDT application unable to set working directory: (-2147024843)
    Note: This is non-Microsoft link, just for your reference.

    2,We can try to add a reboot step between the application installation steps.

    3,Please also make sure the account that you are connecting with, needs at least read NTFS, if not read/write.

    Hope it helps. Thanks for your time.

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.