powershell - Measure 'Idle' time between CTRL-ALT-DEL and user typing in password and loging on -Windows 7 -
oh yes, windows 7 has built in 'boot performance diagnostics' , judging numerous reboots i've done, generate every , detailed log on user's login process , possible slowness.
that not enough i'm after though.
i want measure every boot on given machine.
there little information available on how force it, except fiddling registry keys system protected don't tamper them.
some of information can found in eventlogs switched tracing eventid 12
$yesterday = (get-date) - (new-timespan -day 2) $startuplog= get-winevent -filterhashtable @{logname='system'; id=12; starttime=$yesterday} -erroraction silentlycontinue but know how 1 can measure when system ready (ctrl-alt-del) , when user hit enter button after typing in password? there flag can set raise such event in (diagnostics) event log?
tnxs
k
you can compare power state timestamp "last interactive logon" feature of ad ds. feature requires domain functional level (dff) of windows server 2008 r2 work , workstation infrastructure of windows vista or later. "msds-lastsuccessfulinteractivelogontime" attribute want. it's time stamp of last successful interactive logon (ctrl+alt+del).
to enable last interactive logon on domain:
http://technet.microsoft.com/en-us/library/dd446680(v=ws.10).aspx
command query attribute:
$computer = 'hostname' get-adcomputer -filter "name -eq $computer" -properties * | select msds-lastsuccessfulinteractivelogontime p.s. try away using "-erroraction". in it's place, use try/catch/finally code blocks. http://blogs.technet.com/b/heyscriptingguy/archive/2010/03/11/hey-scripting-guy-march-11-2010.aspx
Comments
Post a Comment