voxpupuli / puppet-windowsfeature

Library that uses ServerAdministration api that comes with Windows Server 2008 and Windows Server 2012 to add / remove windows features
https://forge.puppet.com/puppet/windowsfeature
MIT License
30 stars 50 forks source link

'ps' is not recognized as an internal or external command #32

Closed avisheksarkar20 closed 9 years ago

avisheksarkar20 commented 9 years ago

I have installed windows feature and used in my own class to configure IIS. So here is the error im getting in Windows agent box.

'ps' is not recognized as an internal or external command, operable program or batch file. Using Facter::Util::Resolution.exec with a shell built-in is deprecated. Most built-ins can be replaced with native ruby commands. If you really have to run a built-in, pass "cmd /c your_builtin" as a command (command responsible for this message was "ps -ef | awk '{ gsub("/", " ") ; print $14 }' | awk '/-D/{print $1}'| awk '{ gsub("-D", " ") ; print $0 }'") 'ps' is not recognized as an internal or external command,.

rror: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppe ::Parser::AST::Resource failed with error ArgumentError: Invalid resource type indowsfeature at /etc/puppetlabs/puppet/modules/taas_config/manifests/init.pp:5 on node warning: Not using cache on failed catalog

Here is the class I have written

class taas_config {

windowsfeature {'IIS': feature_name => [ 'Web_Server', 'Web-WebServer', 'Web-Asp-Net45', 'Web-ISAPI-Ext', 'Web-ISAPI-Filter', 'NET-Framework-45-ASPNET', 'WAS-NET-Environment', 'Web-Http-Redirect', 'Web-Filtering', 'Web-Mgmt-Console', 'Web-Mgmt-Tools' ] } }