Ask Your Question
1

sysprep on puppet

asked 2013-11-11 11:27:37 -0500

Giovanni gravatar image

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

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,

Giovanni

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

joshc gravatar image

This is a filesystem redirection issue most likely http://docs.puppetlabs.com/windows/running.html#file-system-redirection-in-64-bit-windows-versions . Change that to path => 'c:\windows\sysnative\sysprep'.

edit flag offensive delete link more

Comments

It works!. Thank you.

Giovanni gravatar imageGiovanni ( 2013-11-12 02:07:08 -0500 )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

Stats

Asked: 2013-11-11 11:27:37 -0500

Seen: 767 times

Last updated: Nov 11 '13