How to log what happens at login?

Hi how can I determine the cause of why a script isn't running or why mapped drives aren't mapping for computer and user newly added to an OU?  The GPO gets applied, but no mapped connections. Is there a way to log everything at logon or boot up?
victor2008Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mike KlineConnect With a Mentor Commented:
For group policy logging on an XP system you can crank up userenv logging

http://technet.microsoft.com/en-us/library/cc775423(WS.10).aspx

Sysprosoft makes a decent free tool that helps you read the logs  http://www.sysprosoft.com/policyreporter.shtml

The DS team also has a good blog series about reading the logs   http://blogs.technet.com/b/askds/archive/2008/11/11/understanding-how-to-read-a-userenv-log-part-1.aspx

Did you run an RSoP report to make sure the correct policies are applying.

On vista and later systems the Group policy log is there for you but you can also crank up logging on those machines (not needed as much though with the GP logs)  http://blogs.technet.com/b/mempson/archive/2010/01/10/userenvlog-for-windows-vista-2008-win7.aspx

Thanks
Mike
0
 
johnb6767Connect With a Mentor Commented:
http://live.sysinternals.com/procmon.exe

I use this with userenv logging to see exactly what's going on, like permissions failures etc..

0
 
victor2008Author Commented:
I followed instructions from http://blogs.technet.com/b/mempson/archive/2010/01/10/userenvlog-for-windows-vista-2008-win7.aspx but get error:
could not locate c:\windows\debug\usermode\user.log or c:\windows\debug\usermode\gpsvc.log or any preference logs.

you may need to activate logging via file/set logging options.
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
Mike KlineConnect With a Mentor Commented:
Are you trying to check login times on your XP boxes or servers?

I'll have to test blog on a 2008 box later if I have time.
0
 
victor2008Author Commented:
i'm trying to check why drives aren't being mapped via gpo's when user logs on to both win7 and xp
0
 
johnb6767Connect With a Mentor Commented:
Process Monitor above might help. Once tyou enable boot logging, reboot, and reopen it to compile the logs, search for net.exe, and check the results.....Maybe a permissions failure.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.