Home > Operations Manager 2012 > SCOM 2012 Agent Deployment error 80004005

SCOM 2012 Agent Deployment error 80004005

This past summer, I was helping a client get a SCOM deployment going from the ground up. Naturally they wanted to test the agent deployment process on a select set of test machines. Many of which were Windows 2003 machines that had been used by developers, (not that there is anything wrong with that, just saying.)

The agent deployment went smoothly accept on two machines. One of the errors it threw out was:

The MOM Server could not execute WMI Query "Select * from Win32_Environment where
NAME=’PROCESSOR_ARCHITECTURE’" on computer server.domain.com

Operation: Agent Install
Install account: domain\account
Error Code: 80004005
Error Description: Unspecified error

I checked out the deployment errors on Holman’s blog, yes 2012 shares the same errors with 2007 agent push install errors. http://blogs.technet.com/b/kevinholman/archive/2009/01/27/console-based-agent-deployment-troubleshooting-table.aspx

Noticed remediation step one was about the path. Path too long on a developer machine, how could that happen? I did use wbemtest and was unable to get wmi query to work properly so it’s time to look at the path statement.

I copied and pasted the path statement into the PowerShell ISE to get a character count, and it was over 1000 characters long. Pretty sure that is too long. It looked like this box, now a VM, had installed and upgraded every version of SQL from 2000 to 2012, as well as every version of Visual Studio, as well as the tools for each version of SQL, never once cleaning up the path statement. While cleaning this insane path statement from hell, i noticed SCOM 2007 path, and sure enough there was an old SCOM 2007 agent install on this box as well. After cleaning the path statement, I uninstalled SCOM 2007 Agent, and a few minutes later the agent deployment worked with out an issue.

In case you were wondering What is the maximum length of an environment variable?

  1. October 16, 2013 at 6:20 pm

    Hello! I’m at work browsing your blog from my new iphone! Just
    wanted to say I love reading through your blog and look forward to
    all your posts! Keep up the great work!

  1. October 2, 2013 at 9:16 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: