Microsoft KB Archive/892685

= Advertised programs may not run after you restart a Systems Management Server Client computer =

Article ID: 892685

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2003

-





SYMPTOMS
When you restart a Microsoft Systems Management Server (SMS) 2003 client computer while either of the following conditions is true, the advertised program may not run on the SMS client computer:
 * The SMS Agent host service is processing an advertisement policy.
 * The SMS Agent host service is preparing to run an advertised program.

This problem may occur even when the advertisement is mandatory.

When you experience this problem, 80040202 or 80080008 errors may be logged in the Execmgr.log file or in the DataTransferService.log file on the SMS client computer.

For a more comprehensive list of the most frequently seen log entries for this issue, see the &quot;More Information&quot; section.

Note This problem may also occur for policies that are not advertisement policies. For example, if you use the SMS Administrator Console to make a configuration change on an SMS client computer, the new policy for this configuration change may not be applied to an SMS client computer that is experiencing this problem.



CAUSE
This problem occurs because the SMS Data Transfer Services (DTS) and the SMS Execution Manager on the SMS client computer may not be able to preserve their state after an SMS client computer is restarted.

When the SMS client computer shuts down because of a pending restart, the SMS Agent Host (CCMexec) service that is running the SMS client computer stops. Therefore, Windows Management Instrumentation (WMI) and other components within the SMS Agent Host service may not be available to finish processing the advertisement policy or running the advertised program. The state of the SMS Agent components is not preserved before the pending restart. Therefore, when the SMS client computer restarts, the partially processed advertised program information is lost.



WORKAROUND
To work around this problem, create a new advertisement for the same package. When you do this, only client computers that have not yet run the advertised program will run the new advertised program.

To create a new advertisement for the same package, follow these steps:
 * 1) Log on to a computer that has the SMS Administrator Console installed by using an account that has administrative permissions.
 * 2) Click Start, point to Programs, point to Systems Management Server, and then click Administrator Console.
 * 3) In the SMS Administrator Console, expand Site Database , right-click Advertisements, click New, and then click Advertisement.
 * 4) In the Advertisement Properties dialog box, in the Name box, type a descriptive name.
 * 5) Click the list next to Package, and then select the package that you want to re-advertise.
 * 6) Click the list next to Program, and then select the program that you want to re-advertise.
 * 7) Click Browse.
 * 8) In the Browse Collection dialog box, click the collection that you want, and then click OK.
 * 9) Click the Schedule tab, select the schedule that you want, and then click OK.
 * 10) Click the Advanced Client tab, select the options that you want, and then click OK.



MORE INFORMATION
When this problem occurs, information that is similar to the following may be logged in the Execmgr.log file.

Note The Execmgr.log file is located in the \Winnt\System32\Ccm\Logs folder on the SMS client computer. However, if the SMS client computer is also an SMS management point, the Execmgr.log file is located in the SMS_CCM\Logs folder.

<![LOG[Creating mandatory request for advert AN220083, program TestProgram, package AN200030 Failed to open to WMI namespace '\\.\root\CCM' (80080008)

Raising event: [SMS_CodePage(437), SMS_LocaleID(1033)] instance of SoftDistWaitingContentEvent

{   AdvertisementId = &quot; AdvertisementId&quot;; ClientID = &quot;ClientGUID_ID&quot;; DateTime = &quot;20041117010522.815000+000&quot;; MachineName = &quot;ComputerName&quot;; PackageName = &quot;PackageName&quot;; PackageVersion = &quot;6&quot;; ProcessID = 1212; ProgramName = &quot;ProgramName&quot;; ThreadID = 2060; };

Failed to submit event to the Status Agent. Attempting to create pending event.

Raising pending event: [SMS_CodePage(437), SMS_LocaleID(1033)] instance of SoftDistWaitingContentEvent

{   AdvertisementId = &quot; AdvertisementId&quot;; ClientID = &quot;ClientGUID_ID&quot;; DateTime = &quot;20041117010522.815000+000&quot;; MachineName = &quot;ComputerName&quot;; PackageName = &quot;PackageName&quot;; PackageVersion = &quot;6&quot;; ProcessID = 1212; ProgramName = &quot;ProgramName&quot;; ThreadID = 2060; };

Failed to open to WMI namespace '\\.\root\CCM\Events' (8007045b)

Failed to submit pending event to WMI.

Failed to raise SoftDistWaitingContentEvent event for program ProgramName

Execution Request for program ProgramName state change from WaitingDependency to WaitingContent

Failed to open to WMI namespace '\\.\root\ccm\softmgmtagent' (8007045b) CExecutionRequest::Persist Could not connect to namespace \\.\root\ccm\softmgmtagent 0x8007045b

Additionally, information that is similar to the following may be logged in the DataTransferService.log file.

Note The DataTransferService.log file is located in the \Winnt\System32\Ccm\Logs folder on the SMS client computer. However, if the SMS client computer is also an SMS management point, the DataTransferService.log file is located in the SMS_CCM\Logs folder.

<![LOG[spJob2->SetCredentials(&bgCred), HRESULT=80080008 (e:\nts\sms\framework\ccmdts\bitshelper.cpp,785)]LOG]!>

<![LOG[DTSJob {391DEA89-A46D-4851-91D8-913F0E4D49D7} encountered error setting BITS job to use default credentials (0x80080008).]LOG]!>

<![LOG[hrNull, HRESULT=80080008 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,1530)]LOG]!>

<![LOG[hrDownload, HRESULT=80080008 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,1404)]LOG]!>

<![LOG[DTSJob {391DEA89-A46D-4851-91D8-913F0E4D49D7} in state 'Error'.]LOG]!>

<![LOG[ProcessDownload, HRESULT=80080008 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,1851)]LOG]!>

<![LOG[spMessaging->SendMessageW( spMessage, CCM_MESSAGING_DELIVERMODE_RECOVERABLE, 0), HRESULT=80040202 (e:\nts\sms\framework\ccmdts\notification.cpp,58)]LOG]!>

<![LOG[SendNotifyError( sNotifyEndpoint, sJobID, sNotifyData, hrStatusCode, sStatusMessage ), HRESULT=80040202 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,680)]LOG]!>

<![LOG[Error sending callback notification for DTS job '{391DEA89-A46D-4851-91D8-913F0E4D49D7}'.]LOG]!>

<![LOG[Deleting persisted data for DTS job '{391DEA89-A46D-4851-91D8-913F0E4D49D7}'.]LOG]!><time=&quot;20:35:49.019+540&quot; date=&quot;12-08-2004&quot; component=&quot;DataTransferService&quot; context=&quot;&quot; type=&quot;1&quot; thread=&quot;1484&quot; file=&quot;jobstate.cpp:193&quot;>

<![LOG[spMessaging->SendMessageW( spMessage, CCM_MESSAGING_DELIVERMODE_RECOVERABLE, 0), HRESULT=80040202 (e:\nts\sms\framework\ccmdts\notification.cpp,58)]LOG]!><time=&quot;20:35:49.034+540&quot; date=&quot;12-08-2004&quot; component=&quot;DataTransferService&quot; context=&quot;&quot; type=&quot;0&quot; thread=&quot;204&quot; file=&quot;notification.cpp:58&quot;>

<![LOG[SendNotifyError( sNotifyEndpoint, sJobID, sNotifyData, hrStatusCode, sStatusMessage ), HRESULT=80040202 (e:\nts\sms\framework\ccmdts\dtsjob.cpp,680)]LOG]!><time=&quot;20:35:49.034+540&quot; date=&quot;12-08-2004&quot; component=&quot;DataTransferService&quot; context=&quot;&quot; type=&quot;0&quot; thread=&quot;204&quot; file=&quot;dtsjob.cpp:680&quot;>

<![LOG[Error sending callback notification for DTS job '{391DEA89-A46D-4851-91D8-913F0E4D49D7}'.]LOG]!><time=&quot;20:35:49.034+540&quot; date=&quot;12-08-2004&quot; component=&quot;DataTransferService&quot; context=&quot;&quot; type=&quot;3&quot; thread=&quot;204&quot; file=&quot;dtsjob.cpp:693&quot;>

<![LOG[Deleting persisted data for DTS job '{391DEA89-A46D-4851-91D8-913F0E4D49D7}'.]LOG]!><time=&quot;20:35:49.034+540&quot; date=&quot;12-08-2004&quot; component=&quot;DataTransferService&quot; context=&quot;&quot; type=&quot;1&quot; thread=&quot;204&quot; file=&quot;jobstate.cpp:193&quot;>

<![LOG[it!=m_mapJobs.end, HRESULT=80040215 (e:\nts\sms\framework\ccmdts\globalstate.cpp,96)]LOG]!><time=&quot;20:35:49.034+540&quot; date=&quot;12-08-2004&quot; component=&quot;DataTransferService&quot; context=&quot;&quot; type=&quot;0&quot; thread=&quot;204&quot; file=&quot;globalstate.cpp:96&quot;>

<![LOG[spGlobalState->RemoveJob(guidID, &spJob), HRESULT=80040215 (e:\nts\sms\framework\ccmdts\jobstate.cpp,196)]LOG]!><time=&quot;20:35:49.034+540&quot; date=&quot;12-08-2004&quot; component=&quot;DataTransferService&quot; context=&quot;&quot; type=&quot;0&quot; thread=&quot;204&quot; file=&quot;jobstate.cpp:196&quot;>

<![LOG[DeleteInstance( vValue.getBstr, pContext ), HRESULT=80041002 (e:\nts\sms\framework\core\ccmcore\wminamespace.cpp,711)]LOG]!><time=&quot;20:35:49.034+540&quot; date=&quot;12-08-2004&quot; component=&quot;DataTransferService&quot; context=&quot;&quot; type=&quot;0&quot; thread=&quot;204&quot; file=&quot;wminamespace.cpp:711&quot;>

<![LOG[spNS.DeleteInstance(spJobData), HRESULT=80041002 (e:\nts\sms\framework\ccmdts\jobstate.cpp,199)]

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: SMS Agent Host Content Maintenance: 32728

Keywords: kbtshoot kbprb KB892685

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.