Using Process Monitor to measure logon times

Did you ever get complaints about slow logon times for users running on a Terminal Server? Probably the answer is yes, but what is slow? And can I measure this with hard numbers? Yes you can do this… By using Process Monitor! And I will show you how.

Step 1

Logon to the server with the local Administrator account and start Process Monitor.

Stop the capture and clear everything, this prevents the ProcMon from using unnecessary resources for now.

ProcMon_captureEvents

Step 2

Edit the Filter as follows. Add the processes winlogon.exe, userinit.exe and explorer.exe

Also filter to only show process Start and Exit.

ProcMon_Filter

– Winlogon.exe: You can see the first process to kick of is the Winlogon.exe. It is starting on logon and ends when a user clicks the start => logof button.

– Userinit.exe: Next one to launch is the userinit.exe process which includes various user initializations. This process will also have a Process Exit after a while, which means the users session is fully initialized.

– Explorer.exe: When explorer.exe starts the user will first see the dialogbox saying “Loading your personal settings, ….” and he will then get his start menu, meaning he can start working.

Also in the ProcMon uncheck to show Registry, system & Network Activity

ProcMon_Filter2

Step 3

Start the capture by clicking the “Capture Events” and immediately start another rdp logon session under the user’s account. You will see ProcMon showing the processes start & exit.

ProcMon_StartProc1

So now we need the Start Time for Winlogon.exe and the Start Time for Explorer.exe. All the time between these two is the time a user is waiting for something to happen.

In this case the Logon time was exactly 41seconds

Step 4

If you want to go further in to details on what was exactly running you can start the ProcMon Process Tree. This gives you very fine-grained details about all processes running during the logon.

ProcMon_ProcTreeResult

 

Samuel.

Advertisements

One thought on “Using Process Monitor to measure logon times

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s