Ask Your Question

puppet exec calling batch script cant find pkgmgr.exe

asked 2013-04-23 14:28:16 -0600

buzzkillington66 gravatar image

I am trying to install IIS through puppet using exec. I can't use dism because this is a windows 2008 box. Really simple script. this exec calls a batch script. I get an error saying that "Windows cannot find 'C:\Windows\System32\PkgMgr.exe'. Make sure you typed the name correctly, and then try again. " For some reason it is not recognizing the command pkgmgr

I am runnign this through Puppets Start Command Prompt with Puppet with the following line: puppet apply c:\manifests\iis.pp

Here is iis.pp:

exec {'setup_iis.bat': path => 'c:\manifests', provider => windows, }

Here ... (more)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-23 14:49:59 -0600

Try running C:\windows\sysnative

edit flag offensive delete link more

answered 2013-04-23 14:58:19 -0600

buzzkillington66 gravatar image

I don't have sysnative on this machine. i get 'c:\windows\sysnative' is not recognized as an internal or external command, operapable program or batch file.

edit flag offensive delete link more


scratch that. i didn't realize what sysnative was. after addign that it worked!

buzzkillington66 gravatar imagebuzzkillington66 ( 2013-04-23 15:04:36 -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


Asked: 2013-04-23 14:28:16 -0600

Seen: 978 times

Last updated: Apr 23 '13