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+unsubscr...@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.

Reply via email to