Unsolved
This post is more than 5 years old
15 Posts
0
84967
March 4th, 2009 11:00
Unable to Install on SCCM R2
I have tried installing the Deployment Pack several times with no success. I have tried installing with the Config Manager console closed and with all Config Manager services stopped. I have also tried rebooting several times. I checked the installer log and each time it errors with a message saying that "the MOF compiler flagged the MOF file as bad". The final error is "Cannot write to a closed TextWriter". I am installing on the Site Server which is a Windows 2003 SP2 R2 x86 OS. My version of SCCM is R2. Any ideas on how to fix this?
No Events found!


Sumanth BR
29 Posts
0
March 9th, 2009 01:00
Thanks,
Sumanth
terminic
15 Posts
0
March 9th, 2009 07:00
DELL-Greg R
118 Posts
0
March 9th, 2009 13:00
- Your Site Server - was this a fresh install of Configmgr 2007, or is this an upgraded version from SMS 2003 to ConfigMgr 2007?
Can you send me the log files? greg_ramsey@dell.com
terminic
15 Posts
0
March 9th, 2009 14:00
sccm_ddp_eng
16 Posts
0
March 10th, 2009 11:00
terminic
15 Posts
0
March 10th, 2009 12:00
3/10/2009 1:16:32 PM :: The MOF compiler flagged the MOF file as bad. The file is located at C:\WINDOWS\system32\wbem\mof\bad\PowerEdgeDeployment.mof
terminic
15 Posts
0
March 10th, 2009 12:00
3/9/2009 3:00:55 PM :: GetSafeRegistryStringValue: Trying standard .NET call to registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Identification\Site Code
3/9/2009 3:00:55 PM :: GetSafeRegistryStringValue: Value returned = 'LAB'
There is an error however when it is looking up the UI Installation Directory.
3/9/2009 3:00:55 PM :: GetSafeRegistryStringValue: Trying standard .NET call to registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Setup\UI Installation Directory
3/9/2009 3:00:55 PM :: GetSafeRegistryStringValue: Registry key not found.
3/9/2009 3:00:55 PM :: GetSafeRegistryStringValue: Could not access the registry key (32-bit machine):HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Setup\UI Installation Directory
I checked and this key is blank right now. There is an entry for UI Installation Directory under HKLM\SOFTWARE\ConfigMgr\Setup that points to the AdminUI folder under my Config Manager installation. I can try copying this key information into the location that it is looking. Please note that Config Manager is currently running with no errors right now and we have done nothing to modify the registry on this machine at this point. I have no problems making the change as the server is not currently in production but it seems that there may be some discrepencies between installations. Clearly the UI Installation Directory key does not always reside where the DPP installation is looking. Not sure if this is a result of installing SCCM R2 or what.
DELL-Greg R
118 Posts
0
March 11th, 2009 07:00
sccm_ddp_eng
16 Posts
0
March 11th, 2009 11:00
What may be happening is either
(1) the site code is not getting injected into the MOF file properly (look in the MOF file for "REPLACESITECODE" and if found, that's the problem)
or
(2) something is preventing WBEM from properly adding the WMI class information. You might try looking in the wmiprov.log file to see if there are any further details about the error. See this for more info: http://msdn.microsoft.com/en-us/library/aa394564(VS.85).aspx
terminic
15 Posts
0
March 11th, 2009 12:00
[ CommandLine("smsswd.exe /run:%1 cscript OemDeployment.vbs auto DellSrv"),
VariablePrefix("DellSrv"),
ActionCategory("Dell Deployment,1,91"),
ActionUI{"..\\XmlStorage\\Extensions\\bin\\Deployment\\Dell\\PowerEdge\\PowerEdgeDeployment.dll", "Microsoft.ConfigurationManagement.OemDeployment.Dell.PowerEdge", "DellPowerEdgeDeploymentCustomAction", "DellPowerEdgeDeploymentCustomActionOptions"},
ActionName{"..\\XmlStorage\\Extensions\\bin\\Deployment\\Dell\\PowerEdge\\PowerEdgeDeployment.dll", "Microsoft.ConfigurationManagement.OemDeployment.Dell.PowerEdge.Properties.Resources", "DellPowerEdgeDeploymentCustomAction"}
]
class Dell_PowerEdgeDeployment : SMS_TaskSequence_Action // specifies a unique name for this item, derived from the base action class.
{
[TaskSequencePackage, CommandLineArg(1)]
string PackageID;
[VariableName("DellSrvPassword"), Secret]
string TaskPassword;
[VariableName("DellSrvLogPassword"), Secret]
string LogPathPassword;
[VariableName("DellSrvControlValues")]
string ControlValues;
[VariableName("DellSrvClientActions")]
string ClientActions;
string SupportedEnvironment = "WinPEandFullOS";
};
terminic
15 Posts
0
March 11th, 2009 12:00
// SMS Root Storage
instance of __Namespace
{
Name = "SMS";
};
#pragma namespace("\\\\.\\root\\SMS")
// SMS Database name for this machine
instance of __Namespace
{
Name = "site_LAB";
};
#pragma namespace("\\\\.\\root\\SMS\\site_LAB")
#pragma classflags("forceupdate")
I looked in the wmiprov.log file but could not find anything that relates to the times that I have tried running the installer. The only error I can see has been happening since the server was built (see below).
(Fri Mar 06 15:16:38 2009.276859) : WDM call returned error: 4200
(Fri Mar 06 16:14:30 2009.3749656) : Received Event
I did find an error within the mofcomp.log file that corresponds with the last time I tried running the install. That error is below.
(Tue Mar 10 13:16:32 2009.335070828) : Parsing MOF file: C:\WINDOWS\system32\WBEM\MOF\PowerEdgeDeployment.mof
(Tue Mar 10 13:16:32 2009.335070937) : An error occurred while creating object 3 defined on lines 37 - 56:
(Tue Mar 10 13:16:32 2009.335070953) : 0X80041002 (Tue Mar 10 13:16:32 2009.335070953) : Class, instance, or property 'SMS_TaskSequence_Action' was not found.
This appears to be the root of the issue but I am not sure how to fix this.
sccm_ddp_eng
16 Posts
0
March 11th, 2009 13:00
Class, instance, or property 'SMS_TaskSequence_Action' was not found
tells me that something in WMI is not set up correctly so that the appropriate WMI classes can be added for SCCM. Basically, the installer adds new WMI classes into your SCCM site structure so that the task sequence editor can know about and use the new task steps. The problem that appears to be happening is that the installer expects to find the "root\SMS\site_LAB" namespace, and within that the "SMS_TaskSequence_Step\SMS_TaskSequence_Action" class and then insert the new WMI class based on this MOF file, which derives from the SMS_TaskSequenceAction class.
If you've installed a site server, then this namespace and class should exist without a doubt. If WMI is not finding the class, then there are a couple of possible reasons:
(1) The class does not exist - this would mean you're not on the site server itself and trying to install, or that the installation of SCCM is toast
(2) The account you're using to install does not have sufficient permissions in WMI to see the namespace, so I would recommend installing as admin
If neither of the above apply, the next thing I would try is to look in WMI via something like WMI CIM Studio and verify the namespace and class exists.
You can get WMI CIM Studio at: http://www.microsoft.com/downloads/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&DisplayLang=en
terminic
15 Posts
0
March 11th, 2009 14:00
I downloaded and ran the WMI CIM Studio. I did find the root\SMS\site_LAB namespace but did not find the SMS_TaskSequence_Step\SMS_TaskSequence_Action class. In fact there is not a single SMS_ class in the entire namespace and I would expect there to be several. I did a search within the namespace and got no results. I went all the way back to the root namespace to see if the class was misplaced in another namespace and again got no results. I would figure that this would be causing me major issues in SCCM but so far it has not. I have been able to run task sequences, inventories, full OS deployments, etc. from SCCM with no issues. I am about to setup a separate lab environment to see if another installation will resolve the issue.
One more quick question? Is this app supported in a virtual environment? I would assume that it is but I am just checking to make sure.
sccm_ddp_eng
16 Posts
0
March 11th, 2009 16:00
It is really odd that you don't see the WMI classes in the namespace but SCCM is working correctly. Did you use the same account when installing SCCM? This is an x86 machine right? (so no x64 redirection or other issues).
terminic
15 Posts
0
March 12th, 2009 09:00