使用PowerShell进行Microsoft Exchange迁移

时间:2015-06-03 13:09:34

标签: powershell migration exchange-server

我们正在使用power shell进行Microsoft Exchange迁移。我们成功执行了“perpare-moverequest.ps1”命令。然后我们尝试运行“New-MoveRequest”命令。但是我们收到了错误。因为它要求SID历史记录和密码迁移权限问题。有许多工具可以帮助我们进行密码迁移,例如ADMT工具,以允许密码迁移。但我们正试图从power shell命令实现它。有一个命令可用,它是“import-module SIDhistory”但它的抛出错误

  • Import-Module sidhistory
  • ~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo:ResourceUnavailable:(C:\ Users .... sidhistory.psd1:String)[Import- 模块],MissingMemberException
    • FullyQualifiedErrorId:Modules_InvalidManifest,Microsoft.PowerShell.Commands.ImportModuleCommand

要么我们缺少一些命令,要么会有任何其他命令来实现这一点。请指导我们。

1 个答案:

答案 0 :(得分:0)

首先,您需要运行Import-Module ActiveDirectory,并在成功导入后再运行Import-Module SIDHistory。 附:在某些情况下(取决于您使用的powershell版本),您需要通过提供完整路径来导入模块。 E.g。

导入 - 模块名称' C:\ SomePath \ modules \ SIDHistory \ SIDHistory.psm1'

干杯。

相关问题