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

  • The accounts you are logged on with, running the PS command has to be an account with access into the QMM project. Can you confirm that?
  • In reply to Jeff Shahan:

    Yes, I am logged into the QMMEX console/server using the service account that is accessing the project. I tried Runas as well with the same account. Same error message.

    Thanks.
  • In reply to achyut.b.patil:

    Make sure there aren't any firewalls that might be enabled blocking the powershell connection. Did you install the product that is different from the default settings like the AD LDS port number?
  • In reply to achyut.b.patil:

    So your info above has Get-Org... and it should be Get-MMExOrg... (8.14) or Get-DMMExOrg...(8.13 or lower).

    Where is AD LDS installed? Same Server or remote server?
  • In reply to Jeff Shahan:

    Please post the full error.
  • In reply to Jeff Shahan:

    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
    

  • In reply to Chris.Holley:

    No, there are no firewalls between AD LDS servers and QMMEX Console. Also using the default 389 port.
  • In reply to Jeff Shahan:

    AD LDS is on a different server on the same subnet and no firewalls.

    With regards to the cmdlets. I dont see Get-MMExOrg.. Here are the list of cmdlets in the module.

    PS C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Sata\Tools\MMExPowerShell> Get-Command -Module MMEXPowershell

    CommandType Name ModuleName
    ----------- ---- ----------
    Function Get-Collection MMExPowerShell
    Function Get-CollectionStatistics MMExPowerShell
    Function Get-MailboxStatistics MMExPowerShell
    Function Get-OrganizationProperties MMExPowerShell
    Function Get-ProjectOptions MMExPowerShell
    Function Reset-Collection MMExPowerShell
    Function Reset-OrganizationProperties MMExPowerShell
    Function Reset-ProjectOptions MMExPowerShell
    Function Set-Collection MMExPowerShell
    Function Set-CurrentProject MMExPowerShell
    Function Set-OrganizationProperties MMExPowerShell
    Function Set-ProjectOptions MMExPowerShell
  • In reply to Jeff Shahan:

    Here is the full error (same as the initial post)

    PS C:\Program Files (x86)\Quest Software\Migration Manager\Exchange Data\Tools\MMExPowerShell> Get-OrganizationProperties
    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
  • In reply to achyut.b.patil:

    Silly question: (though it hasn't been asked so here goes) - Are you running this in an x86 Powershell window? I believe this is still required for the QMM cmdlets.

  • In reply to JohnnyQuest:

    That was it. I thought I was trying to run everything from 32-bit PowerShell. But looks like that was not the case. The cmdlets work fine. Thanks.
  • Thanks everyone for your assistancea and time. Apologies for not double checking if it was indeed being run in 32-bit PowerShell .