WinXP、Win7脚本自动加域及用户资料迁移(二)
四、USMT4.0工具使用说明
Win7AutoAddDomain.bat文件使用到了USMT工具,具体用法参考微软网站。
miguser.xml文件负责用户信息的迁移,如用户配置文件(我的文档、桌面、收藏夹等),同时他默认会迁移其他分区中的关键类型文件(qdf、qsd、qel、doc等)。我们为了降低用户数据的备份时间我们可以修改该XML文件让他只做系统盘(通常C盘)的备份,其他盘的数据忽略,修改方法为将先面字段:
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qdf]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qsd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qel]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qph]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.doc*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dot*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.rtf]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mcw]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wps]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.scd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wri]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wpd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.xl*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.csv]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.iqy]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dqy]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.oqy]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.rqy]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wk*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wq1]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.slk]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dif]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppt*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pps*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pot*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.sh3]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ch3]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pre]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppa]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.txt]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pst]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.one*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vl*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vsd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mpp]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.or6]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.accdb]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mdb]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pub]", "Fixed")</script>
替换为:
<script>MigXmlHelper.GenerateDrivePatterns ("[*.111]", "Fixed")</script>
替换这行的意义为只备份其他磁盘扩展名“111”的文件,而实质上这个类型的文件不存在,从而达到我们的需要的效果。
注意:
1、曾经尝试过删除这两个区域但在进行“scanstate”时报错。
2、有两个地方都要替换,这两个区域是连续在一起的,且需要替换的字段都是一样的。
完!