1

Starting to build our customized migdocs config xml, and I am finding that USMT doesn't seem to support the Known Folder IDs, although this blog post seems to indicate that it should fully support them.

USMT now supports all of the KNOWNFOLDERID types now. Previously some (such as FOLDERID_Links) were not and required some hacking.

Looking through scanstate logs, and it appears that the only Known Folder ID that it is supported is the Downloads folder. This is also the only folder that I've seen used in other forum posts. We can use hardcoded paths or (hopefully) CSIDL references, but would like to use KnownFolderID's as they are the replacement for CSIDL, and should be supported.

This is an example of my usage in the MigDocs.xml:

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

If I have this pattern in an exclude, I find that it isn't excluded. If I change this line to:

<pattern type="File">C:\Program Files\FolderName\* [*]</pattern>

Then it works.

Edit to add information: - We're running this in offline mode, in Windows PE (actually, Windows RE from DaRT for Windows 8), and running it against an installation of windows 7.

  • It looks like you might be missing a backslash. Try <pattern type="file">%FOLDERID_ProgramFiles%\FolderName\* [*]</pattern>. This puts a backslash after FolderName to get everything inside 'FolderName' and all subdirectories. I'm basing this on all the examples from the TechNet article 'How to Include Files and Settings' from the User State Migration Tool (USMT) Technical Reference. – dwolters Jun 11 '13 at 15:17
  • that didn't come through properly... it won't put the last slash after 'Foldername'. maybe it did the same thing to you and you ARE using that slash? – dwolters Jun 11 '13 at 21:04
  • Yeah, I have the backslash on the end. I'm fairly confident the syntax is correct, because I can use hardcoded paths or CSIDL vars, but none of the FOLDERID vars seem to work. – Jason Sypkens Jun 12 '13 at 1:52
  • @WinOutreach4 Getting used to Markdown can be rough. Bashing on Markdown is a user theme... FIFY. – Chris S Jun 12 '13 at 15:54
  • According to the TechNet article 'Recognized Environment Variables', you would not write it as: %FOLDERID_ProgramFiles% Rather, you would write it as %ProgramFiles%. There are a few examples of this in the TechNet article 'Custom XML Examples', like this one: <pattern type="File">%ProgramFiles%\USMTDIRTestFolder* [*]</pattern> – dwolters Jun 12 '13 at 16:48
0

Looking through the default MigUSer.xml it seems like it supports the old syntax even though its supposedly replaced by Knowns Folder Id´s. I had succes using those in my custom file

%CSIDL_xxx_xxx% search for CSIDL and you will find the pathings

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.