none
Change working directory-script/batch or change which File? RRS feed

  • Question

  • Hello,

    i want to change the ip-adress for the working-directory for many applications in mdt 2012.

    The only information that need to be changed is the ip-adress.

    This is a hell of a job doing this manually from the console (and also very slow because the old working-directory isn`t available anymore).

    What script/batch or file can be changed easily for mulitple applications to change the working directory?

    Thx

    Tuesday, September 10, 2013 8:17 AM

Answers

  • I normally don't suggest editing XML files directly, but in this case that's going to be the easiest solution. Step-by-step:

    1. On your deployment share, navigate to the "Control" folder.
    2. Make a backup copy of the "Applications.xml" file, just in case.
    3. Open the "Applications.xml" file in Notepad.exe.
    4. Find and replace the UNC paths that you want to fix, then save the file.

    After doing this, refresh the app list in Workbench and verify that you can see the updated working directories.


    Thanks,
    -Michael Niehaus
    Senior Product Marketing Manager, Windows Deployment
    http://blogs.technet.com/mniehaus
    mniehaus@microsoft.com

    • Proposed as answer by Hollanders, Rens Tuesday, September 10, 2013 8:36 AM
    • Marked as answer by Mvd12345 Tuesday, September 10, 2013 8:39 AM
    Tuesday, September 10, 2013 8:29 AM

All replies

  • I normally don't suggest editing XML files directly, but in this case that's going to be the easiest solution. Step-by-step:

    1. On your deployment share, navigate to the "Control" folder.
    2. Make a backup copy of the "Applications.xml" file, just in case.
    3. Open the "Applications.xml" file in Notepad.exe.
    4. Find and replace the UNC paths that you want to fix, then save the file.

    After doing this, refresh the app list in Workbench and verify that you can see the updated working directories.


    Thanks,
    -Michael Niehaus
    Senior Product Marketing Manager, Windows Deployment
    http://blogs.technet.com/mniehaus
    mniehaus@microsoft.com

    • Proposed as answer by Hollanders, Rens Tuesday, September 10, 2013 8:36 AM
    • Marked as answer by Mvd12345 Tuesday, September 10, 2013 8:39 AM
    Tuesday, September 10, 2013 8:29 AM
  • Works Great.

    Thx!

    Tuesday, September 10, 2013 8:39 AM