11-29-2010, 07:37 PM
Heres one to find last boot time:
But the first command isn't working because he probably got it off google, and forgot to tell you that it pipelines the information of systeminfo.exe into find.exe to find the string "Up Time" and display the result. the problem is that it might not display the result for you because the same command is different from say, vista SP1, to XP or other versions of windows like NT.
because there is a variable for it you can simply type in "systeminfo.exe" in your cmd prompt to display all the useful info it gives you, but it will not give you the last logoff time. The command for XP btw, is actually
Code:
net statistics workstation | find "Statistics since"
But the first command isn't working because he probably got it off google, and forgot to tell you that it pipelines the information of systeminfo.exe into find.exe to find the string "Up Time" and display the result. the problem is that it might not display the result for you because the same command is different from say, vista SP1, to XP or other versions of windows like NT.
because there is a variable for it you can simply type in "systeminfo.exe" in your cmd prompt to display all the useful info it gives you, but it will not give you the last logoff time. The command for XP btw, is actually
Code:
systeminfo| find "System Up Time"