Skip to content

USMT creates folder with System and Hidden Permissions

Featured Replies

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>

 

  • 2 months later...

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.