Unleash Your Potential - Namagunga Girls Coding Club
Understanding &Troubleshooting the Windows Logon Process
1. Diving into the
Windows Logon Process
Yoni Avital (VDI Geek)
Eugene Kalayev (Cloud and PowerShell Geek)
2. Agenda
• Logon process overview
• Logon process breakdown
• Tools of the trade
• Event log (is your friend)
• Process Monitor
• Advanced (Geek) stuff
• Event Tracing for Windows
• PowerShell Scripts
• Live demo
4. Logon Process - Optional Phases
• Network Providers (RDS)
• Mpnotify.exe loads network providers (e.g. pnsso)
• 3rd party profile solutions (e.g. UPM)
• UPM loads before the User Profile Service and can delay the logon process
• Group Policy Scripts
• Will affect logon duration if runs synchronously
• Citrix Printer Mapping
• Can delay the logon process if apps are waiting for printer mapping. Handled by
wfshell.exe (part of the UserInit phase)
14. Event Tracing for Windows
• High speed kernel & user mode event tracing
• Steps
• Create and start new ETW trace
• Reproduce the slow logon issue
• Stop the trace
• Convert the ETL log file to XML format
• Analyze log with Notepad ++
• Example – Analyze logon processes
19. PowerShell - Analyzing GP CSE Load Times
Get-GPUserCSE -Username MyDomainMyUser
Lists every loaded CSE by name and processing time
CSE Name Time (in ms)
-------- ------------
Group Policy Environment 1514
Registry 4477
Group Policy Drive Maps 936
Scripts 421
Group Policy Registry 1825
Folder Redirection 6895
Group Policy Files 2418
Group Policy Start Menu Settings 842
Citrix Group Policy 1310
Total time of 20.64 seconds
Total errors: 1
Folder Redirection failed with 'ErrorCode' 1003