Jump to content


Recommended Posts

Hi all,

I really hope someone can help as I've spent an unbelievable amount of time trying to get this working with no success.

I'm using USMT from the 1607 ADK and I'm trying to relocate a legacy Sticky Note file (.snt) from a windows 7 machine to the new Sticky Note modern app location on a Windows 10 machine.

W7 location = %AppData%\Roaming\Sticky Notes\StickyNotes.snt

W10 (1607) location = %LocalAppData%\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState

 

My USMT script is currently able to sucessfully collect up the snt file from a W7 machine and return it to the exact same place on a W10 machine but a manual step is then required to move this file to the new loaction.  A legacy snt file can be migrated to W10 by creating a new folder called "Legacy" and putting the "StickyNotes.snt" file in there and renaming it to "ThresholdNotes.snt".  So I require the USMT restore to create the "Legacy" folder, put the "StickyNotes.snt" file in it, then rename it to "ThresholdNotes.snt so that the new path looks like:

%LocalAppData%\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\Legacy\ThresholdNotes.snt

This is explianed here: http://www.winhelponline.com/blog/recover-backup-sticky-notes-data-file-windows-10/

 

I have found the following info online where someone has apparently got USMT sucessfully migrating snt files to the correct location but I can't get it working:  https://www.mail-archive.com/mdtosd@lists.myitforum.com/msg03057.html

 

Has anyone successfully managed to migrate StickyNote files over in this way with USMT?

Thanks,

Westy

Share this post


Link to post
Share on other sites


I found that if you confirm that your USMT scripts have a migration rule for the .snt extension and you let it migrate from a W7 machine to the same location on a W10 machine, the W10 modern app will check the old W7 location and auto migrate any .snt files to the new area on first run.

Share this post


Link to post
Share on other sites

<!-- This component migrates user files with known extension-->
 <component type="Documents" context="UserAndSystem">
  <displayName _locID="miguser.userdata">User Data</displayName>
  <role role="Data">
   <rules context="System">
    <include>
     <objectSet>

 <script>MigXmlHelper.GenerateDrivePatterns ("* [*.snt]", "Fixed")</script>
     </objectSet>

  • Thanks 1

Share this post


Link to post
Share on other sites

Thank you for the quick reply.

just to be sure , did you add this to your migdocs.xml,  migapp.xml or simply created now xml like Stickynotes.xml and included in scanstate command ( ex. i:stickynotes.xml )

Share this post


Link to post
Share on other sites

Apologies as I was rushing when I posted that snippet above.

Open the "MigUser.xml" which is a standard file with USMT. Search for "This component migrates user files with known extension" and then add the following line into this section:

<script>MigXmlHelper.GenerateDrivePatterns ("* [*.snt]", "Fixed")</script>

This should then migrate any W7 .snt files from APPDATA/Roaming/MICROSOFT/Sticky notes to the same place on a W10 machine.  Then the first time you launch Windows 10 Sticky Notes it will check this location for any legacy .snt files for that user profile and migrate it into the W10 area AppData\Local\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe

Hope this helps,

Westy

Share this post


Link to post
Share on other sites

Hello,

I don't use miguser.xml , I use migdocs.xml since it backsup files on c: drive as well.

I guess I can copy this section from miguser.xml into migdocs.xml with added line for snt files and try.

 

so I added the line to migdocs.xml as follow:

<!-- This component migrates data in user context -->
  <component type="Documents" context="User">
    <displayName>MigDocUser</displayName>
    <role role="Data">
      <rules>
        <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
          <objectSet>
            <script>MigXmlHelper.GenerateDocPatterns ("FALSE","TRUE","FALSE")</script>
          </objectSet>
        </include>
        <exclude filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
          <objectSet>
            <script>MigXmlHelper.GenerateDocPatterns ("FALSE","FALSE","FALSE")</script>
            <script>MigXmlHelper.GenerateDrivePatterns ("* [*.snt]", "Fixed")</script>
          </objectSet>
        </exclude>

 

 

the stickynotes.snt seems to be being backed up since I can see it in usmt.mig , but when I run loadstate it is not being restored.

I manually copied it to to  APPDATA/Roaming/MICROSOFT/Sticky notes path to see if windows 10 will convert it as you said, but did not have any luck with that either.

what build of windows 10 do you use?

I am using 1709

thanks

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...