Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-2917

DISM fails on windows when source parameter specified

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • DISM
    • Windows 2012 and Windows 2012R2

    • Hide

      We can install a Windows feature from a source, using a pathname that may or may not have spaces in it.

      During testing, the following might be helpful:

      1. Disable internet connection to ensure DISM doesn't download source features from Windows Update and ignore the specified source/ skip it if the specified source can't be found.

      2. Uninstall-WindowsFeature -Name <feature> -remove to uninstall the feature and "reset" the test

      Show
      We can install a Windows feature from a source, using a pathname that may or may not have spaces in it. During testing, the following might be helpful: 1. Disable internet connection to ensure DISM doesn't download source features from Windows Update and ignore the specified source/ skip it if the specified source can't be found. 2. Uninstall-WindowsFeature -Name <feature> -remove to uninstall the feature and "reset" the test
    • 3
    • Windows 2016-06-01, Windows 2016-06-15
    • Bug Fix
    • Hide
      The Source parameter was being set incorrectly. This now works
      Also updated the module with current gem file
      Show
      The Source parameter was being set incorrectly. This now works Also updated the module with current gem file

    Description

      When dism type is used with parameter source, the ruby code is adding a single quote to the path in the output causing the command to fail on windows 2012 virtual environment.
      e.g.
      dism

      { 'NetFx3': ensure => present, all => true, source => 'Z:\2012r2\sxs' }

      dism.exe /online ................. Source='z:\2012r2\sxs'

      windows accepts double quotes or no quotes but will not like single quotes. Please fix.

      Attachments

        Issue Links

          Activity

            People

              ethan Ethan Brown
              mogasati Satish
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support