Jump to content


  • 0
spadge

USMT creates folder with System and Hidden Permissions

Question

Hi,

 

I use SCCM 2007 and USMT4 to manage our Windows 7 SP1 x64 machines. The build is changing to a single partition (C:\) instead of a C and D drive. When a current machine is rebuilt I have been asked to move all files/folders (with some exceptions) to a new folder on the C drive called C:\Migrated_Data.

 

I can successfully exclude folders from both the C and D partitions and move the data to the C:\Migrated_Data folder. However, the Migrated_Data folder is created with System and Hidden permissions set. Unless these permissions are removed (attrib -s -h) the folder would not be visible to users.

 

I would like to understand why USMT is doing this but after a few days of searching I cannot find an answer to this problem. I could run the attrib -s -h c:\Migrated_Data command within an OSD task sequence step but I would prefer to stop USMT creating the root folder with these permissions.

 

All subsequent folders are not set to hidden.

 

I use the standard MigApp.xml and MigDocs.xml (which I have customised ---- see below) and a custom XML file to migrate application data for the CAD packages we use. I have tried recreating the config.xml (scanstate.exe /genconfig:config.xml) but that has made no difference.

 

Any help / pointers you could provide would be greatly appreciated.

<?xml version="1.0" encoding="UTF-8"?>


-<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/migdocs">


<!-- This component migrates data in system context -->






-<component context="System" type="Documents">


<displayName>MigDocSystem</displayName>




-<role role="Data">




-<rules>


<!-- GenerateDocPatterns takes 3 arguments 1. generate patterns for scattered files inside %ProgramFiles% 2. generate include patterns (FALSE generates exclude patterns) 3. generate patterns for system drive only -->






-<exclude filter="MigXmlHelper.IgnoreIrrelevantLinks()">




-<objectSet>


<script>MigXmlHelper.GenerateDocPatterns ("FALSE","FALSE","FALSE")</script>


</objectSet>


</exclude>


<!-- Example: <exclude> <objectSet> <pattern type="File">%CSIDL_COMMON_VIDEO%\* [*]</pattern> </objectSet> </exclude> -->






-<contentModify script="MigXmlHelper.MergeShellLibraries('TRUE','TRUE')">




-<objectSet>


<pattern type="File">* [*.library-ms]</pattern>


</objectSet>


</contentModify>




-<merge script="MigXmlHelper.SourcePriority()">




-<objectSet>


<pattern type="File">* [*.library-ms]</pattern>


</objectSet>


</merge>




-<include>




-<objectSet>


<script>MigXmlHelper.GenerateDocPatterns('false','true','false')</script>


</objectSet>


</include>




-<unconditionalExclude>




-<objectSet>


<pattern type="File">D:\EVARCHIVE\* [*]</pattern>


<pattern type="File">C:\EVARCHIVE\* [*]</pattern>


<pattern type="File">C:\DrvInst\* [*]</pattern>


<pattern type="File">D:\_SMSTaskSequence\* [*]</pattern>


<pattern type="File">C:\_SMSTaskSequence\* [*]</pattern>


<pattern type="File">C:\Oracle\* [*]</pattern>


<pattern type="File">C:\ThinInst\* [*]</pattern>


<pattern type="File">C:\Intel\* [*]</pattern>


<pattern type="File">C:\PerfLogs\* [*]</pattern>


<pattern type="File">C:\Support\* [*]</pattern>


<pattern type="File">C:\SWTOOLS\* [*]</pattern>


</objectSet>


</unconditionalExclude>


</rules>


</role>


</component>


<!-- This component migrates data in user context -->






-<component context="User" type="Documents">


<displayName>MigDocUser</displayName>




-<role role="Data">




-<rules>




-<exclude filter="MigXmlHelper.IgnoreIrrelevantLinks()">




-<objectSet>


<script>MigXmlHelper.GenerateDocPatterns ("FALSE","FALSE","FALSE")</script>


</objectSet>


</exclude>


<!-- Example: <exclude> <objectSet> <pattern type="File">%CSIDL_MYVIDEO%\* [*]</pattern> </objectSet> </exclude> -->






-<contentModify script="MigXmlHelper.MergeShellLibraries('TRUE','TRUE')">




-<objectSet>


<pattern type="File">* [*.library-ms]</pattern>


</objectSet>


</contentModify>




-<merge script="MigXmlHelper.SourcePriority()">




-<objectSet>


<pattern type="File">* [*.library-ms]</pattern>


</objectSet>


</merge>




-<include>




-<objectSet>


<script>MigXmlHelper.GenerateDocPatterns('false','true','false')</script>


<pattern type="File">D:\* [*]</pattern>


</objectSet>


</include>




-<locationModify script="MigXmlHelper.Move('C:\Migrated_Data')">




-<objectSet>


<pattern type="File">D:\* [*]</pattern>


</objectSet>


</locationModify>




-<unconditionalExclude>




-<objectSet>


<pattern type="File">D:\EVARCHIVE\* [*]</pattern>


</objectSet>


</unconditionalExclude>


</rules>


</role>


</component>


</migration>

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.