Thanks for your reply.
However, I was not looking for a way to log the possible errors… I was hoping there is a PSADT “native” way of enabling Windows Features.
I know the .ps1 script works great when I run it from an Admin powershell command box…
So I’m looking for either another way of running an external .ps1 file from the “Files” folder (or subfolder), or for another way of enabling Windows features with command lines from the PSADT script directly.
I found another command I’m going to try:
Execute-Process -Path ‘powershell.exe’ -Parameters ‘-ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File “$dirFiles\Support\EnableIIS.ps1”’ -wait
Or could this command line result in problems as well?