Ask a questionAsk a question
 

AnswerUSMT 4.0 Task Sequence with App-V

  • Friday, October 30, 2009 6:24 PMmclanem Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Here is my current situation.

    I am trying to put together a task sequence using SCCM SP2 with R2 that will use USMT with hardlinking to retain user data.  Scanstate runs but fails when it tries to scan c:\Users\Public\Documents\SoftGrid Client [sftfs.fsd].  The Error suggests that the file is in use by a different process.  If I disable the sftlist service and reboot then scanstate will work successfully but this is not a workable solution in the task sequense as far as I know and I would like this fully automated.

    Do anyone know of a way around this issue?

Answers

All Replies

  • Friday, October 30, 2009 8:39 PMNiall C. Brady Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    have you tried editing your xml file and changing migrate="yes" to migrate="no" for the specific file type ? you may have to add it if it is not present

    my SCCM step by step Guides > http://www.windows-noob.com/forums/index.php?showtopic=1064
  • Monday, November 02, 2009 1:26 PMmclanem Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Which XML file would that be.  To be honest I am not very familiar with USMT.  I have been looking at the how to exclude files from being included but so far that has not worked.

    Matt
  • Monday, November 02, 2009 2:39 PMNiall C. Brady Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    what os are you migrating from and to ?
    my SCCM step by step Guides > http://www.windows-noob.com/forums/index.php?showtopic=1064
  • Monday, November 02, 2009 2:56 PMmclanem Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Either Vista to Win7 or Win7 to Win7.

    Matt
  • Monday, November 02, 2009 3:07 PMNiall C. Brady Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    you'll need to edit the MigUser.xml file file then

    to edit it look here



    my SCCM step by step Guides > http://www.windows-noob.com/forums/index.php?showtopic=1064
  • Monday, November 02, 2009 7:33 PMmclanem Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thats what I originally thought.  I had put an exclusion in the bottom part of that file, but it wasn't working.  Playing with it a little more, I copied the exclusion to the shared documents section and I think I may have gotten past this.  If anyone is interested in exactly what I have done, let me know
  • Monday, November 02, 2009 8:39 PMNiall C. Brady Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    great, once you have it working please do share so that others may learn

    cheers
    niall
    my SCCM step by step Guides > http://www.windows-noob.com/forums/index.php?showtopic=1064
  • Tuesday, November 03, 2009 1:12 PMmclanem Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I fixed this by adding the following like to the MigUser.xml file.  This is the Shared My Documents files section and I added what was in bold.   believe this would need to be done anywhere that the client has the App-V client installed and running.

        <!-- This component migrates Shared My Documents files -->
        <component type="Documents" context="System">
            <displayName _locID="miguser.shareddocs">Shared Documents</displayName>
            <paths>
                <path type="File">%CSIDL_COMMON_DOCUMENTS%</path>
            </paths>
            <role role="Data">
                <detects>
                    <detect>
                        <condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_COMMON_DOCUMENTS%")</condition>
                    </detect>
                    <detect>
                        <condition negation="Yes">MigXmlHelper.IsSameObject("File","%CSIDL_PERSONAL%", "%CSIDL_COMMON_DOCUMENTS%")</condition>
                    </detect>
                </detects>
                <rules>
                    <exclude>
                        <objectSet>
                            <pattern type="File">%CSIDL_COMMON_PICTURES%\* [*]</pattern>
                            <pattern type="File">%CSIDL_COMMON_MUSIC%\* [*]</pattern>
                            <pattern type="File">%CSIDL_COMMON_VIDEO%\* [*]</pattern>
                            <pattern type="File">C:\Users\Public\Documents\SoftGrid Client\* [*]</pattern>
                        </objectSet>
                    </exclude>
                    <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
                        <objectSet>
                            <pattern type="File">%CSIDL_COMMON_DOCUMENTS%\* [*]</pattern>
                        </objectSet>
                    </include>
                    <merge script="MigXmlHelper.DestinationPriority()">
                        <objectSet>
                            <pattern type="File">%CSIDL_COMMON_DOCUMENTS% [desktop.ini]</pattern>
                        </objectSet>
                    </merge>
                </rules>
            </role>
        </component>
  • Tuesday, November 03, 2009 1:13 PMNiall C. Brady Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    great result, thanks for sharing.

    you could change it some more to use KNOWNFOLDERID

    so...

    <pattern type="File">C:\Users\Public\Documents\SoftGrid Client\* [*]</pattern>
    
    would become
    
    <pattern type="File">%FOLDERID_Public%\ Documents\SoftGrid Client\* [*]</pattern> 


    see http://msdn.microsoft.com/en-us/library/bb762584%28VS.85%29.aspx for more details on that


    my SCCM step by step Guides > http://www.windows-noob.com/forums/index.php?showtopic=1064