Skip to content

Clean Win7 before capturing image

Featured Replies

It depends. What do you WANT to delete? Are you concerned about size issues with your .WIM file? Before we switched to an automated Build and Capture task sequence within SCCM, we'd at least do the following (it's a little out of date, so take it with a grain of salt):

 

Restart the machine to ensure that everything is running smoothly, and then clean up the following final items prior to capturing the machine:

a. Clear the Internet Explorer (version 8.0) browsing information:

i. Open Internet Explorer and select the Tools | Internet Options menu item.

ii. Click the Delete button within the Browsing History section.

iii. Checkmark ALL of the boxes, and then click the Delete button.

iv. Click the OK button to close the Internet Properties window.

v. Close Internet Explorer.

b. Clear out the Problem Reports and Solutions information:

i. Start | All Programs | Maintenance | Problem Reports and Solutions

ii. Click the Clear solution and problem history link item.

iii. Click the Clear all button on the window that appears.

iv. Close the Problem Reports and Solutions window.

c. To clear out the downloaded Windows Updates, perform the following:

i. Right-click on Computer and select Manage.

ii. Expand the Services and Applications node.

iii. Highlight the Services node.

iv. Double-click on the “Windows Update” service.

v. Click the Stop button.

1. This is a delayed start service, so it may already be stopped. If so, proceed to the next step.

vi. After the service has been successfully stopped, click the OK button to close the Properties window.

1. Leave the Computer Management console open.

vii. Delete the contents of the following two folders (empty the Recycle Bin when done):

2. C:\Windows\SoftwareDistribution\DataStore

3. C:\Windows\SoftwareDistribution\Download

viii. Within the Computer Management console, double-click on the “Windows Update” service.

ix. Click the Start button.

x. After the service has been successfully started, click the OK button to close the Properties window.

xi. Close the Computer Management console.

d. Delete additional unwanted files and folders if they exist:

i. C:\Windows\Panther\unattend.xml

ii. C:\Windows\System32\sysprep\unattend.xml

iii. C:\MININT

iv. C:\PerfLogs

v. C:\Windows\Security\Database\secedit.sdb (if the machine has been joined to a domain).

4. This should prevent any domain group policies from being accidentally integrated into the image if the machine was joined to a domain.

vi. C:\VIRTPART.DAT

5. This file is generated when using Symantec Ghost.

e. Remove unwanted files using the Disk Cleanup tool:

i. Start | All Programs | Accessories | System Tools | Disk Cleanup

ii. Check ALL the boxes except “Setup Log Files”, and then click the CK button.

iii. Click the Delete Files button on the window that appears.

f. Re-Enable System Restore:

i. Right-click on Computer (located on the Start menu) and select Properties.

ii. Click the Advanced system settings link button.

iii. Click the System Protection tab.

iv. Check the box for the desired Available Disks.

v. Click the Apply button.

vi. Click the OK button to close the System Properties window.

vii. Close the System window.

g. Delete the contents of “C:\Windows\prefetch”.

h. Delete the contents of “C:\Windows\Temp”.

i. Clear out the frequently used programs list on the Start menu.

j. Clear out the recent items list on the Start menu.

k. Empty the Recycle Bin.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.