Roaming profiles and domain policies are implemented via USERENV.DLL . Microsoft Knowledge Base articles 221833 and 154120 describe how to instruct that DLL to debug the login process.