Posts Tagged ‘Software’

Sysprep a Windows 7 Machine – Start to Finish

Tuesday, September 8th, 2009

THIS IS OLD, PLEASE SEE NEW VERSION 2, CLICK HERE

This is a step by step guide on Sysprepping (and yes, I have made sysprepping a verb now) a Windows 7 machine from start to finish. This will guide you through building the unattended XML file, having the administrator profile copy over to default profile, and fixes for what is right now a not 100% working system from Microsoft. This is something I would have easily paid for when first starting this process. I don’t know why Microsoft can’t hand us a 100% working process. There will always be fixes, even with the RTM release.

Here is a list of what you will need:

- Latest version of WAIK : KB3AIK_EN.iso Version 1.0
- Windows Vista or Windows 7 Machine to build the XML file on
- ISO or DVD of Windows 7 Installation (x32 or x64)
- WinPE Boot Environment : BrianLeeJackson WinPE 3.0 BootLoader

Once you have WAIK installed on a machine your Start Menu should look like the image below:

Windows 7 WAIK Version 1

Windows 7 WAIK Version 1

Go ahead and launch the Windows System Image Manager. Picture of the program is below.

Windows System Image Manager

Windows System Image Manager

We now need to open a Windows 7 image. If you have an installation DVD, insert it now. Or if you have an ISO of 7, go ahead and extract it to a folder on your desktop. (I recommend 7-zip). Back in Windows System Image Manager (WISM) go to the file menu and select “Select Windows Image”. You will now want to browse to the .CLG file in your Windows 7 installation (I am using Windows 7 Enterprise x64 in my example). It is located in the sources folder. See Image below.

Selecting CLG File - WSIM

Selecting CLG File - WSIM

Now we need to create a new answer file. Go to the file menu and select “Create New Answer File.” Right after creating one, go ahead and simply go to file menu and select “Save Answer File.” This will give your XML file a name and save location. Now you see we have two category folders, Components and Packages. Under the Components folder you see that we have 7 options:

- 1 windowsPE
- 2 offlineServicing
- 3 generalize
- 4 specialize
- 5 auditSystem
- 6 auditUser
- 7 oobeSystem

These are very important as these are the steps in which the XML file is sequenced.

The next part is a little confusing. You are going to add components, from under the “Windows Image” section on the bottom left hand side to the passes on your Answer File. To add a component, you can right click on them and select “add to # pass”. There are many different options you can add, but they have to be done in a certain order and pass otherwise your sysprep might fail. I am simply going to use the one I created as the example.

Download my Windows 7 x86 Sysprep XML File
Download my Windows 7 x64 Sysprep XML File

WSIM Passes

WSIM Passes

Here is more information about adding options under the passes:

1 WindowsPE

Nothing required in my example.

2 OfflineServicing

Nothing required in my example.

3 Generalize

amd64_Microsoft-Windows-Security-SPP_neutral

Set 1 for SkipRearm to allow up to 8 rearms

4 Specialize

amd64_Microsoft-Windows-Security-SPP-UX_neutral

SkipAutoActivation: true

amd64_Microsoft-Windows-Shell-Setup_neutral

Computer Name: * (Randomly generated name, use this to test)
CopyProfile: false (doesn’t quite work, we will do that manually later)
Registered Organization: Microsoft (you must leave this in this section)
Registered Owner: AutoBVT (you must leave this in this section)
ShowWindowsLive: false
TimeZone: Pacific Standard Time

5 AuditSystem

Nothing required in my example.

6 AuditUser

Nothing required in my example.

7 OobeSystem

amd64_Microsoft-Windows-International-Core_neutral

InputLocale: en-us
SystemLocale: en-us
UILanguage: en-us
UserLocale: en-us

amd64_Microsoft-Windows-Shell-Setup_neutral

RegisteredOrganization: YourCompanyName
RegisteredOwner: YourName

Under amd64_Microsoft-Windows-Shell-Setup_neutral component, you will have a subheader for OOBE:

HideEULAPage true
NetworkLocation: Home
ProtectYourPC: 1

Under amd64_Microsoft-Windows-Shell-Setup_neutral component, you will have a subheader for UserAccounts:

You will want to add both an administrator password and another local account with administrator rights and password.

If you have questions, look at my image above to see full layout of components, it should help. Also, you might have additional component headings that I didn’t mention. If you are simply testing first time, just delete them for now. You can add all sorts of components later on, you should do a successful sysprep if this is your first time, better to keep it simple and to the basics.

K, now go ahead and save your answer file. The building of the XML file is now done. That is the worst part. You would think that the sysprep process would get easier as new OS’s come out, but its pretty much the exact opposite.

Prepping your machine

K, now it is time to get your machine that you want to sysprep and capture an image of ready to go. First, you are going enable the administrator account on the computer. To do this on Windows Vista or Windows 7, open up a command prompt (Run as Administrator) and input the following command:

net user administrator /active:yes

Hit enter and you should see “successfully enabled Administrator Account”.

So you should currently have two accounts on your computer. The account you are currently logged into and the Administrator account which you just enabled. You are going to want to customize all of your preferences, favorites, bookmarks, taskbar, etc. under the currently logged in account. Once you have everything just perfect, you are going to reboot the computer and login to the administrator account. This next part is very important. You are going to go to “My Computer” and then to Organize and folder and search options. Go ahead and select “Show hidden files, folders, and drives”. Picture is below.

Show Hidden Files, Folders, and Drives

Show Hidden Files, Folders, and Drives


No go to “My Computer” and you are going to rename the Default folder to Default.bak (The CopyProfile setting in Sysprep on Windows7 does not seem to work yet). Next, copy your other user account, the one you customized everything in, right click on it and select copy. Then paste within that same window. It is going to come out as USERNAME – COPY. Now rename this copied folder to Default. Now after you sysprep your computer it will create all new accounts from that default profile folder using all your customized options.

The last thing we need to do is disable the WMP sharing service. This is a bug in Windows 7 and hopefully will eventually be fixed. If you don’t disable this before the sysprep your sysprep will simply fail to run. Go to run, msconfig, and then disable the “Windows Media Player Networking Sharing” service.

Now you are ready to sysprep your computer and capture an image of it!! Finally! So, grab that XML file you created earlier and you are going to place it on the machine you built your image on. Copy or move it to : C:\windows\system32\sysprep.

Now to run sysprep, navigate to that sysprep folder, hold SHIFT and right click and select “Open New Command Windows Here”.
Next, input the following commands:

sysprep /generalize /oobe /shutdown /unattend:NAMEOFYOURANSWERFILE.xml

Your computer will now run the sysprep process, removing SID, etc, and then shutdown. You can have it restart, but shutdown is always safer if you have a ton of things going on. You will need to boot to your WinPE Boot environment when your computer starts back up. If you miss the first time upon boot up, you will have to re-input your sysprep commands. So do a shutdown, not a restart.

You can use my BrianLeeJackson WinPE3.0 BootLoader to boot up from USB or CD and capture your image. Once you capture your image, you are all done. You now have a sysprepped Windows 7 image. I have performed this task on over 120 computers so far and it has been flawless. The hard part was getting everything configured correctly. I hope this documentation helps someone out there, I know I would have killed for a tutorial like this when I first started :)

How to install HP Mini TouchPad drivers

Saturday, September 5th, 2009

If anyone has recently purchased an HP Mini Netbook they might notice one thing not working after a fresh install of Windows 7. The touchpad scrolling doesn’t seem to work after fresh install of Windows 7 x32. Read below to find out what you need to get it working. The nice thing is, Windows Updates should pick up everything else automatically.

HP Mini Netbook

HP Mini Netbook

Step #1

First thing you will need to do is download the Synaptics Touchpad Driver from their website. Download them here.

Step #2

If this is a netbook, most likely you are running 32-bit of Windows 7 and so you will need to click on “Windows Vista 32-bit Edition v10.1.8″ while on Synaptics’ website.

Step #3

Once you download it, simply double click on it to run it and then you will have to restart your computer.

Step #4

No configuration is necessary. Once you have restarted, you will once again have your touchpad scrolling back.

How to Slipstream Microsoft Office 2007 Service Pack 2 SP2

Sunday, August 23rd, 2009

This is a short guide on how to slipstream Service Pack 2 into Microsoft Office 2007. They way Microsoft does this is that the updates are simply applied immediately after the install. However, this will still save you a lot of time from installing Office and then running Windows Updates; especially if doing a mass deployment or fresh image.

Microsoft Office 2007

Microsoft Office 2007

Step #1

First create two different folders, one for your original office install and the second for your SP2 files. To keep things simply, lets just make them on your desktop, a folder called “Office07″ and a folder called “SP2″.

Create Office Folders

Create Office Folders

Step #2

You now need to copy the contents of your original office install to the “Office07″ folder on your desktop. If you have an ISO, simply extract that with either 7-Zip or WinRar; or if you have it on a DVD, stick that into your computer, browse to the drive, and copy the contents over.

Office 2007 Contents

Office 2007 Contents

Step #3

Now you need to download SP2 for Microsoft Office if you don’t already have it. The download link is here. I would just download it to your desktop.

Download Office SP2

Download Office SP2

Step #4

Now open up a command prompt window on your desktop. (Hold shift and right click on your desktop and select Open Command Prompt Windows Here)

Step #5

You you are going to extract the SP2 exe which you downloaded earlier. In your command prompt window type: office2007sp2-kb953195-fullfile-en-us.exe /extract:”C:\Users\YOURUSERNAME\Desktop\SP2″ (make sure you put in your username)

Extracting Office 2007 SP2

Extracting Office 2007 SP2

Step #6

You should now be prompted with the EULA. Simply check the box and click next. It will extract SP2 into that SP2 folder on your desktop.

Office 2007 SP2 EULA

Office 2007 SP2 EULA

Step #7

Now simply copy the contents of the SP2 folder on your desktop to the UPDATES folder within the Office07 folder on your desktop (Office07\Updates). Then you are finished. When you run the setup for Office, (setup.exe) it will now install SP2 while it installs Office 2007.

How to watch ABC.com shows in Windows 7

Friday, August 21st, 2009

If you are like me then you have already been or just recently moved to Windows 7 operating system. The other day I went on ABC’s website to stream a TV show I had missed. I noticed that it didn’t work at all under Windows 7. This is a short guide on how to watch/stream TV shows on ABC.com when you are running Microsoft’s Windows 7 operating system. Hope this helps :) This works for both Mozilla Firefox 3+ and Internet Explorer 8. Does not work for Opera.

ABC.com Logo

ABC.com Logo

Step #1

You will need to download the Move Network’s “Move Player” which is what ABC.com uses to stream their online TV shows. (Download Here) Visit the link and click on the red “Download” button.

ABC Move Network Player

ABC Move Network Player

Step #2

It is going to ask you to save or run it. Either will work. Once it finishes downloading double click on it to install it. The install should take less than a minute.

Step #3

Once it is installed you should see the screen I have included saying the player is installed.

Move Network Player Installed

Move Network Player Installed

Step #4

Now head over to ABC.com and enjoy your favorite TV shows.

How to install Windows 7 VGA driver on Dell GX260

Thursday, August 20th, 2009

This is a short guide on solving the problem when trying to install the VGA driver on a Dell GX260 when Windows 7 is installed.

Step #1

Install Windows 7 on the Dell GX260 computer. (Refer to my other articles for using ImageX and WinPE 3.0 boot environment for capturing and applying images).

Step #2

Once you have Windows 7 installed, at least for me, Windows Updates didn’t pick up the VGA driver automatically; leaving you with a very large resolution which is unusable.

Step #3

Download the Intel 82845G/GL/GE/PE/GV Graphics Controller driver (R126990.EXE). (Download Here) The drivers on Dell’s website do not work for Windows Vista or Windows 7.

GX260 - R126990 driver

GX260 - R126990 driver

Step #4

Once you have the R126990.EXE downloaded, you will need to extract the contents of the EXE to a folder. I suggest using 7-zip or Winrar. Download 7-Zip

GX260 - Extracting the driver.

GX260 - Extracting the driver.

Step #5

Now that you have the driver extracted you are going to have to install the driver manually in compatibility mode. Go into the folder you just extracted and right click on the setup.exe and go to properties and then the compatibility mode tab. You will want to enable compatibility mode for Windows Service Pack 3 and also select “Run as Administrator.”

Run in Compatibility Mode

Run in Compatibility Mode

Step #6

Click Apply, then click OK. Now run the setup.exe as you normally would and it shouldn’t complain about OS not being compatible.

How to Capture and Deploy Image (.wim) Without Sysprep

Saturday, August 8th, 2009

If you are using WinPE 2.0 or WinPE 3.0 to capture your PC images (.wim files) and deploy them you have probably run into a little problem when trying to deploy an image of Vista or Windows 7 when not first running sysprep. The problem is that if you try to re-deploy an image of a nonsysprepped image of Vista or 7 that the BootMGR will be broken. Follow the steps below to fix this problem.
Microsoft Windows 7

Step #1

I am assuming you have captured your image already and are ready for deployment. Go ahead and boot up your image deployment software (WinPE 2.0 or WinPE 3.0).

Step #2

In my other articles I describe how to use DiskPart and also avoiding the hidden partition before deploying a new image. I suggest reading them.

Step #3

After you have deployed your non-sysprepped image you need to run the following commands: (I have a batch file I use to do this).

bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {bootmgr} device partition=c:

Step #4

This will fix the BOOTMGR problem when deploying a non-syprepped image in Vista or 7. Enjoy!

How to backup your Microsoft OneNote 2010 Notebooks

Saturday, August 8th, 2009

This is a short guide on how to perform a backup of your Microsoft OneNote 2010 Notebooks to two different locations. I would recommend saving it locally and also to a network drive. Or if you are not located on a network, then save the 2nd copy to a thumb drive or 2nd hard drive.

Microsoft OneNote 2010 Icon

Microsoft OneNote 2010 Icon

Step #1

Launch Microsoft OneNote 2010. If you have not yet created a notebook, on the left hand side right click and select “create new notebook.”

Step #2

Once you have a notebook created you will need to go up to the File Menu, which is the big circle in the top left hand side, and then “Options”.

Microsoft OneNote 2010 - Options

Microsoft OneNote 2010 - Options

Step #3

Then go down to the save and backup option in the list. You can change the Backup Folder and the Default Notebook Location. Make sure they are going to two different physical places; not just different folders on the same hard drive. This way if your hard drive dies, you will still have a copy of your OneNote Notebooks.

Microsoft OneNote 2010 - Save & Backup Location

Microsoft OneNote 2010 - Save & Backup Location

Step #4

Now, slightly below that option select “Back Up All Notebooks Now” to test and verify they are being saved to the two different locations.

How to backup your Microsoft OneNote 2007 Notebooks

Saturday, August 8th, 2009

This is a short guide on how to perform a backup of your Microsoft OneNote 2007 Notebooks to two different locations. I would recommend saving it locally and also to a network drive. Or if you are not located on a network, then save the 2nd copy to a thumb drive or 2nd hard drive.

Microsoft Office OneNote 2007

Microsoft Office OneNote 2007

Step #1

Launch Microsoft OneNote 2007. If you have not yet created a notebook, on the left hand side right click and select “create new notebook.”

Step #2

Once you have a notebook created you will need to go up to the “Tools” menu and then “Options”.

Microsoft OneNote 2007 Options

Microsoft OneNote 2007 Options

Step #3

Then go down to the save option in the list. You can change the Backup Folder and the Default Notebook Location. Make sure they are going to two different physical places; not just different folders on the same hard drive. This way if your hard drive dies, you will still have a copy of your OneNote Notebooks.

Microsoft OneNote 2007 Save Location

Microsoft OneNote 2007 Save Location

Step #4

Now go to the Backup option in the list and select “Back Up All Notebooks Now” to test and verify they are being saved to the two different locations.

Microsoft OneNote 2007 Backup Now

Microsoft OneNote 2007 Backup Now

How to Sysprep XP Machine SP3 / Copy Administrator Profile to Default Profile

Tuesday, August 4th, 2009

I realize this article is a little old since Windows 7 is coming out here in a few days, but I thought I would share it with you in case your business has decided to stick with XP for now. When you sysprep a machine you are basically wanting to clone the settings from that machine to another one. You also want it to copy those changes to each profile, correct? Well, in order for the sysprep to successfully copy over the administrator profile to the default profile for each user you have to add an extra line to the sysprep.inf file or else it won’t work in Service Pack 3 like it did in Service Pack 2.

Step #1

The first step is to download the Sysprep App which is included in the CAB file for Windows XP Service Pack 3 Deployment Tools. (Download Sysprep Tool)

Step #2

Next go to the PC you are going to be sysprepping and create a folder on the root of the C: drive called sysprep.

Step #3

Next you will need to extract the contents of the deploy.cab file you downloaded in Step #1 to the sysprep folder on the root of the C: drive.

Step #4

Now we are going to run the sysprep Setup Manager. Double click on setupmgr.exe.

Sysprep Setup Manager

Sysprep Setup Manager

Step #5

Click Next and it is going to ask you whether you want to modify an existing Answer File or create a new one. We are wanting to create a new one, so again click next.

Sysprep - New or Existing Answer File

Sysprep - New or Existing Answer File

Step #6

You now have three options: Unattended Setup, Sysprep Setup, or Remote Installation Services (RIS). In this example we are going to select the Sysprep setup option and then click next. (This creates a sysprep.inf file)

Sysprep - Sysprep.inf File

Sysprep - Sysprep.inf File

Step #7

Select Windows XP Professional and click next. (This will also work on Windows XP Home, Windows Server 2003 Standard, Web, and Enterprise.)

Sysprep - Windows XP Professional

Sysprep - Windows XP Professional

Step #8

In this step it is asking you if you want to fully automate the installation. That is up to you, either way works fine. In this example I will be using the “No, do not fully automate the installation.”

Sysprep - Fully Automate or Not?

Sysprep - Fully Automate or Not?

Step #9

Now we are at the configuration page. There is a lot in here so I am not going to go into detail. In fact, you don’t even need to input anything here for the sysprep to just work. However, everything you input in here will save you time and help shape your image.

Sysprep - Configuration Page

Sysprep - Configuration Page

Step #10

Once you are all done, you should be at the bottom and selected on “Identification String”; click Finish and it is going to prompt you for a location to create and save the sysprep.inf file. The default location is fine, as it will need to be within that sysprep folder on your C: drive. Once you hit ok you will then need to click “Cancel”. There is no close button.

Sysprep - Saving the Sysprep.inf File

Sysprep - Saving the Sysprep.inf File

Step #11

Now you should verify the sysprep.inf file by double clicking on it and opening it up with Notepad.

Sysprep - Verifying the Sysprep.inf File

Sysprep - Verifying the Sysprep.inf File

Step #12

There were a few changes with Windows XP Service Pack 3 and sysprep. The administrator’s profile is no longer copied over to the default profile. You will need to add a line within the sysprep.inf file to regain this important function. Under the InstallFilesPath section add this:

UpdateServerProfileDirectory=1

Once done, hit save.

Sysprep - Adding line to sysprep.inf so the administrator profile will copy over to default profile

Sysprep - Adding line to sysprep.inf so the administrator profile will copy over to default profile

Step #13

Now you are ready to start the sysprep, reboot, and capture your sysprepped image. Double click on the sysprep.exe and then select the following three options in order: Use Mini-Setup, Shutdown Mode: Reboot, and click Reseal. Make sure you have your media ready to capture your image. If you reboot fully without booting to your capturing software it will ruin the sysprep and you will have to redo the sysprep.

Sysprep - Preparation Tool 2.0

Sysprep - Preparation Tool 2.0

How to Install Windows 7 From a Flash Drive / USB Stick

Friday, July 31st, 2009

This is a short guide on how to install Windows 7 onto a computer from a USB Flash Drive / USB Stick or Portable Hard Drive. Since read speeds are faster from USB drive than your CD-ROM drive, this actually decreases the install time for Windows 7.

OCZ Flash Drive - Install Windows 7

OCZ Flash Drive - Install Windows 7

Step #1

The first thing you will need to do is format your USB Flash Drive or Portable Hard Drive so that your computer will read it as a bootable drive. So plug your flash drive into a workstation.

Step #2

Open up Command Prompt / CMD (located in Program Files->Accessories) and type the following commands:

DiskPart
List Disk (this will list the disks currently plugged into your computer. Most likely, the C: drive on that computer will be listed as disk 0, and you will have to look down the list to see which disk your flash drive is. Look at the corresponding disk sizes to easily figure it out.)
Select Disk 3 (I am using 3 as example for assigned flash drive)
Clean
Create Partition Primary
Select Partition 1
Active
Format FS=NTFS Quick
Assign (you can assign a particular drive letter if you want, example: assign=E:)
Exit (this will exit DiskPart)
Exit (this will exit CMD)

Step #3

Next you will need to either insert your Windows 7 CD and browse to the CD or open up your Windows 7 ISO and browse to the folders within it. (If you are using ISO, I would suggest extracting the contents to a new folder)

Step #4

Next you will need to spoof your flash stick so that the computer will think it is an install CD. From within the root of the Windows 7 CD or ISO contents, right click while holding shift key and select “Open Command Windows Here”. This will open up a Command Prompt window within that directory. Then input the following commands:

cd Boot
bootsect /nt60 E: (I am using drive letter E: as my flash drive)
exit (exits command prompt)

Step #5

Next simply copy over the entire contents of your windows 7 CD or ISO to your flash drive.

Step #6

Reboot the computer your are wanting to install Windows 7 on with the flash drive plugged in, hit the boot key (normally F12, DEL, or ESC) to select the boot device, boot to your flash drive, and it will go immediately to the Windows 7 Setup screen.