Write User Logon Times to SQL with PowerShell

I was quite pleased with my last PowerShell post, measuring user logon times from logon to the point at which the desktop becomes usable. However, I received the following feedback:

Text files or CSVs are all well and good, but SQL reporting is definitely the way to go, and; The initial time metric was more [...]

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, [...]