http://www.faronics.com/html/deepfreeze.asp
Rob
Previously posted by: Ramesh Srinivasan, Microsoft MVP [Windows XP
Shell/User]
Using Windows Scripting / WMI.
Restore Method of the SystemRestore Class:
http://windowssdk.msdn.microsoft.com/en-us/library/ms723713.aspx
"Initiates a system restore. The caller must force a system reboot. The
actual restoration occurs during the reboot"
You want to provide a Sequence number of the restore point, which can
also
be retrieved using enumeration.
Print the list of all available System Restore points to a file:
http://windowsxp.mvps.org/listsr.htm
--
Regards,
Bert Kinney MS-MVP Shell/User
http://bertk.mvps.org
Member: http://dts-l.org
"Ted Li" wrote
Ted
Ted
It looks like you've found a third-party alternative. Anyway, I'm posting a
sample script which will rollback the system to a specific system restore
point (sequence id mentioned).
- - -
Set Args = wscript.Arguments
RpNum = 156 'This is the Sequence ID
Set obj =
GetObject("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore")
if obj.Restore(RpNum) <> 0 Then
wscript.Echo "Restore failed"
End If
Set OpSysSet =
GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from
Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.Reboot()
next
- - -
Paste the contents to Notepad, and save it with .vbs extension (example,
"restore_156.vbs") and run the file. It will reboot once, and System Restore
rollback takes place on the next startup.
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
"Ted Li" <Te...@discussions.microsoft.com> wrote in message
news:76264553-C9CC-4BDC...@microsoft.com...
Do you have a web page on this? <hint>
--
Regards,
Bert Kinney MS-MVP Shell/User
http://bertk.mvps.org
Member: http://dts-l.org
"Ramesh, MS-MVP" wrote
> "Ted Li" wrote
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
"Bert Kinney" <be...@NSmvps.org> wrote in message
news:ulHXtl3...@TK2MSFTNGP03.phx.gbl...
Ted
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
"Ted Li" <Te...@discussions.microsoft.com> wrote in message
news:2B2C675C-2672-4E36...@microsoft.com...