Microsoft KB Archive/317872

= How to troubleshoot SMS Administrator console connectivity =

Article ID: 317872

Article Last Modified on 2/8/2007

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition
 * Microsoft Systems Management Server 2003
 * Microsoft Windows XP Service Pack 2

-



This article was previously published under Q317872





Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



INTRODUCTION
If you are using SMS and you try to connect to the site server, you may receive a &quot;Connection Failed&quot; message. Or, the nodes may not be displayed after you are connected. Additionally, errors that are similar to the following may be logged in the AdminUI.log file on the server:

Error: Possible UI connection error code is -2147023174 [0x800706ba]

Error: Possible UI connection error code is -2146959355 [0x80080005]

Error: Possible UI connection error code is -2147217394

Error: Possible UI connection error code is -2147217389[0x80041013] Failed to execute method GetProviderVersion! Function GetProviderVersion returns empty string of ProviderVersion. Wbem call failed: T_WbemSyncEnumToContainer_Core, return code: -2147217389 We fail to get the ProviderVersion. SiteCode - SiteServerName, Provider Version : Failed to set the connection. error code: -2147217389

Error(ConnectServer): Possible UI connection error code is -2147024891

Error: Possible UI connection error code is -2147024891 [0x80070005]

[994][ ]:Error(CheckForDisconnect2): Invalid service pointer. WMI connection has been dropped. : -2147024891 [0x80070005]

This article describes how to troubleshoot a new or an existing SMS Administrator console to determine why it cannot connect to the site server.



How to grant access to the SMS Administrator console
In order to access a local or remote SMS Administrator console, users must be members of the SMS Admins local group. The SMS Admins group is explicitly granted Enable Account and Remote Enable on the Root\SMS namespace. The SMS Admins group provides its members with access to the SMS Provider, through WMI. Add Users to the SMS Admins group when they need to access the SMS Administrator console, but do not have to be Local Administrators. If you want to use a different local group to grant access to the SMS Administrator console, you must also grant that local or domain local group the same WMI permission as the SMS Admins group. To grant access to the SMS Administrator console, follow these steps:  Create a global group for the domain that contains users who require specific access to the SMS Administrator console. Add this global group or the explicit domain user account to the local SMS Admins group. Configure the SMS permissions for the global group that you created.

Notes  To complete this step, you must be an administrator and have full permissions on the site. If you can connect to the database but if the nodes are not enumerated, examine the SMS permissions that are granted to the global group or to a specific user in the Security node of the SMS Administrator console. For example, determine whether the collections node, the packages node, or other nodes display any content.</ul>

The permissions that you grant depend on the functionality that you want the members of this global group to perform. To grant permissions, right-click the Security rights node in the SMS Administrator console, point to All tasks, and then click Manage SMS Users to start the Security Wizard.</li> Use the wizard to add, remove, or modify the security settings of users and of groups.</li></ol>

Note For SMS 2.0 Service Pack 3 (SP3) hierarchies in Microsoft Windows 2000 domains, you may have to obtain the hotfix that is described in the following Microsoft Knowledge Base article:

266712 SMS: Security based on global groups fails in Windows 2000 domains

For more information about how to grant additional users access to the SMS Administrator console, click the following article number to view the article in the Microsoft Knowledge Base:

252674 SMS: How to set up a Help Desk administrator

For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

201126 SMS: Troubleshooting connectivity to the SMS site database

200670 SMS: Customizing the Systems Management Server Administrator console

How to troubleshoot SMS Administrator console connectivity
If you are testing a remote SMS Administrator console, make sure that the latest SMS service pack has been applied to this console. If the service pack has not been applied, an error that is similar to the following may be logged in the AdminUI.log file:

CLASS_SMS_ContextMethods,METHOD_GetContextHandle! Failed to set the connection. error code: -2147217407 Run the Setup program from the service pack source to determine whether the SMS Administrator console is the only component that must be upgraded.

To troubleshoot SMS Administrator console connectivity, consider the following issues: <ul> Is the SMS site server running Microsoft Windows Server 2003 with Service Pack 1 (SP1)?

In Windows Server 2003 with SP1, a new local group is created that is named Distributed COM Users. To resolve the connectivity issue in Windows Server 2003 Service Pack 1, add the users who are trying to make remote connections to the SMS Administrator console to the Distributed COM Users local group. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

913000 After you install Windows Server 2003 Service Pack 1, you can no longer connect to the SMS site server by using a remote SMS Administrator console

895952 You receive a &quot;You do not have the appropriate privilege&quot; error message when you try to open the Microsoft Operations Manager (MOM) 2005 Administrator console

</li> Is the user a member of a global group that is a member in the SMS Admins group, or is the user explicitly defined in the SMS Admins Group?

The SMS Admins group is created during the SMS site installation. If a site was installed on a member server, the SMS Admins group is a local group in the local Security Accounts Manager (SAM). If a site server is a domain controller, the SMS Admins group is a local group in the domain. The user must belong to the SMS Admins group because this group is granted the necessary permissions to the SMS and SMS_site code namespace in the Windows Management Instrumentation (WMI) repository when the SMS site is built.</li> Has this server had a previous installation of SMS?

If the server has had a previous installation of SMS, there may be multiple site codes in the SMS_ProviderLocation class that is located in the site server's SMS namespace. Delete any site code that no longer exists on the site server. You can use the WBEMtest tool to view the SMS_ProverLocation class. For more information about WBEMtest, click the following article number to view the article in the Microsoft Knowledge Base:

239899 Administrator console cannot connect after reinstallation

</li> On the site server, confirm property settings that are defined in the Dcomcnfg.exe utility.

To view the properties that are defined in the Dcomcnfg.exe utility, click the Default properties tab, and then confirm the following settings: <ol> The Enable Distributed COM on this computer check box is selected.</li> The Default Authentication level is set to Connect.</li> The Default Impersonation level is set to Identify.</li></ol> </li> If you are testing a remote SMS Administrator console, make sure that the latest SMS service pack has been applied to this console.

Run the Setup program from the service pack source to determine whether the SMS Administrator console is the only component that must be upgraded.</li></ul>

After you consider these issues, complete the troubleshooting procedures that are described in the following sections.

Troubleshooting SMS namespace connectivity
Make sure that the user can connect to the SMS namespace and the SMS_'sitecode' namespaces. To do this, follow these steps: <ol> Click Start, click Run, and then type wbemtest .</li> Click Connect, type \\siteserver\root\sms, and then click Login.</li> Click Enum Classes, click Recursive, and then click OK.</li> In the Query Result list, double-click SMS_ProviderLocation.</li> Click Instances, and then double-click the line that contains the target site code. For example, SMS_ProviderLocation.SiteCode=&quot; .&quot;</li> In the Properties section, locate the NamespacePath line. You may have to double-click this line to see the whole line.</li> Copy the NamespacePath value to the clipboard. For example, copy the following value:

\\ \root\sms\site_

</li></ol>

If you successfully complete this procedure, you can connect to the site server and enumerate the SMS namespace.

How to troubleshoot server connectivity
Determine whether you can connect to the server that the provider is located on. The server is defined in the NamespacePath value that you determined in the &quot;How to troubleshoot SMS namespace connectivity&quot; section. Typically, this server is the same server.
 * 1) Close all WBEMtest windows that may be open.
 * 2) Click Connect, paste the NamespacePath that you copied in step 7, and then click Login.
 * 3) Click Enum Classes, click Recursive, and then click OK
 * 4) In the Query Result list, double-click SMS_Site.

If you receive an &quot;access denied&quot; error message when you perform this procedure, this may be because of one of the following causes: <ol> <li>The Security Configuration Wizard has been run on the server that hosts the SMS Provider. However, the Security Configuration Wizard is unable to recognize the SMS Provider. If you run the wizard on the server that has the SMS Provider installed, you must enable the Remote WMI service in the wizard. Unless you enable Remote WMI, the SMS Administrator console on the site server and any other remote consoles cannot connect to the SMS namespace in WMI. To enable Remote WMI in the wizard, do the following: <ol style="list-style-type: lower-alpha;"> <li>Select Remote WMI on the Select Administration and Other Options page of the Security Configuration Wizard.

Note For more information about how to secure SMS site systems, visit the following Microsoft Web site:

http://www.microsoft.com/technet/prodtechnol/sms/smssp2/spsecurity/625e8c53-2481-4f4a-a5cd-f8de96eaee13.mspx?mfr=true

</li></ol> </li> <li>The account that is used does not have the appropriate permissions to the namespace of the provider. To modify or to verify the permissions, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the server on which you enumerated the SMS site, click Start, click Run, type wmimgmt.msc, and then click OK.</li> <li>Right-click WMI Control, and then click Properties.</li> <li>On the Security tab, expand Root, and then click SMS.</li> <li>Click Security in the results pane to see the permissions.</li> <li>Click Advanced, click SMS Admins, and then click View-edit.

For the SMS namespace, the SMS Admins group must have the following permissions: <ul> <li>Enable account</li> <li>Remote enable</li></ul> </li> <li> Repeat steps a through e to examine the SMS Admins group for the SMS_ namespace. ( is a placeholder for the site code.) Then, grant Remote Enable permission to the user or to the group. If the user or the group does not have appropriate WMI permissions in Security for the SMS namespace, the following event may be logged in the AdminUI.log file: Error(ConnectServer): Possible UI connection error code is -2147217405 [0x80041003] </li></ol> </li></ol>

Other security issues
Use the troubleshooting procedures that are described in this section if any one of the following conditions is true:
 * Users are still denied access when they try to connect to the console after you have granted the appropriate accounts the “Remote Enable” right in WMI security.
 * The console is only partially available.

Verify the Windows Firewall configuration
Windows XP SP2 and Windows Server 2003 SP1 include the Windows Firewall feature. If you run the SMS Administrator Console on a Windows XP SP2-based or a Windows Server 2003 SP1-based computer that has the firewall enabled, you must enable the Unsecapp.exe program and TCP port 135 to pass through the Windows Firewall. To do this, follow these steps:
 * 1) Click Start, click Run, type firewall.cpl, and then click OK.
 * 2) On the General tab, click On to turn the firewall on. Click to clear the Don't allow exceptions check box.
 * 3) On the Exceptions tab, click Add Program.
 * 4) Click Browse, type  \System32\Wbem\Unsecapp.exe in the File namebox, and then click Open. If you have to define the scope, click Change scope, and then click OK. Click OK to close the Add a Program dialog box.
 * 5) In the Programs and Services list, click to select the Unsecapp.exe check box.
 * 6) Click Add Port.
 * 7) In the Port number box, type 135 . Select TCP, and then type a name for the exception in the Name box. If you have to define the scope, click Change scope, and then click OK. Click OK to close the Add Port dialog box.
 * 8) In the Programs and Services list, click to select the check box for the exception that you added in step 7.
 * 9) Click OK.

Check DCOM security settings
Warning Do not make these changes unless you cannot resolve this issue by adding the Unsecapp.exe program and TCP port 135 to the exceptions list.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

You may not resolve this issue by adding these exceptions to Windows Firewall. You may have to set anonymous remote permissions in DCOM for the client computer. To do this on the Windows XP SP2-based computer that is running the SMS Administrator console, follow these steps:
 * 1) Click Start, click Run, type dcomcnfg.exe, and then click OK.
 * 2) Locate the Console root node, expand Component Services, expand Computers, and then click My Computer.
 * 3) Right-click My Computer, and then click Properties.
 * 4) In My Computer Properties, click the COM Security tab.
 * 5) In Access Permissions, click Edit Limits.
 * 6) Click ANONYMOUS LOGON.
 * 7) In Permissions for ANONYMOUS LOGON, click Allow setting for Remote Access.
 * 8) Click OK two times.
 * 9) Restart your computer.

Verify whether the default DCOM permissions have been changed
Check for the DefaultAccessPermission value under the following registry subkey:

This indicates the default DCOM permissions have been changed. If this value does not exist, the default DCOM permissions are in effect. To resolve this problem, delete the DefaultAccessPermission value. This will reset all default DCOM permissions. This is a measure of last resort and is not guaranteed to correct the problem.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Important Before you delete this value, make sure that you have tried to resolve the issue by following the DCOM troubleshooting steps in in this article. Also, back up the  registry subkey.

To delete the DefaultAccessPermission value, follow these steps: <ol> <li>Click Start, click Run, type regedit, and then click OK.</li> <li>Locate and then click the following registry subkey:

</li> <li>In the right pane, right-click DefaultAccessPermission, and then click Delete.</li> <li>In the Confirm Value Delete dialog box, click Yes.</li> <li>Exit Registry Editor.</li> <li>Log off the computer, and then log back on to the computer.</li></ol>

For more information about DCOM issues and their symptoms, click the following article number to view the article in the Microsoft Knowledge Base:

900960 You cannot perform actions such as search and drag when you use a Windows Server 2003-based computer

Include the Anonymous Logon security group in the Everyone security group
If the procedures that are previously described do not resolve the permissions issue for the SMS Administrator console, it may be difficult to do the following:
 * Determine which resource requires anonymous access on the computer that is running Windows XP
 * Modify the permissions on all the necessary resources

In these situations, you may have to force the computer that is running Windows XP to include the Anonymous Logon security group in the Everyone security group. To support this functionality, Windows XP includes the EveryoneIncludesAnonymous registry entry.

If the EveryoneIncludesAnonymous registry entry is set to REG_DWORD 0x1, the Local Security Authority (LSA) includes the security identifier (SID) of the Everyone security group in the anonymous user's access token. To set the value of the EveryoneIncludesAnonymous registry entry, use either of the following methods.

Method 1: Set the EveryoneIncludesAnonymous registry entry by using local security settings

 * 1) Click Start, click Run, type Control admintools, and then click OK.
 * 2) Double-click either Local Security Policy or Domain Security Policy (on domain controllers only).
 * 3) Double-click Local Policies, and then click Security Options.
 * 4) Right-click Network access: Let Everyone permissions apply to anonymous users, and then click Properties.
 * 5) To enable anonymous users to be members of the Everyone security group, click Enabled. To prevent the inclusion of the Everyone security group SID in the anonymous user's access token, click Disabled. This is the default setting in Windows XP.

Method 2: Set the EveryoneIncludesAnonymous registry value by using Registry Editor
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. <ol> <li>Click Start, click Run, type regedit, and then click OK.</li> <li>Locate and then click the following registry key:

</li> <li>Right-click EveryoneIncludesAnonymous, and then click Modify.</li> <li>To enable anonymous users to be members of the Everyone security group, type 1 in the Value data box. To prevent the inclusion of the Everyone security group SID in the anonymous user's access token, type 0 in the Value data box. By default, the EveryoneIncludesAnonymous value is set to 0 in Windows XP.</li> <li>Exit Registry Editor.</li> <li>Restart the computer.</li></ol>

Note This change can affect the following Windows-based technologies:
 * Com
 * Dcom
 * IIS
 * Message Queuing
 * Any other technology where anonymous authentication is frequently employed.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

278259 Everyone group does not include anonymous security identifier

Additional connectivity tests
Start the WMI Control on the site server. Do not start the WMI control on the provider server if this server is different. Click the Logging tab, and then set the logging level to Verbose to increase the logging to the \System32\Wbem\Logs\Wbemcore.log file.

Analyze this log on the site server. You see all the WMI traffic that is generated. Look for the query for SMS_Providerlocation that occurred when an SMS Administrator console tried to connect. If this query is present, you can confirm that there is communication between the console and the site server. Test connectivity from the site server back to the requesting SMS Administrator console. Connectivity may not exist in the following scenarios: <ul> <li>The remote procedure call (RPC) server is unavailable.

If WBEMtest connectivity testing determines that the remote procedure call (RPC) server is unavailable, see the following Microsoft Knowledge Base article:

229091 SMS: Remote administrator gets a &quot;Connection failed&quot; error when connecting to Site Server

</li> <li>There is a DNS name resolution issue.

The “Connection Failed &quot;error message may also occur if name resolution is not completed correctly. To determine whether you are experiencing a name resolution issue, use the WBEMtest tool and try to connect to the site server by using the IP address. For example, use \\111.222.333.444\root\default as the address. If you can connect when you use the IP address, but you cannot connect when you use the netBIOS name of the site server, you are experiencing a name resolution issue. To resolve this issue, confirm either the WINS or the DNS configurations.

To make sure that no incorrect entries persist in the DNS resolver cache on the SMS 2003 site server, run the following command at a command prompt:

ipconfig /flushdns

If you cannot resolve the fully qualified domain name of the Windows XP SP2-based computer by using DNS, create an entry in the hosts file on the SMS 2003 site server to map the Windows XP SP2-based computer's fully qualified domain name to its IP address.</li></ul>

Known Issues with Microsoft ISA server or Checkpoint VPN software
If you cannot expand some nodes on a remote console over a remote connection from a Windows 2003 SP1 computer: Remote Procedure Call-based operations may fail if certain firewall and VPN products deny network requests. These network requests may fail on computers where you apply Windows Server 2003 Service Pack 1 (SP1) to a Windows Server 2003-based computer or your OEM or retail installation media includes SP1 updates. The following products may deny these network requests:
 * Firewall or virtual private network (VPN) products from Checkpoint Software Technologies
 * Microsoft Internet Security and Acceleration (ISA) Server

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

899148 Some firewalls may reject network traffic that originates from Windows Server 2003 Service Pack 1-based computers

<div class="references_section">