如何找出 Windows 上的正常运行时间?

Juo*_*nis 48 windows command-line uptime

找出计算机在 Windows 上打开多长时间的最简单方法是什么?

Mic*_*ech 60

  • 运行命令行
  • 输入系统信息
  • 找到“系统启动时间”

    天数:10 小时:10 分钟:10 秒:10

对于较短的结果,您可以使用:

systeminfo | find "Boot Time" 
Run Code Online (Sandbox Code Playgroud)

  • > 系统信息 | 找到“启动时间” (9认同)
  • 不适用于 Vista(改用已包含的 uptime.exe)。 (4认同)
  • 在 Windows 7 上,它显示“系统启动时间”但*不*“系统启动时间”。 (4认同)
  • 另请注意,您可以使用它来查询远程机器为`systeminfo /S `*machinename*` | 找到“正常时间”` (3认同)
  • 对我来说,现在最简单的方法是 > systeminfo | 找到“正常时间” (2认同)
  • 对于 Server 2003/XP 使用“Up Time”,任何更新的都可以使用“Boot Time”。 (2认同)

And*_*ija 15

Microsoft uptime.exe 提供了很棒的命令行工具:

http://www.microsoft.com/downloads/details.aspx?FamilyID=BC18FFDB-D6FE-400B-B892-94783AE44C91&displaylang=en

这个工具的好处是它的工作速度非常快。

正常运行时间 [服务器] [/s] [/a] [/d:mm/dd/yyyy | /p:n] [/heartbeat] [/? | /help]
server 要处理的远程服务器的名称或 IP 地址。
/s 显示关键系统事件和统计信息。
/a 显示应用程序失败事件(假设为 /s)。
/d:仅计算 mm/dd/yyyy 之后的事件。
/p:只计算前 n 天的事件。
/heartbeat 打开/关闭系统的心跳
/? 基本用法。
/help 附加使用信息。

  • 这已停止。[Archvie](http://web.archive.org/web/20100316211056/https://support.microsoft.com/kb/232243) 和 [下载](http://web.archive.org/web/20091223110128 /http://download.microsoft.com/download/winntsrv40/install/uptime_1.01/nt4/en-us/uptime.exe); 还有 [sysinternals psinfo](https://superuser.com/a/103831) (2认同)

sva*_*agt 12

打开命令提示符并键入:

net stats srv | find "Statistics"
Run Code Online (Sandbox Code Playgroud)

示例输出:

>net stats srv | find "Statistics"
Server Statistics for \\4IFS-SANDER
Statistics since 22/07/2009 10:14:14
Run Code Online (Sandbox Code Playgroud)

来源 ( MS KB )。

编辑:实际上这会告诉您电脑启动的日期和时间,而不是持续时间。


小智 8

在 Windows 7 / Windows Server 2008 及更高版本上,此信息显示在“性能”选项卡下的任务管理器中。

这可以比使用命令行更快,并且在您可能遇到 WMI 问题阻止您运行 systeminfo 的情况下工作。

在哪里可以找到 uptiem

如果你需要远程找到这个,你也可以运行

systeminfo /s 服务器名 | 找到“时间:”

从命令行。


小智 6

以下命令给出了远程系统的上次重启时间:

systeminfo /s server_name | find "System Boot Time"
Run Code Online (Sandbox Code Playgroud)


Was*_*sif 5

在 Windows 10 中,它位于任务管理器 > 展开更多详细信息 Chevron > 性能 > CPU > 底部的正常运行时间。

在此输入图像描述