Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System Restore when log on

3 views
Skip to first unread message

Ted Li

unread,
Aug 31, 2006, 4:16:03 AM8/31/06
to
Does anyone knows how to write a script or any third party product that can
schedule system restore run and restore the computer to a specified restore
point whenever a user logon to the system. The reason is we need to restore
our internet cafe machine to original state after it's used to make sure no
virus, no spyware ... was installed on the machine


RobDee

unread,
Aug 31, 2006, 4:57:03 AM8/31/06
to

"Ted Li" <Te...@discussions.microsoft.com> wrote in message
news:A27191C5-BE3A-45B2...@microsoft.com...


http://www.faronics.com/html/deepfreeze.asp

Rob


Bert Kinney

unread,
Aug 31, 2006, 11:16:32 PM8/31/06
to
Hi Ted,

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 Li

unread,
Sep 2, 2006, 7:37:01 PM9/2/06
to
Thanks a lot. This is what I'm looking after. This software is so great.

Ted

Ted Li

unread,
Sep 2, 2006, 7:40:02 PM9/2/06
to
The script for "list of sequence of restore point" works fine, but the script
for "initiate system restore" is confusing, I can't make it work. Any idea?

Ted

Ramesh, MS-MVP

unread,
Sep 3, 2006, 6:01:15 AM9/3/06
to
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...

Bert Kinney

unread,
Sep 3, 2006, 12:53:03 PM9/3/06
to
Hi Ramesh,

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

Ramesh, MS-MVP

unread,
Sep 3, 2006, 1:42:50 PM9/3/06
to
Not yet, Bert. Thanks for the idea :)

--
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 Li

unread,
Sep 3, 2006, 8:58:01 PM9/3/06
to
Thanks so much. You are champ.

Ted

Ramesh, MS-MVP

unread,
Sep 4, 2006, 12:27:24 AM9/4/06
to
You're welcome 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...

0 new messages