Scripts for deployment,

  • Thread starter Thread starter Tim Stevens
  • Start date Start date
T

Tim Stevens

Hi,

I'm an OEM system builder and am trying to simplify the final process before
we send our new pcs out the door. I've used the OEM Preinstallation kit and
that side of things is working perfectly, the problem i've run into is the
final process. We normally do the following,:
1. Activate windows
2. Create a final restore point
3. Delete any old restore points only leaving the new one
4. Defrag
5. shutdown

I've been able to do all of these things except for cleaningout the old
restore points.

I beleive there is away to do it through some kind of scripting, WMI or
whatever,

Any help would be appriciated,
Thanks,

Tim Stevens
 
You can use Disk Cleanup to purge restore points

This article might help you (couldnt find a switch for restore points,
though)
How to Automate the Disk Cleanup Tool in Windows XP
http://support.microsoft.com/?id=315246


You can also delete restore points by turning off system restore,
Microsoft script center has an example script on this link.
http://www.microsoft.com/technet/community/scriptcenter/other/scroth45.mspx

You can also delete all files in the C:\System Volume
Information\_restore folder. On a NTFS formatted drive, System Account
is the only account with permissions to that directory (can be
bypassed from within OPK environment, eg. Windows PE)

regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net
 
Yeah thanks, I had allready found that article and found the same thing, it
doesn't let you purge restore points, it'll let you do everything else that
disk cleanup does but not what i want, Thanks anyway

Tim Stevens
 
Tim said:
Yeah thanks, I had allready found that article and found the same thing, it
doesn't let you purge restore points, it'll let you do everything else that
disk cleanup does but not what i want, Thanks anyway

Hi

Actually, disabling System Restore will purge all restore points (and as
far as I know, the only way to purge all restore points with a script).

I would think this process should work for you:

1. Activate windows
2. Disable System Restore (purging all restore points)
3. Enable System Restore
4. Create a final restore point
5. Defrag
6. shutdown

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top