When you create Task Sequence media in Configuration Manager, the environment variable TMP is used to locate temporary storage for the creation process.
By default this points to the users temp folder, which is usually on C: drive with limited space.
While this is normally not a problem for creating an online boot media, creating offline media with many driver packages, software packages etc. you are bound to run into trouble.
It is not only the Create TS Media wizard that uses this location, is also used when a WIM file needs to be mounted, so every time you create an new boot media or inject drivers/updates etc. into an image this temporary storage is used. In SCCM 2012 R2, the new Virtual Hard Disk feature will also uses this temporary storage location.
When using the Create Task media Wizard, you receive an error stating that there is not enough disk space.
When you investigate the CreateTsMedia.log (Located in the <ConfigMgr install path>\\AdminConsole\AdminUILog folder> you will notice that the temporary storage is the temp folder in the users profile.
Well the solution is simple, we must change the location of temp storage to a drive with enough space available.
Start the “System” control panel from Control panel –> System and Security –-> System –> Advanced System Settings. Click Environment Variables…
Edit the TMP variable in the user profile to a folder on a drive with plenty of space, make sure the folder already exist.
Restart the Configuration Manager console, and the new temporary location will be used.