Measure user logon times with PowerShell

I recently had a client who was experiencing random slow logons on their Windows 7 systems. These logons were taking anywhere up to (and sometimes in excess of) ten minutes, so naturally the user base was getting pretty irate.

The problem for the IT department is that these machines were almost exclusively public access machines, […]