GithubHelp home page GithubHelp logo

Comments (1)

btstevens avatar btstevens commented on July 27, 2024

Hello @vankampenp . When you say 'non standard locations' are the locations being changed within explorer or another method?

Documents example:
image

We have added the ability in the tool to utilize the custom.xml within the tool. This was a first pass at allowing custom rules to achieve similar to what you discussed above and account for custom system migration scenarios.

By clicking on the checkbox 'Use Custom XML' it will take you the 'USMT Custom.XML' tab. The xml here will then be used in the migration and allows you to customize what is included or excluded in the migration steps.

image

The pre-populated custom.xml is adding an INCLUDE to also migrate 'appdata' folders. This could be useful for example where you want to migrate the google local app data and exclude the slack subfolder. This granularity can be built out to help migrate different applications.

image

the default behavior of the tool as you have seen is to INCLUDE the Desktop, Documents, Downloads etc. folders no matter where they are redirected. So in your case if you DON'T use the custom.xml it will attempt to pull D:\Photos with no exclusions and as a result take a long time if there are a lot of files.

To get around this, we can utilize the custom.xml and either exclude a location/directory or we can include a specific location/directory or even file type.

A good XML example would be:

<component type="Documents" context="System">
  <displayName>Component to migrate all user documents except Sample.doc</displayName>
  <role role="Data">
    <rules>
         <include>
            <objectSet>
                 <pattern type="File"> C:\UserDocuments\* [*]</pattern>
            </objectSet>
          </include>
        <exclude>
             <objectSet>
                 <pattern type="File"> C:\UserDocuments\ [Sample.doc]</pattern>
             </objectSet>
          </exclude>
    </rules>
  </role>
</component>

More information on the XML syntax can be found here:
https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-custom-xml-examples

For your issue example if I wanted to include everything but EXCLUDE the photos directory that was redirecting to D:\Photos\

I would choose custom.xml and add something like this:

<component type="Documents" context="System">
  <displayName>Exclude Entire D:\Photos Directory</displayName>
  <role role="Data">
    <rules>
         <include>
          </include>
        <exclude>
             <objectSet>
                 <pattern type="File"> D:\Photos\* [*]</pattern>
             </objectSet>
          </exclude>
    </rules>
  </role>
</component>

Then when the tool runs, it should migrate everything based on your redirection, when it comes to Pictures which is redirected to D:\Photos\ it will skip them and as a result be alot faster and move to the next thing.

I understand the explanation above is overly complicated and we are working on further ways to simplify and present this to the admin. But as your issue outlines, each system can be configured differently for a myriad of reasons. By exposing the custom.xml despite being complicated allows a way to solve said issues.

Please reach out and let me know if this helps or I can help further.

from jumpcloud-admu.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.