OpsMgr 2012: Find Computers without the Active Directory Helper Object (OOMADS) with PowerShell

The Active Directory Helper Object (called OOMADS) is required for some Active Directory related scripts in the Active Directory Management Pack. When agents do not have the helper object, which often happens when you deploy an agent manually (any method other than push-install). The error message you’ll see in the Monitoring space of your Operations Console will look like this:

AD Lost And Found Object Count : The script ‘AD Lost And Found Object Count’ failed to create object ‘McActiveDir.ActiveDirectory’. This is an unexpected error.

The McActiveDir portion reminds me of McDonalds! And it’s the key to easily identifying all the agents missing the helper in large environments.

Finding computers missing the AD Helper Object with PowerShell

This PowerShell one-liner will reveal all the alerts that include the tell-tale ‘McActiveDir’ string. By retrieving the PrincipalName property of these alerts gives us the name of the computers missing the helper!

Amazing what we can do with a single line of PowerShell. Make sure to run this one-liner in the Operations Manager Command Shell since it uses an OpsMgr cmdlet!

Additional Resources

You’ll find a growing number of System Center, Cloud and PowerShell resources here on SCC in the “Master Collection of System Center PowerShell” and elsewhere. A few related Operations Manager 2012 Command Shell articles

OpsMgr 2012: Disabling Rules and Monitors in Bulk in PowerShell

OpsMgr 2012: Group Maintenance Mode via PowerShell (the way it should be)

OpsMgr 2012: Running a Task in Bulk Using PowerShell

OpsMgr 2012: Automating Agent Discovery and Deployment with PowerShell [sample script]

OpsMgr 2012: Identifying Computers in Active Directory without an OpsMgr Agent Installed [sample script]

OpsMgr 2012 Quick Tip: Finding servers experiencing the most heartbeat failures with PowerShell

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.