![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List System Restore Configuration Values
|
||
' Description: Displays the current system restore configuration settings on a computer.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\default") Set colItems = objWMIService.ExecQuery("Select * from SystemRestoreConfig") For Each objItem in colItems Wscript.Echo "Disk Percent: " & objItem.DiskPercent Wscript.Echo "Global Interval (in seconds): " & objItem.RPGlobalInterval Wscript.Echo "Life Interval (in seconds): " & objItem.RPLifeInterval If objItem.RPSessionInterval = 0 Then Wscript.Echo "Session Interval: Feature not enabled." Else Wscript.Echo "Session Interval (in seconds): " & _ objItem.RPSessionInterval End If Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |