Windows 7中是否有命令或GUI工具来获取以下内容?
- 正常运行时间
- 最后一个用户登录的时间和日期
- 机器上次重启
Windows 7中是否有命令或GUI工具来获取以下内容?
Answers:
我知道可以在Event Viewer的Security
部分下找到登录/注销时间。值得一看的是Event Viewer,以查找所需的其他信息。Windows Logs
发现于:控制面板(经典视图)>管理工具
或点击开始,然后在搜索中键入“事件查看器”。
转到命令提示符(输入cmd
开始菜单),然后输入quser
。它显示所有[当前]用户登录的日期。administrator
将显示计算机上次启动的时间。
即使工作站的屏幕在会话期间已被锁定,这仍将显示正确的登录时间。
'quser' is not recognized as an internal or external command, operable program or batch file.
query user
也不起作用。我使用的是
当您知道1时,您肯定可以得出3?
您可以使用以下命令从命令行中找到正常运行时间:
net statistics server | find "Statistics since"
使用“ Net user”命令,我们可以找到用户的最后登录时间。确切的命令在下面给出。
**net user **username** | findstr /B /C:"Last logon"**
用您的PC的用户名更改用户名。
示例: 查找计算机管理员的上次登录时间
**C:\> net user administrator | findstr /B /C:"Last logon"
Last logon 6/30/2010 10:02 AM
C:>**
这将是有帮助的
net user username
这是您寻找的所有要点:
您可以下载脚本和GUI。
您需要用作管理员级别。
您还需要在C:\下创建computers.txt文件,
这就是他的脚本所说的内容,并保存要查询的任何PC /服务器。
我发现这绝对有用,完全归功于Gandalf50。链接在这里>>> ScriptCentre Gurus
好吧,我不知道最后一个用户,但是正常运行时间/重启后,您可以使用以下小工具:
http://gallery.live.com/liveItemDetail.aspx?li=9edd60d7-5810-44b4-a72e-b3416de5758b
不用担心图像质量,小的屏幕截图确实会失真,但是我已经在Vista和7上使用了很多年了,并且效果很好。
它以以下格式显示计算机启动时间:
w天
x小时
y分钟
z秒
This program will display the system started Date & Time , how long the pc is running now etc. You can ask the program to shutdown the pc, restart, hibernate etc when a perticuler time reached.
Note: The program can monitor up to 49days.
Supports Windows 200 / XP/ vista.
应该可以在Windows 7上使用。但是尚未经过测试。