Deployment Image Creation (Windows 7)
Jump to navigation
Jump to search
Create Image with Default Profile
Procedure to create a Windows 7 image with a customised default profile. The instructions here are based on document linked from this forum post - http://www.sevenforums.com/customization/26099-windows-7-default-profile-how-can-i-edit-10.html#post1044804.
- Perform a base install of Windows 7 on a machine
- On completion of the install, follow the prompts to create a user (eg Default-User)
- Log in and enable the Administrator account (and give it a password)
- Log off, and log back in as Administrator
- Install all required applications, for example...
- Anti-virus
- Office
- Windows Updates
- Restart the machine and log back in as the user (eg Default-User)
- Customise the profile, for example...
- Background
- Login screen
- Screensaver
- Internet Explorer home page and favourites
- Save and apply the customised theme as the new default
- Right-click over the desktop and select Personalization
- Right-click over the Unsaved Theme and select Save theme for sharing
- Save the file (eg as Default-Theme to C:\Temp)
- Click on another theme, so you can then right-click over your customised theme and select Delete theme
- Locate the saved theme and double-click to apply as default theme
- Perform a final tidy up (prior to sysprepping), remove anything you don't want on the final image
- Delete any temporary files
- Delete unnecessary user accounts/profiles
- Restart the PC and log back in as Administrator
- Make user profile (eg Default-User) the default
- Make all files viewable
- In Explorer, go to Organize | Folder and search options, and then the View tab
- Check Show hidden files, folders, and drives
- Untick Hide protected operating system files
- Click on Apply
- In Explorer, go to Organize | Folder and search options, and then the View tab
- Rename
C:\Users\Default
toDefault.orig
- Copy the new profile (eg
C:\Users\Default-User
) toC:\Users\Default
- Update NTUSER.DAT
- Start regedit, select
HKEY_USERS
, then go to File | Load Hive - Open
C:\Users\Default\NTUSER.DAT
, and profile a (temporary) name (eg Default-Profile) - Navigate to
HKEY_USERS\Default-Profile\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
- Delete all values except...
(Default)
!Do not use this registry key
- Select
Default-Profile
and go to File | Export... and save (egC:\Temp\Default-Profile
) - Edit the file in Notepad, and perform a Find and Replace, replacing the user (eg
Default-User
) withDefault
- Save the file, and merge (double-click on file), then delete it
- In regedit, ensure Default-Profile is selected and go to File | Unload Hive...
- Start regedit, select
- Make all files viewable
- Delete any files in
C:\Users\Default\AppData\Roaming\Microsoft\Protect
The machine is now ready for Sysprep and cloning, to Sysprep open a command prompt and type...
cd C:\Windows\System32\Sysprep sysprep /oobe /generalize /reboot
...when the machine reboots it needs to boot into the clone or image taking software.
Windows Automated Installation Kit (AIK)
Allows you to tinker with install images and create unattend.xml answer files to customise deployments.
- Download from http://www.microsoft.com/en-gb/download/details.aspx?id=5753
- Extract the ISO (using WinRAR for example), and install
Create Unattend Answer File
- Run the Windows System Image Manager
- Open OS Catalog
- Go to File | Select Windows Image...
- Open the Catalog file from the OS install CD
- EG
\sources\install_Windows 7 ENTERPRISE.clg
- EG
- Create answer file
- Go to File | New Answer File...
- Go to File | Save Answer File As...
- EG
unattend.xml
- EG