简体   繁体   English

使用Powershell进行Microsoft Exchange迁移

[英]Microsoft Exchange migration with powershell

We are working on Microsoft Exchange migration with power shell. 我们正在使用Power Shell进行Microsoft Exchange迁移。 we successfully executed the "perpare-moverequest.ps1" command. 我们成功执行了“ perpare-moverequest.ps1”命令。 then we are trying to run "New-MoveRequest" command . 然后我们尝试运行“ New-MoveRequest”命令。 but we are getting error. 但是我们遇到了错误。 because it asking for SID history and password migration permission issue. 因为它询问SID历史记录和密码迁移许可问题。 there are many tools which can help us for Password migration like ADMT tool to allow password migration. 有许多可以帮助我们进行密码迁移的工具,例如允许密码迁移的ADMT工具。 but we are trying to achieve it from power shell command. 但是我们正在尝试通过Power Shell命令来实现。 there is command available which is "import-module SIDhistory" but its throwing error 有可用的命令是“导入模块SIDhistory”,但其抛出错误

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

Either we are missing some command or there would be any other command to achieve this. 我们要么缺少某些命令,要么会有其他命令来实现此目的。 please guide us . 请指导我们。

First you need to run Import-Module ActiveDirectory, and after you've successfully imported it, then run Import-Module SIDHistory. 首先,您需要运行Import-Module ActiveDirectory,然后成功导入它,然后运行Import-Module SIDHistory。 PS in some cases (depending which powershell version you are using) you will need to import the module by providing the full path. 在某些情况下,PS(取决于您使用的PowerShell版本)将需要通过提供完整路径来导入模块。 Eg 例如

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

Cheers. 干杯。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM