On Tuesday, September 24, 2013, Harsh Desai wrote: > Hi > > I am stuck at a very basic issue in my the following exec resource. I am > executing this on windows 2008 R2 server. > > When I apply this manifest, puppet always complains saying dcpromo.exe is > not an internal or external command. I exactly appended the path of > dcpromo.exe to the 'path' variable, but still it can't find it. I even > tried the "cmd /c" trick in the command with no luck. > > > exec { 'install_dc': > command => "dcpromo.exe /unattend:dc_unattend.txt", > path => "C:\\;C:\\Windows\System32\\;${path}", > timeout => 2400, > } > > Help would be appreciated. > > Thanks > Harsh > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com <javascript:_e({}, > 'cvml', 'puppet-users%2bunsubscr...@googlegroups.com');>. > To post to this group, send email to > puppet-users@googlegroups.com<javascript:_e({}, 'cvml', > 'puppet-users@googlegroups.com');> > . > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. >
This is likely a file system redirection issue (assuming you're on x64). If so, try specifying the command as 'c:\windows\sysnative\dcpromo.exe' Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.