疑难解答和支持
使用 cmdlet 进行 IP 配置迁移的日志文件位置
Windows Server 迁移工具部署日志文件位于 %windir%\Logs\SmigDeploy.log。其他 Windows Server 迁移工具日志文件将在以下位置创建:
%windir%\Logs\ServerMigration.log
在 Windows Server 2008 和 Windows Server 2008 R2 上,日志文件位于:%localappdata%\SvrMig\Log
在 Windows Server 2003 上:%userprofile%\Local Settings\Application Data\SvrMig\Log
如果在上述位置中无法创建迁移日志文件,则会在 %temp% 中创建 ServerMigration.log 和 SmigDeploy.log,在 %windir%\System32 中创建其他日志。
查看 Windows Server 迁移工具结果对象的内容
所有 Windows Server 迁移工具 cmdlet 都以对象形式返回结果。可以保存结果对象并查询它们,以获取关于已迁移的设置和数据的详细信息。对于其他 Windows PowerShell 命令和脚本,还可以使用结果对象作为输入。
结果对象描述
Windows Server 迁移工具 Import-SmigServerSetting 和 Export-SmigServerSetting cmdlet 在 MigrationResult 对象列表中返回结果。每个 MigrationResult 对象都包含关于 cmdlet 所处理的数据或设置的信息、操作的结果以及任何相关的错误或警告消息。下表描述了 MigrationResult 对象的属性。
属性名称 | 类型 | 定义 |
ItemType | 枚举 | 正在迁移的项目的类型。值包括 General、WindowsFeatureInstallation、WindowsFeature 和 OSSetting。 |
ID | 字符串 | 已迁移项目的 ID。值的示例包括 Local User、Local Group 和 DHCP。 |
Success | 布尔型 | 如果迁移成功,则会显示值 True;否则,将显示 False。 |
DetailsList | 列表 <MigrationResultDetails> | MigrationResultDetails 对象列表。 |