Created
October 20, 2015 20:02
-
-
Save raycrawford/3184323a17029aaaa52c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log "###=> Installing IIS on #{node['platform']}" do | |
level :info | |
end | |
%w( Web-Server Web-Mgmt-Tools ).each do |feature| | |
windows_feature feature do | |
action :install | |
end | |
end | |
log '###=> Not sure what to do next...' do | |
level :info | |
end | |
# depends 'windows' is in the metadata.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
---- Begin output of C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:Web-Server /norestart ----
STDOUT: Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Image Version: 6.3.9600.17031
Error: 0x800f080c
Feature name Web-Server is unknown.
A Windows feature name was not recognized.
Use the /Get-Features option to find the name of the feature in the image and try the command again.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
STDERR:
---- End output of C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:Web-Server /norestart ----
Ran C:\Windows\sysnative\dism.exe /online /enable-feature /featurename:Web-Server /norestart returned -2146498548
PS C:\Users\crawford>