‘net statistics server / workstation’과 별도로 Windows 서버의 마지막 재부팅 시간을 어떻게 찾을 수 있습니까?
답변
시작-> 실행-> cmd.exe
systeminfo | “시스템 가동 시간”을 찾으십시오.
또는 최신 OS 버전의 경우 (주석 참조) :
systeminfo | “시스템 부팅 시간”을 찾으십시오.
답변
이벤트 ID 6009에 대한 시스템 이벤트 로그를 필터링하십시오.
답변
powershell 명령을 열고 이것을 실행하여 모든 기록을보고 … UI가 필요하지 않습니다 🙂
get-eventlog System | where-object {$_.EventID -eq "6005"} | sort -desc TimeGenerated
답변
Microsoft Sysinternals 패키지의 PsInfo 유틸리티를 사용하면 다음과 같이 출력됩니다.
PsInfo v1.77 - Local and remote system information viewer
Copyright (C) 2001-2009 Mark Russinovich
Sysinternals - www.sysinternals.com
System information for \\JEFF-DELL:
Uptime: 0 days 0 hours 33 minutes 27 seconds
Kernel version: Microsoft Windows XP, Multiprocessor Free
Product type: Professional
Product version: 5.1
Service pack: 3
Kernel build number: 2600
Registered organization:
Registered owner:
IE version: 8.0000
System root: C:\WINDOWS
Processors: 2
Processor speed: 2.3 GHz
Processor type: Intel(R) Core(TM)2 Duo CPU E6550 @
Physical memory: 3316 MB
Video driver: Live Mesh Remote Desktop Mirror Driver
답변
Server 2008을 사용하는 경우 “작업 관리자”- “성능”탭에서 몇 시간 내에 시스템 가동 시간을 확인할 수 있습니다. 내가 아는 한 “net statistics …”방식은 Windows 2003에서 유일한 방법입니다.
답변
wmi 클라이언트 사용
C:\>wmic OS GET CSName,LastBootUpTime
CSName LastBootUpTime
SERVER 20101124084714.500000-360
참고 : -360 = GMT-6
답변
시스템이 마지막으로 부팅 된 시간
개인적으로 가장 좋아하는 것은 WMI 및 Win32_OperatingSystem 속성 / 방법을 사용하는 것입니다. 다음은 라이너 하나를 쉽게 복사 / 붙여 넣기하는 방법입니다.
((Get-WmiObject Win32_OperatingSystem).ConvertToDateTime((Get-WmiObject Win32_OperatingSystem).LastBootUpTime))
동일하지만 수동 입력이 더 쉽습니다.
$obj = Get-WmiObject Win32_OperatingSystem
$obj.ConvertToDateTime($obj.LastBootUpTime)
두 옵션 모두 다음과 같은 출력을 제공합니다.
Monday, June 30, 2014 11:59:50 AM
시스템 가동 시간
시스템이 온라인 상태 인 시간을 확인하려면이 작업을 수행 할 수 있습니다 (이는 대체 코드 스타일이기도 함).
$Obj = Get-WmiObject -Class Win32_OperatingSystem
$Obj.ConvertToDateTime($Obj.LocalDateTime) - $Obj.ConvertToDateTime($Obj.LastBootUpTime)
다음과 같은 출력을 제공합니다.
Days : 7
Hours : 1
Minutes : 59
Seconds : 42
Milliseconds : 745
Ticks : 6119827457690
TotalDays : 7.08313363158565
TotalHours : 169.995207158056
TotalMinutes : 10199.7124294833
TotalSeconds : 611982.745769
TotalMilliseconds : 611982745.769