Showing posts with label PXE Boot. Show all posts
Showing posts with label PXE Boot. Show all posts

Wednesday, 23 July 2014

SCCM 2012 R2 "The Create Task Sequence Media Wizard Completed with Errors -2147212243" Refer to CreateTSMedia.log File

You are trying to create a Stand-Alone SCCM 2012 R2 USB Boot drive from one of your Task Sequences. It get all the way to the end and fails with The Create Task Sequence Media Wizard Completed with Errors -2147212243" Refer to CreateTSMedia.log File

 
It turns out in this instance that the Operating System image that was attempting to be compiled into a Stand-Alone USB Drive was approximately 10GB's in size. Having done some research on the Internet it appears to be a known issue for OS images greater than 4.75GB's to fail with The Create Task Sequence Media Wizard Completed with Errors -2147212243" Refer to CreateTSMedia.log File.
I opened up the CreateTSMedia.log file using the CMTrace utility, the log can be found at C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\AdminUILog.
From the log file there is a number of error relating to the formatting of the USB Drive. The USB Drive was brand new out of the packet, 32GB in size and was formatted in NTFS. I decided to manually format the USB Drive and try again, same result.
 
It transpires that to work around this issue you must use the Command Prompt to manually create an ISO containing all the SCCM components. The ISO file can be larger than 4.75GB's therefore it does not suffer the same issues as the automated wizard.
The following command can be used at an Administrative Command Prompt to generate an ISO file of an entire Task Sequence's components.
cd C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\i386
 
CreateMedia.exe /K:Full  /P:”sccm_dp_fqdn” /S:”sccm_site_code” /C: /D:”sccm_mgmt_fdqn” /L:”Configuration Manager 2012” /A:”sccm_taskseqID” /Z:”False” /T:”CD” /M:”10240” /F:”C:\New\NewSCCM.iso”
 
Change each of the variables in the command above to match the environment.
sccm_dp_fqdn
Configuration Manager Distribution Point FQDN
sccm_site_code
Site Code for the SCCM Site
sccm_mgmt_fqdn
Configuration Manager Management Point FQDN
sccm_taskseqID
The Task Sequence ID
/M:value
Sets the maximum size of the ISO (mine is 10GB’s)
/F:”File Path”
Output path for the ISO file
 
 
To keep an eye on how the ISO being created the CreateTSMedia.log can be used to monitor the progress. It will end with the statement CreateMedia.exe: Success if the ISO has been created successfully.
 
Now instead of using diskpart you can use the Windows 7 USB/DVD Download Tool to create a bootable USB Drive from the ISO file. It will usually fail at 99% reporting it is unable to copy files, in most cases the USB Drive still works correctly.
 
 

Monday, 14 July 2014

MDT 2013 (ADK): Customizing the CustomSettings.ini file to automate WinPE Deployment Panes

The CustomSettings.ini file is used to automate parts of the WinPE boot phases. When MDT and the ADK are installed, and a Deployment Share is provisioned the CustomSettings.ini file is located at %Drive%\%Deployment Share%\Control. It can be edit by using Notepad or any other simple text editor. The default CustomSettings.ini file is depicted below.

 
When you boot a target device from your MDT Lite Touch DVD, by default you will be prompted by all of the following screens, the statements that are outlined with automate each of these particular panes. You must enter relevant information for your environment. All of these statements can be added in any order under the [Default] section of the CustomSettings.ini file.
MDT Welcome Screen and Network Credentials
Typically this is the first screen you will see when you first boot a device using the MDT media.
 
 
Although this post is mainly to edit the CustomSettings file, the following statements to automate the MDT Welcome Screen and Network Credentials screen must be entered into the Bootstrap.ini file as well as the CustomSettings file, which can also be found at %Drive%\%Deployment Share%\Control. It is recommended to create an Active Directory account just for this as the Bootstrap.ini file is not encrypted.
SkipBDDWelcome=YES
 
UserID=Domain\Administrative Account
 
UserPassword=Corresponding Password
 
These statements will also hide the following screen, therefore automating the need to enter credentials. Use this sparingly in a production environment.
Task Sequences
Typically you will be prompted to choose which Task Sequence you would like to use for this deployment, in a lot of ways it can be good not to automate. Although if you are imaging a large number of devices with the same OS and configuration it can save time.
 
When you create a Task Sequence using the MDT interface you give it a Task Sequence ID. The Task Sequence ID is required here to hard code into the CustomSetting.ini file to instruct the boot DVD to select the correct sequence.
SkipTaskSequence=YES
 
TaskSequenceID=TaskSequenceID
 
Computer Details
 
SkipDeploymentType=YES
 
DeploymentType=NEWCOMPUTER
 
SkipComputerName=YES
 
OSDComputerName=%SerialNumber%
 
JoinDomain=Active Directory Domain Name
 
DomainAdmin=Domain Admin Account
 
DomainAdminDomain=Single Label Active Directory Domain Name
 
DomainAdminPassword= Domain Admin Account Password
 
Move Data and Settings
 
SkipUserData=YES
 
User Data (Restore)
 
SkipUserData=YES
 
Locale and Time
 
SkipLocaleSelection=YES
 
KeyboardLocale=0809:00000809
 
UserLocale=en-GB
 
UILanguage=en-GB
 
SkipTimeZone=YES
 
TimeZoneName=GMT Standard Time
 
Applications
 
If you choose not to have your application installed by the Task Sequence you can also do it with the CustomSettings.ini file, it is done by entering the following statements. You must then enter a statement for each application linked to it's GUID. When any application is imported it is assigned a GUID, if you view the Properties of an application from the Deployment Workbench you will see the GUID. Alternatively you can leave this part unautomated and you can choose which applications are installed as you go.
 
SkipApplications=YES
 
SkipAppsOnUpgrade=YES
 
Application001=Application GUID
 
Ready (Summary Pages)
 
SkipSummary=YES
 
SkipFinalSummary=YES
 
Organisation Name and Project Name
 
 
These statements must be added under the [Default] section of the CustomSettings file.
_SMSTSORGNAME=Ryan Betts Blog
 
_SMSTSPackageName= July 2014
 
 

Tuesday, 8 July 2014

SCCM 2012 R2 "Media Creation Failed with Error Code -2147212243" when creating New Media


I was recently working with a client and SCCM failed with Media Creation Failed with Error Code -2147212243.
when we tried to create a bootable New Media Device using the Configuration Manager Console.
 

 
The CreateTsMedia.log file which is stored at %SCCMInstallDir%:\Program Files\Microsoft Configuration Manager\AdminConsole\AdminUILog\ is the first place to start and as you will see it's pretty self explanatory that the machine is having issues formatting the USB stick. Perhaps in this instance there was an additional layer of complexity as the USB stick was being emulated into a Virtual Machine running on vSphere.

 
We tried changing the USB stick and retrying the task and it completed successfully.