Hi, colleagues! Can I repeatedly use a one file resource in Windows in follow case? 1. Check file resource with md5 from source disk. 2. If it changed -> stop application -> replace .exe on destination -> start application. 3. If not -> noop. 'Define' with 'realize' don't help me - duplicate resource. For Windows 7 I had successfully used validate_cmd, but in Windows XP stdlib with validate_cmd is not supported. Resource in Windows 7: file { $app1exe: source => "${app1source}\\${appname}.exe", ensure => present, require => Exec['map_source'], checksum => md5, source_permissions => ignore, validate_cmd => "${cmd} /c start taskkill /f /im ${appname}.exe", notify => Acl[$app1path], } How to redeclare file resource to use it in Windows XP? -- Thanks, Evgeniy Troitskiy -- 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/CAEhtUhb%3DFbO4_ULfk9%3DLzfTfOg8jomUoth%2BSDJ6uVOueS%2BzR3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.