Server Migration Cmdlets in Windows PowerShell

Windows PowerShell® 是基于任务的命令行 shell 和脚本语言,专为系统管理而设计。本参考主题面向信息技术 (IT) 专业人员,可在利用 Windows PowerShell cmdlet 编写脚本和对任务实施自动化时提供协助。

Server Migration Cmdlets

This reference provides cmdlet descriptions and syntax for all Server Migration cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.

Administrators can use the Windows Server Migration Tools cmdlets for Windows PowerShell to migrate server roles, features, operating system settings, and other data and shares to computers that are running the latest version of Windows Server. For more information about how to migrate specific roles and features, see Migrate Roles and Features to Windows Server 2012.

备注

Help for the cmdlets in the Windows Server Migration Tools module cannot be updated on your computer by running the Update-Help cmdlet.

Cmdlet Description

Export-SmigServerSetting

Exports selected Windows features and operating system settings from the local computer, and stores them in a migration store.

Get-SmigServerFeature

Gets the set of all Windows features that can be migrated from the local server or from a migration store.

Import-SmigServerSetting

Imports selected Windows features and operating system settings from a migration store, and applies them to the local computer.

Receive-SmigServerData

Allows a destination server to receive shares, folders, files, and associated permissions and share properties that are migrated from a source server. The cmdlet Send-SmigServerData must be run on the source server at the same time Receive-SmigServerData is running on the destination server.

Send-SmigServerData

Migrates folders, files, and associated permissions and share properties from a source server to a destination server through port 7000. The cmdlet Receive-SmigServerData must be run on the destination server at the same time Send-SmigServerData is running on the source server.

To list all the cmdlets that are available, use the following commands:

PS C:\> Add-PSSnapin Microsoft.Windows.ServerManager.Migration
PS C:\> Get-Command -Module Microsoft.Windows.ServerManager.Migration

有关任何 cmdlet 或其语法的详细信息,请使用 Get-Help <cmdlet 名称> cmdlet,其中 *<cmdlet 名称>*是你要搜索的 cmdlet 的名称。若需了解详细信息,可以运行以下任一 cmdlet:

Get-Help <cmdlet 名称> -Detailed
Get-Help <cmdlet 名称> -Examples
Get-Help <cmdlet 名称> -Full

More Information

For more information about the cmdlets, see the following:

Install, Use and Remove Windows Server Migration Tools
Windows Server 2012 Migration Portal
Windows Server Migration forums on Microsoft TechNet