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 `%FOLDERID_ProgramFiles%\FolderName\* [*]`. 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](http://technet.microsoft.com/en-us/library/hh824833.aspx)' 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 01: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](http://technet.microsoft.com/en-us/library/hh825266.aspx)', 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](http://technet.microsoft.com/en-us/library/hh824988.aspx#Example4+)', like this one: %ProgramFiles%\USMTDIRTestFolder\* [*] – dwolters Jun 12 '13 at 16:48
  • From what I can tell, it looks like it's supposed to support both. It supports environment variables (per your link), as well as CSIDL, and is [supposed to support KnownFolderIDs as well.](http://blogs.technet.com/b/askds/archive/2012/04/13/new-usmt-5-0-features-for-windows-8-consumer-preview.aspx) - which is the replacement to CSIDL. You can see people who have successfully used KnownFolderIDs [here](http://social.technet.microsoft.com/Forums/en-US/itprovistamigration/thread/c237e65d-ac30-4552-babd-04f01a59b370) - but it only seems to support the downloads folder... – Jason Sypkens Jun 13 '13 at 13:25

1 Answers1

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