ConfigMgr 2012 ; CcmExec.exe Exception code: 0xeeeefffe

I’ve had this crop up randomly on a number of machines now – software/update deployment stops working.  On investigation the SMS Host Agent service is not running. When restarted the service wont stay started – the system event log on the client is populated with the following errors:

{code lang:xml showtitle:false lines:false hidden:false}Log Name: Application
Source: Application Error
Date: 14/02/2013 09:14:34
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: <Client FQDN>
Faulting application name: CcmExec.exe, version: 5.0.7804.1000, time stamp: 0x50add095
Faulting module name: KERNELBASE.dll, version: 6.1.7600.16850, time stamp: 0x4e21132b
Exception code: 0xeeeefffe
Fault offset: 0x00009673
Faulting process id: 0xd74
Faulting application start time: 0x01ce0a939470cbdb
Faulting application path: C:\Windows\CCM\CcmExec.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: f1e3ad5b-7686-11e2-abf7-5c260a383293{/code}

Thanks to linkess from the TechNet forums I revised all of my Boundary Groups, creating a set of Boundary Groups that assign servers for content only, and a set of Boundary Groups for Site Code assignment (no servers listed in these).

I also ensured that only servers from the correct site were listed under each content group.

Windows 2008 R2 ; Update Computer Account Group Membership Online

Useful if you use groups for certificate enrolment etc; you can update the computers group membership without having to reboot the server using the following process:

  1. From an elevated command prompt run the command: klist -lh 0 -li 0x3e7 purge
  2. Then enumerate computer group membership again using: gpupdate /force

Windows ; Disconnected RDP Session Search and Destroy!

Every so often I’ll end up with a disconnected RDP session somewhere which causes chaos come password reset day; locking my account out etc. I came across the following script over at which will search for RDP/RDS sessions on every server in a domain for a particular user. Run using cscript.exe serversessions.vbs. Click Read More for the script.

Continue reading “Windows ; Disconnected RDP Session Search and Destroy!”