This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Powershell Error - Can't get settings from ADAM

Hi there,

I am trying to access QMMEX Powershell module. I am able to load it but I get an error message when I try to run get-organizationProperties cmdlet. I need to set the source Autodiscover URL.

"Can't get settings from ADAM"


PS C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell> Get-OrganizationPropertie
s
Are you sure that product is installed?
Can't get settings from ADAM
At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:189
char:13
+             throw [Exception] "Can't get settings from ADAM"
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], Exception
    + FullyQualifiedErrorId : Can't get settings from ADAM

Am I missing any previous steps?

Thanks

Parents
  • Here is an example of an error if the AD LDS instance is down (The service is stopped in this case) 

    PS C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell> Get-MMExOrganizationPrope
    rties
    Get-SqlSettings : Exception calling "Open" with "0" argument(s): "Error 0xe100002c. Cannot make the LDAP connection
    with host: MIGCONSOLE port: 389.
    LDAP error 0x51. Server Down (empty). "
    At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:191
    char:32
    +         $SqlConnectionString = Get-SqlSettings -registryAdamSetting $x
    +                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
        + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-SqlSettings
    
    ExecuteCommand : Invalid database
    At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:217
    char:12
    +     return ExecuteCommand -connectionString $sql -query $query -parameters @{'@N ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
        + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,ExecuteCommand
    
    Cannot index into a null array.
    At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:397
    char:9
    +     if ($version[0] -ne (GetDBVersion))
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : NullArray
    
    Get-OrganizationPropertiesInternal : Cannot bind argument to parameter 'sql' because it is null.
    At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:2098
    char:58
    +         $props = Get-OrganizationPropertiesInternal -sql $sql -fqdn $FQDN
    +                                                          ~~~~
        + CategoryInfo          : InvalidData: (:) [Get-OrganizationPropertiesInternal], ParameterBindingValidationExcepti
       on
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-OrganizationPropertiesInternal
    

Reply
  • Here is an example of an error if the AD LDS instance is down (The service is stopped in this case) 

    PS C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell> Get-MMExOrganizationPrope
    rties
    Get-SqlSettings : Exception calling "Open" with "0" argument(s): "Error 0xe100002c. Cannot make the LDAP connection
    with host: MIGCONSOLE port: 389.
    LDAP error 0x51. Server Down (empty). "
    At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:191
    char:32
    +         $SqlConnectionString = Get-SqlSettings -registryAdamSetting $x
    +                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
        + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-SqlSettings
    
    ExecuteCommand : Invalid database
    At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:217
    char:12
    +     return ExecuteCommand -connectionString $sql -query $query -parameters @{'@N ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
        + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,ExecuteCommand
    
    Cannot index into a null array.
    At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:397
    char:9
    +     if ($version[0] -ne (GetDBVersion))
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : NullArray
    
    Get-OrganizationPropertiesInternal : Cannot bind argument to parameter 'sql' because it is null.
    At C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell\MMExPowerShell.psm1:2098
    char:58
    +         $props = Get-OrganizationPropertiesInternal -sql $sql -fqdn $FQDN
    +                                                          ~~~~
        + CategoryInfo          : InvalidData: (:) [Get-OrganizationPropertiesInternal], ParameterBindingValidationExcepti
       on
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-OrganizationPropertiesInternal
    

Children
No Data