SlideShare a Scribd company logo
1 of 11
Download to read offline
Windows 智慧运维
—— USMT 概览
Windows 10 Upgrade Ready Part-4
苏繁 | 2017.8
内容
• 什么是USMT
• USMT支持的操作系统
• USMT软件要求
• USMT最佳实践
• USMT工作原理
• USMT将迁移哪些内容
• USMT不迁移哪些内容
• USMT优势和限制
什么是USMT
• USMT
– 用户状态迁移工具
(Windows User State Migration Tool)
– USMT 10.0 含有三个命令行工具
• ScanState.exe
• LoadState.exe
• UsmtUtils.exe
– USMT 10.0含有一组可修改的.xml文件
• MigApp.xml
• MigDocs.xml
• MigUser.xml
USMT支持的操作系统
操作系统 ScanState(源计算机) LoadState(目标计算机)
Windows® XP Professional X
Windows XP Professional
x64 Edition
X
32 位版本的 Windows Vista X X
64 位版本的 Windows Vista X X
32 位版本的 Windows 7 X X
64 位版本的 Windows 7 X X
32 位版本的 Windows 8 X X
64 位版本的 Windows 8 X X
32 位版本的 Windows 10 X X
64 位版本的 Windows 10 X X
提示:可以将32位操作系统迁移到64位系统,但无法从64位迁移到32位。
USMT软件要求
• 必须使用最新版的PE,若要迁移到Win10需使用PE5.1
• 必须在管理员模式下运行,以确保迁移所有指定的用户。
否则在迁移过程中将只包含处于登录状态的用户配置文件。
USMT最佳实践
• 运行LoadState工具前安装应用程序
• 不要同时使用MigUser.xml和MigDocs.xml
• 使用MigDocs.xml以获得更好的迁移体验
• 在运行迁移工具前,关闭所有应用程序
• 运行LoadState后注销
• 运行迁移工具前运行Chkdsk执行磁盘检查
参考:https://technet.microsoft.com/zh-cn/library/mt299214(v=vs.85).aspx
USMT工作原理
• ScanState
1. ScanState将解析和验证命令行参数,创建
ScanState.log
2. 收集需要迁移的所有迁移组件的信息,包含文件、
注册表项和值的逻辑组。
• 用于迁移操作系统设置的组件
• 用于迁移应用程序设置的组件
• 用于迁移用户文件的组件
3. 确定应迁移的用户配置文件。(始终迁移公用配
置文件)
4. 在扫描阶段,ScanState将对选择的每个用户配置
文件执行以下操作:
a. 对于每个组件,检查组建的类型。如果当前用户配置
文件为系统配置文件,且组件类型为System或
UserAndSystem,则将为此用户选择组件。否则,将
忽略该组件。此外,如果当前用户配置文件不是系统
配置文件,且组件类型为User或UserAndSystem,则
将为此用户选择组件。否则,将忽略该组件。
b. 将进一步处理上一步中选择的每个组件。所有配置文
件特定的变量(如CSIDL_PERSONAL)都在当前配置
文件的上下文中进行评估。例如正在处理的配置文件
属于User1,则CSIDL_PERSONAL将展开到
C:UsersUser1Documents。
c. 对于每个选定的组件,ScanState将评估<detects>部
分。如果<detects>部分中的条件的评估结果为假,
则不会进一步处理该组件。否则,将继续处理该组件。
d. 对于每个选定的组件,ScanState将评估<rules>部分。
对于每个<rules>部分,如果当前用户配置文件为系
统配置文件,且<rules>部分的上下文为System或
UserAndSystem,则将进一步处理该规则。否则,将
忽略该规则。同理User或UserAndSystem。
e. ScanState将创建一个迁移单元列表,需要通过处理
此<rules>部分下的各个子部分来迁移这些单元。只
要在同一个<rules>部分的<exclude>子部分中没有针
对某个单元的特定规则,即收集在<include>子部分
中提到的每个单元。此外,将不会迁移
<UnconditionalExclude>部分中的任务迁移单元。
5. 在收集阶段,ScanState通过组合为每个选定的用
户配置文件创建的列表来创建迁移单元的主列表。
6. 在保存阶段,ScanState会将已收集的迁移单元写
入存储位置。
USMT将迁移哪些内容
• 默认迁移脚本
– MigApp.XML 迁移应用程序设置的规则。
– MigDocs.XML 使用MigXMLHelper.GenerateDocPatterns帮助程序函数的规则,该规则可用于自
动查找计算机上的用户文档,无需编写大量的自定义迁移.xml文件。
– MigUser.XML 迁移用户配置文件和用户数据的规则。
• 用户数据
– 每个用户配置文件中的文件夹
– 所有用户和公用配置文件中的文件夹
– 文件类型
– 访问控制列表
• 操作系统组件
– 辅助功能设置、通讯簿、命令提示符设置、桌面墙纸、EFS文件、收藏夹、文件夹选项、字体、
组成员身份、IE设置、ODBC设置、鼠标和键盘设置、网络驱动器映射、网络打印机映射、脱
机文件、电话和调制解调器选项、RAS、区域设置、远程访问、任务栏设置、用户个人证书、
WMP……
• 受支持的应用程序
– AcrobatReader、Chrome、Office……
USMT不会迁移哪些内容
• 应用程序设置
– 来自较低版本的应用程序设置。
– 创建本地账户时的应用程序设置和某些操作系统设置。
– Microsoft Project设置(Office 2003 to 2007)
• 操作系统设置
– 本地打印机、硬件相关的设置、驱动程序、密码、应用程序二进制文件、同步文件、DLL文件或其他可执行文件。
– 对共享文件夹的权限。迁移完成后,必须手动重新共享在源计算机上共享的所有文件夹。
– 在使用不同语言的操作系统之间迁移的文件和设置。
– 可能不会迁移自定义的快捷方式图标
– 任务栏设置(源计算机运行Windows XP 的情况下)。
USMT优势
• USMT 为要部署 Windows 操作系统的企业提供以下优势:
– 安全迁移用户账户、操作系统和应用程序设置
– 通过保留用户状态来降低部署Windows的成本
– 缩短自定义桌面以及查找丢失文件所需的最终用户停止时间
– 减少服务台咨询电话
– 缩短用户熟悉新操作系统所需的时间
– 提高员工对迁移体验的满意度
Windows智慧运维USMT概览

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Windows智慧运维USMT概览

  • 1. Windows 智慧运维 —— USMT 概览 Windows 10 Upgrade Ready Part-4 苏繁 | 2017.8
  • 2. 内容 • 什么是USMT • USMT支持的操作系统 • USMT软件要求 • USMT最佳实践 • USMT工作原理 • USMT将迁移哪些内容 • USMT不迁移哪些内容 • USMT优势和限制
  • 3. 什么是USMT • USMT – 用户状态迁移工具 (Windows User State Migration Tool) – USMT 10.0 含有三个命令行工具 • ScanState.exe • LoadState.exe • UsmtUtils.exe – USMT 10.0含有一组可修改的.xml文件 • MigApp.xml • MigDocs.xml • MigUser.xml
  • 4. USMT支持的操作系统 操作系统 ScanState(源计算机) LoadState(目标计算机) Windows® XP Professional X Windows XP Professional x64 Edition X 32 位版本的 Windows Vista X X 64 位版本的 Windows Vista X X 32 位版本的 Windows 7 X X 64 位版本的 Windows 7 X X 32 位版本的 Windows 8 X X 64 位版本的 Windows 8 X X 32 位版本的 Windows 10 X X 64 位版本的 Windows 10 X X 提示:可以将32位操作系统迁移到64位系统,但无法从64位迁移到32位。
  • 6. USMT最佳实践 • 运行LoadState工具前安装应用程序 • 不要同时使用MigUser.xml和MigDocs.xml • 使用MigDocs.xml以获得更好的迁移体验 • 在运行迁移工具前,关闭所有应用程序 • 运行LoadState后注销 • 运行迁移工具前运行Chkdsk执行磁盘检查 参考:https://technet.microsoft.com/zh-cn/library/mt299214(v=vs.85).aspx
  • 7. USMT工作原理 • ScanState 1. ScanState将解析和验证命令行参数,创建 ScanState.log 2. 收集需要迁移的所有迁移组件的信息,包含文件、 注册表项和值的逻辑组。 • 用于迁移操作系统设置的组件 • 用于迁移应用程序设置的组件 • 用于迁移用户文件的组件 3. 确定应迁移的用户配置文件。(始终迁移公用配 置文件) 4. 在扫描阶段,ScanState将对选择的每个用户配置 文件执行以下操作: a. 对于每个组件,检查组建的类型。如果当前用户配置 文件为系统配置文件,且组件类型为System或 UserAndSystem,则将为此用户选择组件。否则,将 忽略该组件。此外,如果当前用户配置文件不是系统 配置文件,且组件类型为User或UserAndSystem,则 将为此用户选择组件。否则,将忽略该组件。 b. 将进一步处理上一步中选择的每个组件。所有配置文 件特定的变量(如CSIDL_PERSONAL)都在当前配置 文件的上下文中进行评估。例如正在处理的配置文件 属于User1,则CSIDL_PERSONAL将展开到 C:UsersUser1Documents。 c. 对于每个选定的组件,ScanState将评估<detects>部 分。如果<detects>部分中的条件的评估结果为假, 则不会进一步处理该组件。否则,将继续处理该组件。 d. 对于每个选定的组件,ScanState将评估<rules>部分。 对于每个<rules>部分,如果当前用户配置文件为系 统配置文件,且<rules>部分的上下文为System或 UserAndSystem,则将进一步处理该规则。否则,将 忽略该规则。同理User或UserAndSystem。 e. ScanState将创建一个迁移单元列表,需要通过处理 此<rules>部分下的各个子部分来迁移这些单元。只 要在同一个<rules>部分的<exclude>子部分中没有针 对某个单元的特定规则,即收集在<include>子部分 中提到的每个单元。此外,将不会迁移 <UnconditionalExclude>部分中的任务迁移单元。 5. 在收集阶段,ScanState通过组合为每个选定的用 户配置文件创建的列表来创建迁移单元的主列表。 6. 在保存阶段,ScanState会将已收集的迁移单元写 入存储位置。
  • 8. USMT将迁移哪些内容 • 默认迁移脚本 – MigApp.XML 迁移应用程序设置的规则。 – MigDocs.XML 使用MigXMLHelper.GenerateDocPatterns帮助程序函数的规则,该规则可用于自 动查找计算机上的用户文档,无需编写大量的自定义迁移.xml文件。 – MigUser.XML 迁移用户配置文件和用户数据的规则。 • 用户数据 – 每个用户配置文件中的文件夹 – 所有用户和公用配置文件中的文件夹 – 文件类型 – 访问控制列表 • 操作系统组件 – 辅助功能设置、通讯簿、命令提示符设置、桌面墙纸、EFS文件、收藏夹、文件夹选项、字体、 组成员身份、IE设置、ODBC设置、鼠标和键盘设置、网络驱动器映射、网络打印机映射、脱 机文件、电话和调制解调器选项、RAS、区域设置、远程访问、任务栏设置、用户个人证书、 WMP…… • 受支持的应用程序 – AcrobatReader、Chrome、Office……
  • 9. USMT不会迁移哪些内容 • 应用程序设置 – 来自较低版本的应用程序设置。 – 创建本地账户时的应用程序设置和某些操作系统设置。 – Microsoft Project设置(Office 2003 to 2007) • 操作系统设置 – 本地打印机、硬件相关的设置、驱动程序、密码、应用程序二进制文件、同步文件、DLL文件或其他可执行文件。 – 对共享文件夹的权限。迁移完成后,必须手动重新共享在源计算机上共享的所有文件夹。 – 在使用不同语言的操作系统之间迁移的文件和设置。 – 可能不会迁移自定义的快捷方式图标 – 任务栏设置(源计算机运行Windows XP 的情况下)。
  • 10. USMT优势 • USMT 为要部署 Windows 操作系统的企业提供以下优势: – 安全迁移用户账户、操作系统和应用程序设置 – 通过保留用户状态来降低部署Windows的成本 – 缩短自定义桌面以及查找丢失文件所需的最终用户停止时间 – 减少服务台咨询电话 – 缩短用户熟悉新操作系统所需的时间 – 提高员工对迁移体验的满意度