Facebook
From pappkarcsi, 3 Years ago, written in PowerShell.
Embed
Download Paste or View Raw
Hits: 34
  1. PS C:\windows\system32> Dism /online /enable-feature /featurename:NetFX3 /All /Source:F:\ISO\2004\sources\sxs /LimitAccess
  2.  
  3. Deployment Image Servicing and Management tool
  4. Version: 10.0.19041.844
  5.  
  6. Image Version: 10.0.19042.867
  7.  
  8. Enabling feature(s)
  9. [==========================100.0%==========================]
  10.  
  11. Error: 0x800f081f
  12.  
  13. The source files could not be found.
  14. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.
  15.  
  16. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  17.  
  18.  
  19. PS C:\windows\system32> Dism /online /enable-feature /featurename:NetFX3 /All /Source:h:\sources\sxs /LimitAccess
  20. Deployment Image Servicing and Management tool
  21. Version: 10.0.19041.844
  22.  
  23. Image Version: 10.0.19042.867
  24.  
  25. Enabling feature(s)
  26. [==========================100.0%==========================]
  27.  
  28. Error: 0x800f081f
  29.  
  30. The source files could not be found.
  31. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.
  32.  
  33. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  34.  
  35.  
  36. PS C:\Users\molnar_tamas\Downloads> dism /online /add-package /packagepath:"Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~hu-HU~.cab"
  37.  
  38. Deployment Image Servicing and Management tool
  39. Version: 10.0.19041.844
  40.  
  41. Image Version: 10.0.19042.867
  42.  
  43. Processing 1 of 1 - Adding package Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~hu-HU~10.0.18362.1
  44. [==========================100.0%==========================]
  45. The operation completed successfully.
  46.  
  47. PS C:\Users\molnar_tamas\Downloads> dism /online /add-package /packagepath:"Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~.cab"                                                                                                                                                                                                                      Deployment Image Servicing and Management tool                                                                          Version: 10.0.19041.844                                                                                                                                                                                                                         Image Version: 10.0.19042.867                                                                                                                                                                                                                   An error occurred trying to open - Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~.cab Error: 0x80070002
  48. An error occurred trying to open - C:\Users\molnar_tamas\Downloads\Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~.cab Error: 0x80070002
  49.  
  50. Error: 2
  51.  
  52. An error occurred trying to open - C:\Users\molnar_tamas\Downloads\Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~.cab Error: 0x80070002
  53.  
  54. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  55. PS C:\Users\molnar_tamas\Downloads> dism /online /add-package /packagepath:"Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~.cab"
  56.  
  57. Deployment Image Servicing and Management tool
  58. Version: 10.0.19041.844
  59.  
  60. Image Version: 10.0.19042.867
  61.  
  62. Processing 1 of 1 - An error occurred - Microsoft-Windows-NetFx3-OnDemand-Package Error: 0x800f0818
  63.  
  64. Error: 0x800f0818
  65.  
  66. DISM failed. No operation was performed.
  67. For more information, review the log file.
  68.  
  69. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  70. PS C:\Users\molnar_tamas\Downloads>  C:\windows\Logs\DISM\dism.log
  71. PS C:\Users\molnar_tamas\Downloads> Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name version -EA 0 | Where { $_.PSChildName -Match '^(?!S)\p{L}'} | Select PSChildName, version
  72.  
  73. PSChildName Version
  74. ----------- -------
  75. Client      4.8.04084
  76. Full        4.8.04084
  77. Client      4.0.0.0
  78.  
  79.  
  80. PS C:\Users\molnar_tamas\Downloads> Add-WindowsPackage -Online -PackagePath "microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab"
  81. WARNING: Failed to add package microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab
  82. WARNING: Add-WindowsPackage failed. Error code = 0x800f0818
  83. Add-WindowsPackage : Add-WindowsPackage failed. Error code = 0x800f0818
  84. At line:1 char:1
  85. + Add-WindowsPackage -Online -PackagePath "microsoft-windows-netfx3-ond ...
  86. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  87.    + CategoryInfo          : NotSpecified: (:) [Add-WindowsPackage], COMException
  88.    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsPackageCommand
  89.  
  90. PS C:\Users\molnar_tamas\Downloads> Dism.exe /online /enable-feature /featurename:NetFX3 /source:C:\Users\molnar_tamas\Downloads /limitaccess
  91.  
  92. Deployment Image Servicing and Management tool
  93. Version: 10.0.19041.844
  94.  
  95. Image Version: 10.0.19042.867
  96.  
  97. Enabling feature(s)
  98. [==========================100.0%==========================]
  99.  
  100. Error: 0x800f081f
  101.  
  102. The source files could not be found.
  103. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.
  104.  
  105. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  106. PS C:\Users\molnar_tamas\Downloads> Copy-Item "C:\Users\molnar_tamas\Downloads\microsoft-windows-netfx3-ondemand-package.cab" -Destination "c:\"
  107. PS C:\Users\molnar_tamas\Downloads> Dism.exe /online /enable-feature /featurename:NetFX3 /source:C:\ /LimitAccess
  108.  
  109. Deployment Image Servicing and Management tool
  110. Version: 10.0.19041.844
  111.  
  112. Image Version: 10.0.19042.867
  113.  
  114. Enabling feature(s)
  115. [==========================100.0%==========================]
  116.  
  117. Error: 0x800f081f
  118.  
  119. The source files could not be found.
  120. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.
  121.  
  122. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  123. PS C:\Users\molnar_tamas\Downloads> Dism.exe /online /enable-feature /featurename:NetFX3 /source:h:\sources\sxs /LimitAccess
  124.  
  125. Deployment Image Servicing and Management tool
  126. Version: 10.0.19041.844
  127.  
  128. Image Version: 10.0.19042.867
  129.  
  130. Enabling feature(s)
  131. [==========================100.0%==========================]
  132.  
  133. Error: 0x800f081f
  134.  
  135. The source files could not be found.
  136. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.
  137.  
  138. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  139. PS C:\Users\molnar_tamas\Downloads> Dism.exe /online /enable-feature /featurename:NetFX3.5 /source:h:\sources\sxs /LimitAccess
  140.  
  141. Deployment Image Servicing and Management tool
  142. Version: 10.0.19041.844
  143.  
  144. Image Version: 10.0.19042.867
  145.  
  146.  
  147. Error: 0x800f080c
  148.  
  149. Feature name NetFX3.5 is unknown.
  150. A Windows feature name was not recognized.
  151. Use the /Get-Features option to find the name of the feature in the image and try the command again.
  152.  
  153. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  154. PS C:\Users\molnar_tamas\Downloads> cd c:
  155. PS C:\Users\molnar_tamas\Downloads> cd .
  156. PS C:\Users\molnar_tamas\Downloads> cd c:\
  157. PS C:\> DISM /Online /Enable-Feature /FeatureName:NetFX3 /All /LimitAccess /Source:%~dp0
  158.  
  159. Deployment Image Servicing and Management tool
  160. Version: 10.0.19041.844
  161.  
  162. Image Version: 10.0.19042.867
  163.  
  164. Enabling feature(s)
  165. [==========================100.0%==========================]
  166.  
  167. Error: 0x800f081f
  168.  
  169. The source files could not be found.
  170. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.
  171.  
  172. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  173. PS C:\> cd C:\Users\molnar_tamas\Downloads
  174. PS C:\Users\molnar_tamas\Downloads> Copy-Item "C:\Users\molnar_tamas\Downloads\netfx3.cab" -Destination "c:\windows"
  175. PS C:\Users\molnar_tamas\Downloads> dism /online /Enable-Feature /FeatureName:NetFx3 /Source:"%windir%" /LimitAccess
  176.  
  177. Deployment Image Servicing and Management tool
  178. Version: 10.0.19041.844
  179.  
  180. Image Version: 10.0.19042.867
  181.  
  182. Enabling feature(s)
  183. [==========================100.0%==========================]
  184.  
  185. Error: 0x800f081f
  186.  
  187. The source files could not be found.
  188. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.
  189.  
  190. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
  191. PS C:\Users\molnar_tamas\Downloads> Install-WindowsFeature -name NET-Framework-Core -source D:\sources\sxs
  192. Install-WindowsFeature : The term 'Install-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name
  193. , or if a path was included, verify that the path is correct and try again.
  194. At line:1 char:1
  195. + Install-WindowsFeature –name NET-Framework-Core –source D:\sources\sx ...
  196. + ~~~~~~~~~~~~~~~~~~~~~~
  197.    + CategoryInfo          : ObjectNotFound: (Install-WindowsFeature:String) [], CommandNotFoundException
  198.    + FullyQualifiedErrorId : CommandNotFoundException
  199.  
  200. PS C:\Users\molnar_tamas\Downloads> Install-WindowsFeature -name NET-Framework-Core -source h:\sources\sxs
  201. Install-WindowsFeature : The term 'Install-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name
  202. , or if a path was included, verify that the path is correct and try again.
  203. At line:1 char:1
  204. + Install-WindowsFeature –name NET-Framework-Core –source h:\sources\sx ...
  205. + ~~~~~~~~~~~~~~~~~~~~~~
  206.    + CategoryInfo          : ObjectNotFound: (Install-WindowsFeature:String) [], CommandNotFoundException
  207.    + FullyQualifiedErrorId : CommandNotFoundException
  208.  
  209. PS C:\Users\molnar_tamas\Downloads> DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
  210.  
  211. Deployment Image Servicing and Management tool
  212. Version: 10.0.19041.844
  213.  
  214. Image Version: 10.0.19042.867
  215.  
  216. Enabling feature(s)
  217. [==========================100.0%==========================]
  218.  
  219. Error: 0x800f0954
  220.  
  221. DISM failed. No operation was performed.
  222. For more information, review the log file.
  223.  
  224. The DISM log file can be found at C:\windows\Logs\DISM\dism.log
captcha