# some powershell commands not running under puppet?

This is a strange one. We use Powershell and puppet, which has done great work for us. But in one instance we're trying to make some IIS changes and it's not working-- but running the script in the command line does.

We're trying to enable Windows Authentication on our site in a script like so:

param([string] IIS_Site)

$tempfile = "c:\temp\pstemp.txt" Import-Module WebAdministration Try { echo "entering try-catch" >>$tempfile

more