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

Hi,

 

firewall is off. sccm client successfully deployed to the target laptop (windows 7 64 bit). odd thing is that i can advertise the auto login program to the client but not the capture task.

 

how do you setup the advertisement ? mandtory or optional > only optional advertisments you can see in RAP window.

After advertising ,try running machine policy or you can use SCCM client center to import policy for particular advertisement and see how this works from Logs ?

Share this post


Link to post
Share on other sites

  • 0

how do you setup the advertisement ? mandtory or optional > only optional advertisments you can see in RAP window.

 

Not totally true, you can also see a mandatory advertisement in RAP, as long as you select Allow users to run the program indepently of assignments in the Interaction tab.

Share this post


Link to post
Share on other sites

  • 0

Another thing that could be interesting is what can we delete just before the capture sequence other than the applications that writes logs on the root drive. Maybe updates in the SoftwareDistribution folder?

 

For a Compaq 8000 Elite my wim file is 1,7GB and for a Lenovo T510 it's 3,3gb.

Share this post


Link to post
Share on other sites

  • 0

Hello,

 

do you know if it possible to name Computer during OSD ?

I mean, after the OSD i have computer name "MYPC" for example and not the random naming that SCCM do.

 

Regards,

 

Yes it's possible.

 

Look for this -> PromptForSystemName.vbs (Author; Nick Moseley)

Share this post


Link to post
Share on other sites

  • 0

hi

I've tried to use this ts but when i try to run it via RAP, i'm getting an error 'program is currently not available'. CAS.log seem to be ok

And when i try to boot from pxe with this ts, i'm getting this(from smsts.log):

Getting policy for CCM_SoftwareDistribution[AdvertID=SPB2006E", PackageID="SPB00053", ProgramID="autologin enable] TSPxe 20.01.11 17:58:56 1324 (0x052C)

FALSE, HRESULT=80040104 (e:\nts_sms_fre\sms\framework\tscore\tspolicy.cpp,2301) TSPxe 20.01.11 17:58:56 1324 (0x052C)

Failed to find CCM_SoftwareDistribution object for AdvertID="SPB2006E", PackageID="SPB00053", ProgramID="autologin enable" TSPxe 20.01.11 17:58:56 1324 (0x052C)

(*iTSReference)->Resolve( pTSPolicyManager, dwResolveFlags ), HRESULT=80040104 (e:\nts_sms_fre\sms\framework\tscore\tspolicy.cpp,2862) TSPxe 20.01.11 17:58:56 1324 (0x052C)

m_pSelectedTaskSequence->Resolve( m_pPolicyManager, TS::Policy::TaskSequence::ResolvePolicy | TS::Policy::TaskSequence::ResolveSource, fpCallbackProc, pv, hCancelEvent), HRESULT=80040104 (e:\nts_sms_fre\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,1208) TSPxe 20.01.11 17:58:56 1324 (0x052C)

Failed to resolve selected task sequence dependencies. Code(0x80040104) TSPxe 20.01.11 17:58:56 1324 (0x052C)

hrReturn, HRESULT=80040104 (e:\nts_sms_fre\sms\client\tasksequence\tsmbootstrap\tsmediaresolveprogresspage.cpp,408) TSPxe 20.01.11 17:58:56 1324 (0x052C)

ThreadToResolveAndExecuteTaskSequence failed. Code(0x80040104) TSPxe 20.01.11 17:58:56 1324 (0x052C)

ThreadToResolveAndExecuteTaskSequence returned code 0x80040104 TSPxe 20.01.11 17:58:56 1176 (0x0498)

 

can anyone help me with this?

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.