Jump to content

USMT Won't migrate Empty Folders


Recommended Posts

Hello Everyone!,

I've got one small but infuriating issue with my custom USMT XML files.

Our organization is all XP but we are using the USMT 3.00

In a nut shell I have a profile backup HTA i've written that lets you pick Data, Settings, or Both and uses the USMT to back up the logged on users profile data and settings.

Basically to give all of our Power User's the ability to run a quick backup and/or restore on their profile only since most backup software needs admin rights to really function well if at all in some cases (Thanks a lot Acronis)

Everything is working just fine have all the tweaks i want but for some reason it refuses to migrate Empty folders

Here's an excerpt from my custom LPMigUser.xml file to migrate the Desktop folder

  <!-- This component migrates Desktop files -->
<component type="Documents" context="User">
<displayName>Desktop</displayName>
<paths>
<path type="File">%CSIDL_DESKTOP%</path>
</paths>
<role role="Data">
<rules>
<include>
<objectSet>
<pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern>
</objectSet>
</include>
<merge script="MigXmlHelper.DestinationPriority()">
<objectSet>
<pattern type="File">%CSIDL_DESKTOP% [desktop.ini]</pattern>
</objectSet>
</merge>
<merge script="MigXmlHelper.SourcePriority()">
<objectSet>
<pattern type="File">%CSIDL_DESKTOP%\* [*]</pattern>
</objectSet>
</merge>
</rules>
</role>
</component>

Now according to MS's documentation the line

<pattern type="File">%CSIDL_DESKTOP%\*\[*]</pattern>

Should migrate all the files AND all the sub folders AND all the files in said sub folders etc.

However when i run it if i have for instance the following folder tree

  • Desktop
    • Empty Folder
    • Folder with File
      • Some File.txt

when the scanstate is done out where scanstate puts all the captured folder and files the Folder with File folder will be there but the Empty Folder folder will not.

WHY? that's all i want to know

Ok I lied I also want to know HOW do i make it capture the empty sub folders

Any help is appreciated

Cheers,

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...