Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Remove-ActiveSyncDevice when the object has been deleted from ExchangeActiveSyncDevices

Posted on 2012-12-27
10
Medium Priority
?
5,792 Views
Last Modified: 2013-01-02
Some ActiveSyncDevice - objects hzave been deleted directly from active directory about a year ago, so the tombstones are now away, too.

The cmdlet get-activesyncdevicestatistics still finds the corresponding devices somewhere in the mailbox, but it is no more possible to Remove-Activesyncdevice since the corresponding object misses from AD.

Does anyone know the way to delete the remnants of the Devices from the mailboxes so that get-activesyncdevicestatistics does not find them any more?

Thanks
AL
0
Comment
Question by:AlLerner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 38723450
If you open up ADSIEDIT.MSC (and very carefully), navigate to your user using Default naming Context then under the user, do you see CN=ExchangeActiveSyncDevices?

If you do - select that in the left pane and do you see the Device in the right pane?  If you do - delete it.

Alan

(Be very careful what you are deleting as this is directly modifying Active Directory so any mistakes could be costly).
0
 

Author Comment

by:AlLerner
ID: 38723895
Thanks.

@alanhardisty: yes, of course I see the Folder ExchangeActiveSyncDevices and - no, I don't see these devices there, because what had been done about a year ago is exactly what you are describing. The devices had been deleted from AD and the retention time for tombstones is over long ago. Exactly this is my Problem. I need to delete the "rest" - that is what one gets with Get-ActivesyncDeviceStatistics, but I don't have a slightest idea, where it is.

@ jimmithakkar: this is not a solution at all: Get-ActiveSyncDeviceStatistics | Remove-ActiveSyncDevice does not work, otherwise I would not have had to post this Problem here. Particularly the Remove-ActiveSyncDevice does not find the Device-object in AD and fails.

Are there other ideas out there?

AL
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 38724957
Okay - how many DC's do you have and do you have any DC's still showing in AD that are no longer live?

Please post the output from DCDIAG.
0
 

Author Comment

by:AlLerner
ID: 38726293
Hello alanhardisty,

thank you. Just to answer your question: we have 17 DCs and none of them is going to show the months ago deleted tombstones. The domain ist normally synchronized. The output of DCDiag would be in German, but it only consists of the successfull tests.

But I guess, you are actually misunderstanding the problem. There is nothing to look for in AD! Or at any rate not in the msExchActyiveSyncDevice - Objects, which can be found under the corresponding User-Containers in AD.

The msExchActiveSyncDevice - Objects do not contain the properties like DeviceType, FirstSyncTime, LastSuccessSync and so on - but all those properties are returned by Get-Activesyncdevicestatistics - even if the matched msExchActiveSyncDevice object is gone.

That means for me that this information is stored somewhere else - either in some other type of AD-Objects or (what I suspect) in the Mailbox itself. That is what I want to know: where is it and how can I delete it. There is no sense in looking for the non-existing AD-Objects.

AL
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 38726491
I'm not misunderstanding the question.  The objects have to be returned from somewhere and I am just trying to see if there is a rogue DC that is still holding on to the objects because it isn't syncing properly that is reporting on the devices.
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 38726494
If you move a problem user to another mailbox and then run the report on devices, do they still show up?
0
 

Accepted Solution

by:
AlLerner earned 0 total points
ID: 38726750
Well, actually the problem has already be solved in another thread:

http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_27115902.html

As I suspected, this information is stored directly in the mailbox and can be found (and deleted) with the help of MFCMAPI.

Thank you for your assistance.

AL
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 38727554
And I was involved in that question too!  Best I remember it for the next time!

Glad you got it sorted and sorry for not helping you this time.

Alan
0
 

Author Closing Comment

by:AlLerner
ID: 38735982
I was faster to find an answer. Actually the answer was aready here, one only had to find it.
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question