Jump to content


  • 0
anyweb

How can I capture Windows 7

Question

As this is requested a lot, here's how to make it easier for you to Capture Windows 7. Note that this method is not recommended as you should use the Build and Capture method to capture Windows 7 and the computer should not join the domain, that said, if you still want to capture a domain joined computer and you are willing to deploy that captured image (with registry settings from Domain Joining, gpo's etc...) then read on...

 

Import the following Task Sequence into ConfigMgr by right clicking on the Task Sequences node of Operating System Deployment in ConfigMgr, and choose Import.

 

capture Windows 7 X86.xml

 

Once Imported you will have to supply it with two packages namely your X86 boot image and a new package called AutoLogin_windows7

 

The Autologin_windows7 packgage contains a registry file and a program

 

the Program is as follows:

 

reg import "autologin_windows7.reg"

 

autologin_enable.jpg

 

the properties are as follows:

 

autologin_properties.jpg

 

and the autologin_windows7.reg registry file contains the following

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"AutoAdminLogon"="1"
"DefaultUserName"="Administrator"
"DefaultPassword"="password"

 

replace password above with the local admin password...

 

once done, make sure to edit your task sequence so that it's using your X86 boot image by right clicking on the Task Sequence, select properties and select the correct boot image,

 

boot image.jpg

 

then make sure that the Task Sequence is using your new autologin package by right clicking on the Task Sequence and choose Edit,

 

autologin via registry.jpg

 

finally advertise it to a capture windows 7 collection and add a computer to that collection using direct membership

 

capture collection.jpg

 

After you've added the computer to the collection, start it up, login to Windows, open control panel, open the RAP (run advertised programs) and kick off the Capture windows 7 task sequence.

 

Side note: you'll need to create a step in your deploy task sequence to remove the registry autologin values otherwise the deployed image will attempt auto login on first boot..

 

Further Reading:

 

1. Auto Login as part of OSD Task Sequence

2. Login Single Domain User for Caching After Imaging via Task Sequence

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

ok, well this topic is about Capturing Windows 7, so really you should only be asking about Capturing Windows Vista in the vista section, this is to avoid confusing the topic, confusing others, confusing me.....

Share this post


Link to post
Share on other sites

  • 0

Hi All,

I tried this and I am getting an error when executing the auto login registry task. 0x00000032. I even tried to use the Run command line task and that failed as well.

 

I am not sure what I am doing wrong. I built the Autologin via registry package/program/distribution points.

 

Any help will be greatly appreciated.

 

Thanks

 

UPDATE: I was trying to do this trough winPE and finally read something that way would never work. I ran it in windows...machine rebooted and just sat at the login prompt for a while. After nothing happned, I rebooted it but I can no longer login as administrator.

 

I used - ophcrack to see what the password is set to but...it says empty. I can't login.

 

UPDATE2: Turns out account got dissabled??? it's the same account I logged in as to run the advertisement. Side note: Couldn't you just set the password to blank and just do auto login?

 

UPDATE3: Finally got it to run but now it fails at sysprep with error error 0x00004005. I even tried with a disk and got the same result.

Share this post


Link to post
Share on other sites

  • 0

as you guys are having so many problems with capturing windows 7 I will try and do a webcast to explain it better, watch this space....

Share this post


Link to post
Share on other sites

  • 0

I work at a college and we are going to be migrating from XP to Windows 7 soon via SCCM. While the labs should be fairly simple to setup (just install the software needed and pull the image), I do have one question in regards to it. In XP we would create a default profile for all students to speed up login and such. Windows 7 doesn't use the same method of pulling a default profile. I've read that when using AIK, one can pull a profile and make it use this profile as the default when imaging, though I am uncertain as to how to go about doing this with SCCM.

 

My second question is in using SCCM to upgrade the instructor machines. In the Task Sequence is the ability to capture the User State. This can be done with USMT but I haven't yet used it. Do you have any instructions in regards to this as well?

Share this post


Link to post
Share on other sites

  • 0

I have followed your guide for Capturing Windows 7 (I also followed your guides for setting up SQL and SCCM so many thanks for that!)

 

After numerous small problems, mostly being new to SCCM the task sequence of yours that I imported is now showing in RAP and working. The machine removes itself off the domain, reboots and seems to config the ConfigMgr client successfully. The next stage is the Sysprep stage, but here the TS fails with error code 0x00000057.

 

The SMSTS log shows some lines as follows

 

Local machine is not part of a domain

Emptying Recycle Bin failed

Administrator Account name = 'Administrator' (This is not the account set up for auto login, a seperate local admin account was setup)

Reset Password Operation successful

Failed to pre-stage the WINPE image

Unable to sysprep the machine

Sysprep'ing the machine failed

Exiting with error code 87

 

Failed to run the action: Prepare OS. The parameter is incorrect (Error: 00000057; Source: Windows

 

Any information would be greatly appreicated.

 

It is difficult to extract the full log as the machine is on a seperated VM Network within our corporate network

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.