Server Migration Cmdlets in Windows PowerShell

Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.

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 Windows Server® 2012. 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 Get-Command –Module ServerMigration cmdlet.

For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets:

Get-Help <cmdlet name> -Detailed
Get-Help <cmdlet name> -Examples
Get-Help <cmdlet name> -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