2019.1 U3 Cannot View Mobile Devices

General discussion of using Adaxes for Active Directory management and administration
Post Reply
yourpp
Posts: 31
Joined: Fri Jun 26, 2015 7:52 am

2019.1 U3 Cannot View Mobile Devices

Tue Aug 27, 2019 9:05 am

For Office 365 Mailboxes, I get the following error:
2019-08-27 09_54_18-properties.png
2019-08-27 09_54_18-properties.png (3.45 KiB) Viewed 323 times

User avatar
Support
Site Admin
Posts: 2386
Joined: Thu Apr 23, 2009 2:28 am

Re: 2019.1 U3 Cannot View Mobile Devices

Wed Aug 28, 2019 8:36 am

Hello,

Do we understand correctly that the error appears when you click Mobile Device details on the Mailbox Features tab of a user mailbox Exchange properties in Adaxes Administration Console?

Could you, please, specify what version of Adaxes you are currently using? To check that:
  1. Launch Adaxes Administration Console.
  2. In the Console Tree, right-click your service.
  3. In the context menu, click Properties.
    Service.properties.png
    Service.properties.png (8.05 KiB) Viewed 289 times
  4. Adaxes version will be displayed on the General tab.
    Service.version.png
    Service.version.png (8.16 KiB) Viewed 289 times

Also, for troubleshooting purposes, please, enable tracing of requests sent to Exchange servers, reproduce the issue and send us (support[at]adaxes.com) the log file. For information on how to enable the tracing, have a look at the following help article: https://www.adaxes.com/help/?HowDoI.Per ... uests.html.
Active Directory Identity Management

Follow Adaxes in social networks
Image Image Image

yourpp
Posts: 31
Joined: Fri Jun 26, 2015 7:52 am

Re: 2019.1 U3 Cannot View Mobile Devices

Wed Sep 11, 2019 8:29 am

Yes, this is on the mailbox features tab as you suggest. The Adaxes version is 3.11.16825.0. I enabled tracing and there are no error messages in the trace, the only thing I see is the following. Before I turned on tracing, I was able to get it to work one time with a particular user, but I can't get it to work at all now after trying with a dozen or so users.

Code: Select all

[09/11/2019 10:07:53] Get-Mailbox -Identity "Redacted"
[09/11/2019 10:07:54] Succeed
[09/11/2019 10:07:54] Get-UMMailbox -Identity "Redacted"
[09/11/2019 10:07:54] Succeed
[09/11/2019 10:07:54] Get-UMMailboxPIN -Identity "Redacted"
[09/11/2019 10:07:55] Succeed
[09/11/2019 10:07:55] Get-CASMailbox -Identity "Redacted"
[09/11/2019 10:07:55] Succeed
[09/11/2019 10:07:57] Get-MobileDeviceStatistics -Mailbox "Redacted"
[09/11/2019 10:07:58] Succeed
[09/11/2019 10:09:13] Get-Mailbox -Identity "Redacted"
[09/11/2019 10:09:13] Succeed
[09/11/2019 10:09:13] Get-UMMailbox -Identity "Redacted"
[09/11/2019 10:09:13] Succeed
[09/11/2019 10:09:13] Get-UMMailboxPIN -Identity "Redacted"
[09/11/2019 10:09:15] Succeed
[09/11/2019 10:09:15] Get-CASMailbox -Identity "Redacted"
[09/11/2019 10:09:15] Succeed
[09/11/2019 10:09:24] Get-MobileDeviceStatistics -Mailbox "Redacted"
[09/11/2019 10:09:25] Succeed

User avatar
Support2
Posts: 1009
Joined: Mon Nov 14, 2016 4:03 am

Re: 2019.1 U3 Cannot View Mobile Devices

Wed Sep 11, 2019 9:30 am

Hello,

Thank you for the provided details. For troubleshooting purposes, please, do the following:
  1. Save the below script with the PS1 extension, e.g. MyScript.PS1.

    Code: Select all

    param(
        [Parameter(Mandatory=$true,Position=1)]
        [String]$userIdentity,
        [Parameter(Mandatory=$true,Position=2)]
        [String]$filePath
    )
    
    try
    {
        $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential (Get-Credential) -Authentication Basic -AllowRedirection
        Import-PSSession $session -AllowClobber -DisableNameChecking -CommandName "Get-MobileDeviceStatistics"
    
        $devices = Get-MobileDeviceStatistics -Mailbox $userIdentity
        foreach ($device in $devices)
        {
            $device | select -Property * | Out-File $filePath -Append
        }
    }
    finally
    {
        if ($session) { Remove-PSSession $session }
    }
    
  2. Copy the script to the server where Adaxes is installed.
  3. Launch WIndows PowerShell.
  4. Navigate to the folder where you saved the script. For example, if you saved it to C:\Downloads, type
    cd C:\Downloads
  5. Run the script by executing the following command. When prompted, specify the credentials that were used to register your Office 365 tenant in Adaxes.

    Code: Select all

    .\MyScript.ps1 "<Email address>" "<file path>"
    where
    • <Email address> - Specifies the Primary SMTP address of the user.
    • <file path> - Specifies the path to the output file that will be created (e.g. C:\logs\output.txt)
  6. Send us (support[at]adaxes.com) the output file.
Also, please, send us (support[at]adaxes.com) a copy of Adaxes Event Log. For information on how to view the log, have a look at the following help article: http://www.adaxes.com/help/?ServiceAdmi ... ntLog.html.
Active Directory Identity Management

Follow Adaxes in social networks
Image Image Image

yourpp
Posts: 31
Joined: Fri Jun 26, 2015 7:52 am

Re: 2019.1 U3 Cannot View Mobile Devices

Thu Sep 12, 2019 2:59 pm

Thank you, I will send the requested output. Looking at the event logs, it appears this is the error:

Code: Select all

Softerra.Adaxes.BackgroundThreadException: Exchange Online API: Failed to execute the following operation: Get mobile devices associated with 'First Last (domain\OU\OU\OU)' ---> System.ArgumentNullException: Value cannot be null.
Parameter name: value
   at Softerra.Adaxes.Adsi.AdmObjectReference.set_UnknownObjectId(String value)
   at #rC.#3Q.ExecuteOperation(#z9e #Wp, #bQ #Vb)
   at #rC.#3Q.#Xt(#z9e #Wp)
   at #CA.#ec.Execute()
   --- End of inner exception stack trace ---

User avatar
Support2
Posts: 1009
Joined: Mon Nov 14, 2016 4:03 am

Re: 2019.1 U3 Cannot View Mobile Devices

Fri Sep 13, 2019 4:00 am

Hello,

Thank you for the provided logs. We confirm this is an issue in Adaxes. It occurs if there is a device that has no policy applied. We will fix it in the next release.

If the fix is critical, we can provide you with a custom build of Adaxes that will include a fix for the issue.
Active Directory Identity Management

Follow Adaxes in social networks
Image Image Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 0 guests