mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
f2d64938b7
* windows_feature resource: Add DISM support This modifies the `windows_feature` resource to fallback to DISM when the `Get-WindowsFeature` command is not available. * Allow specifying `:dism` or `:powershell` * Replace stacktrace with smaller error message * Add notes/todo about raise behavior * Remove duplicated platform check Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
7 lines
495 B
Text
7 lines
495 B
Text
The term 'Get-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
|
|
At line:1 char:1
|
|
+ Get-WindowsFeature | Where-Object {$_.Name -eq 'IIS-Webserver' -or $_ ...
|
|
+ ~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : ObjectNotFound: (Get-WindowsFeature:String) [], CommandNotFoundException
|
|
+ FullyQualifiedErrorId : CommandNotFoundException
|
|
|