Skip to content

Instantly share code, notes, and snippets.

@raycrawford
Created October 20, 2015 20:02
Show Gist options
  • Save raycrawford/3184323a17029aaaa52c to your computer and use it in GitHub Desktop.
Save raycrawford/3184323a17029aaaa52c to your computer and use it in GitHub Desktop.
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
@raycrawford
Copy link
Author

---- 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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment