Issue #12980 has been updated by Luis Mayorga.

Hi,

I am using the Windows Enterprise Version for testing on Windows 2008 R2. My 
findings so far.

1. It works by using the following command:

`exec{'dism':
  command => 'c:\windows\sysnative\dism.exe /online /enable-feature 
/featurename:IIS-WebServerRole /featurename:IIS-WebServerManagementTools 
/featurename:IIS-ManagementConsole',
  logoutput=> true
 }
`
2. It doesn't work when using the path attribute:

`exec{'dism':
  path => 'c:\windows\sysnative',
  command => 'dism.exe /online /enable-feature /featurename:IIS-WebServerRole 
/featurename:IIS-WebServerManagementTools /featurename:IIS-ManagementConsole',
  logoutput=> true
 }
`

----------------------------------------
Bug #12980: Puppet::Util.execute on Windows should search 64-bit path first
https://projects.puppetlabs.com/issues/12980#change-82321

Author: Nan Liu
Status: Accepted
Priority: Normal
Assignee: Josh Cooper
Category: windows
Target version: 
Affected Puppet version: 2.7.6
Keywords: windows, 32bit, 64bit, redirection, syswow64
Branch: 


Because ruby is a 32bit process, it searches 32bit path first, which 
unfortunately is typically the wrong binary on 64bit servers:

    "You cannot service a running 64-bit operating system with a 32-bit version 
of DISM.
    Please use the version of DISM that corresponds to your computer's 
architecture."


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to