It looks like I can put this in the above script to automatically go into hibernate after I lose power:
using the utility that I got here.Code:case 10 Set colBattery = GetObject("winmgmts:\\.\root\cimv2").ExecQuery("Select * from Win32_Battery",,48) For Each objItem in colBattery If objItem.Availability > 2 Then WshShell.Run "C:\windows\poweroff.exe hibernate -warn -warntime 60", 0 End If Exit For



LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks