Ask Your Question

sysprep on puppet

asked 2013-11-11 11:27:37 -0600

Giovanni gravatar image

updated 2013-11-11 21:32:53 -0600

spuder gravatar image

Hi all, i have create a manifest to execute a sysprep command on windows:

   exec { 'sysprep_install':
        command => 'sysprep /audit /quiet /generalize /unattend:c:\prova\scheduler\unattend.xml',
        path => 'c:\windows\System32\sysprep',
        require => File[..somefirst']

I execute the agent, but when it have to call the command, it says the following error:

could not find command 'sys prep'

/Stage[main]/Prepare/Exec[sysprep_install]/returns: change from notrun to 0 failed: Could not find command 'sysprep'

where i'm wrong?

Thx to all,


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-11 13:02:51 -0600

joshc gravatar image

This is a filesystem redirection issue most likely . Change that to path => 'c:\windows\sysnative\sysprep'.

edit flag offensive delete link more


It works!. Thank you.

Giovanni gravatar imageGiovanni ( 2013-11-12 02:07:08 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-11-11 11:27:37 -0600

Seen: 850 times

Last updated: Nov 11 '13