ПроблемаLink to Проблема

Тестирование соединения в настройках RuPost Migration Tool заканчивается с ошибкой "Error executing command 'Get-ADUser'".

ДиагностикаLink to Диагностика

  • Проверить лог RuPost Migration Tool /var/log/rupost-migration-tool/logfile.log на наличие записей вида:
    2025-03-05 11:26:37.707 ERROR [] [MigrationTool.Common.Helpers.ProcessExecuter}] (PID=28776): Import-Module: The specified module 'ActiveDirectory' was not loaded because no valid module file was found in any module directory.
    ObjectNotFound: The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    Write-Error: [ActiveDirectory] Error executing command 'Get-ADUser'.
    2025-03-05 11:26:37.727 ERROR [] [MigrationTool.Common.Services.TestConnectionsService}] PowerShell remote connection failed.
    [ActiveDirectory] Error executing command 'Get-ADUser'.
  • Проверить, установлен ли модуль "Active Directory для Windows PowerShell".

Возможная причина: Модуль "Active Directory для Windows PowerShell" не установлен. Перейти к решению.


  • Проверить лог RuPost Migration Tool /var/log/rupost-migration-tool/logfile.log на наличие записей вида:
    2025-03-05 11:26:37.707 ERROR [] [MigrationTool.Common.Helpers.ProcessExecuter}] (PID=28776): Import-Module: The specified module 'ActiveDirectory' was not loaded because no valid module file was found in any module directory.
    ObjectNotFound: The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    Write-Error: [ActiveDirectory] Error executing command 'Get-ADUser'.
    2025-03-05 11:26:37.727 ERROR [] [MigrationTool.Common.Services.TestConnectionsService}] PowerShell remote connection failed.
    [ActiveDirectory] Error executing command 'Get-ADUser'.
  • Проверить, установлен ли модуль "Active Directory для Windows PowerShell".

Возможная причина: Не установлен модуль "Active Directory для Windows PowerShell". Перейти к решению.


Возможные причиныLink to Возможные причины