DWM.exe Error code 0x400100004
DWM.exe Error code 0x400100004
The Desktop Window Manager (DWM.exe) has exited with code (0x400100004).
Desktop Window Manager. (DWM.exe) is the Window manager that Windows Vista and Windows 7 utilize for the use of the Windows Aero GUI, graphical user interface, or visual theme. Desktop Window Manager, or DWM for short, requires a shared or dedicated video card solution that supports DirectX version 9.0 or newer and Shader Model 2.0 or newer to run.
Just like every other major part of an operating system, DWM can be troublesome at times. One error that users have found when using Xen series desktop virtualization applications, from Citrix, is DWM crashing and, obviously closing. Upon crashing, Windows Event Viewer displays the stop code 0x400100004. ( DWM.exe Error code 0x400100004.)
This error was found to be caused when setting TS profile paths with the AD Users and Computers console in Windows Server 2008. While this issue isn’t very common, there still is that slight possibility that it will occur.
Fixing this problem is fairly simple, just follow these steps:
Clear “UserParameters” attribute:
Const ADS_PROPERTY_CLEAR = 1
Set objUser = GetObject _
(“LDAP://cn=MyUser,ou=MyOU,dc=MyDomain,dc=com”)
objUser.PutEx ADS_PROPERTY_CLEAR, “userParameters”, 0
objUser.SetInfo
Now we need to reset the TS profile path and properties via script:
Set objUser = GetObject _
(“LDAP://cn=MyUser,ou=MyOU,dc=MyDomain,dc=com”)
objUser.TerminalServicesProfilePath = “\\server\share\profile”
objUser.SetInfo
There you have it! This should take care of the 0x400100004 error and prevent it from happening again.