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+unsubscribe@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.
Rahul Khengare
2013-Sep-24 10:23 UTC
[Puppet Users] Re: Puppet exec error on windows 2008 server
Hi Harsh, Refer *exec* and *shell builtins* sections present in the http://docs.puppetlabs.com/windows/troubleshooting.html, This might help troubleshooting your problem. Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Tuesday, September 24, 2013 2:20:38 PM UTC+5:30, 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+unsubscribe@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.
Josh Cooper
2013-Sep-24 13:59 UTC
Re: [Puppet Users] Puppet exec error on windows 2008 server
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+unsubscribe@googlegroups.com <javascript:_e({}, > ''cvml'', ''puppet-users%2Bunsubscribe@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+unsubscribe@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.
Ringo De Smet
2013-Oct-29 14:36 UTC
Re: [Puppet Users] Puppet exec error on windows 2008 server
On Tuesday, 24 September 2013 15:59:15 UTC+2, Josh Cooper wrote:> > > > 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 >> >> > > 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'' > >Yes, changing the path to c:\windows\sysnative resolved the same problem for me. Ringo -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8af8bbdc-9982-4892-b06d-01d87df39a93%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.