System Uptime and event log

2009-11-02 Thread Craig Gauss
Does anyone know of any sort of script that would check the System Uptime and if it is over a certain amount of time it would register an event in the Event Log? Craig Gauss, Technical Supervisor/Security Officer Riverview Hospital Association ~ Finally, powerful endpoint security that

Re: System Uptime and event log

2009-11-02 Thread Rubens Almeida
Powershell! Not tested yet, but it can give you an idea on how to build your script based on your own needs: #$ErrorActionPreference = SilentlyContinue $StrServerName = $Args[0].ToString() #Check the System Uptime $wmiInfo = gwmi -class Win32_OperatingSystem -namespace root\cimv2 -computer

RE: System Uptime and event log

2009-11-02 Thread Jackson, Jeff
(dtmBootup, _ 13, 2)) End Function Jeff From: Craig Gauss [mailto:gau...@rhahealthcare.org] Sent: Monday, November 02, 2009 8:53 AM To: NT System Admin Issues Subject: System Uptime and event log Does anyone know of any sort of script that would check the System Uptime and if it is over