Skip to content

Enable .Net 3.5 Framework with dism in TS

Featured Replies

I'm trying to enable .Net 3.5 Framework during OSD and it fails every time.  If I run the exact same command once the imaging TS has completed it works just fine.  SMSTS.log shows it failed with error code 80004005 which is not very helpful.  I have it running as one of the very last steps.  Here is the command I'm using: dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:"\\bvfyfs01\install$\sccm packages\netframework\sxs".  I have the "Start in:" set to c:\windows\system32.  Any idea what I'm missing here?

 

Failed to run the action: Enable .Net Framework 3.5. 
Unspecified error (Error: 80004005; Source: Windows)    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Set authenticator in transport    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Set a global environment variable _SMSTSLastActionRetCode=-2147467259    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Set a global environment variable _SMSTSLastActionSucceeded=false    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Clear local default environment    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Let the parent group (Other Applications) decides whether to continue execution    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Let the parent group (Install Applications) decide whether to continue execution    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
The execution of the group (Install Applications) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Failed to run the last action: Enable .Net Framework 3.5. Execution of task sequence failed.
Unspecified error (Error: 80004005; Source: Windows)    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Set authenticator in transport    TSManager    4/27/2018 3:31:23 PM    2904 (0x0B58)
Task Sequence Engine failed! Code: enExecutionFail    TSManager    4/27/2018 3:46:23 PM    2904 (0x0B58)
****************************************************************************    TSManager    4/27/2018 3:46:23 PM    2904 (0x0B58)
Task sequence execution failed with error code 80004005    TSManager    4/27/2018 3:46:23 PM    2904 (0x0B58)
Cleaning Up.    TSManager    4/27/2018 3:46:23 PM    2904 (0x0B58)
Removing Authenticator    TSManager    4/27/2018 3:46:23 PM    2904 (0x0B58)
Cleaning up task sequence folder    TSManager    4/27/2018 3:46:23 PM    2904 (0x0B58)
Unable to delete file C:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing.    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
Failed to delete directory 'C:\_SMSTaskSequence'    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
SetNamedSecurityInfo() failed.    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
SetObjectOwner() failed. 0x80070005.    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005.    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
Deleting volume ID file C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ...    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
Successfully unregistered Task Sequencing Environment COM Interface.    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
Executing command line: "C:\WINDOWS\CCM\TsProgressUI.exe" /Unregister    TSManager    4/27/2018 3:46:25 PM    2904 (0x0B58)
 

Capture.PNG

I made a application I use during TS to install it. Command I use is ""%SystemRoot%\System32\Dism.exe" /Online /LogLevel:4 /Add-Package /PackagePath:"microsoft-windows-netfx3-ondemand-package.cab" /NoRestart /Quiet" for Win10 1703.

Make sure the source of the CAB file matches the OS you're deploying.

Hope this helps.

  • Author

For some reason, all I had to do was take out the "Run this step as the following account" and it's all imaging correctly now.

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.