(imported topic written by Senthilnathan Manoharan)
Hello Friends
I am back with yet another question.
I’ve created a fixlet to remediate IIS website configuration.
The ACTION part of the fixlet is giving problems.
I am able to create the powershell file using “createfile” but the file is not getting executed
I am able to execute the same file locally from command prompt on the client but problem is while executing it from fixlet.
Is there any permission problem that I am overlooking ?
Steps I’ve taken
- Tested the action block using debugger with same result
- I am able to execute a different powershell script NOT CREATED IN ACTION BLOCK. (I pushed a test PS file using fixlet and executed the same which is working)
- I am able to execute the script locally in client
Your suggestions are much appreciated.
Script Block
parameter “healthCheckFolder” = “{parent folder of windows folder }\Middleware”
parameter “PowerShellexe” = “{ pathname of system folder }\windowspowershell\v1.0\powershell.exe”
waithidden “{parameter “PowerShellexe”}” -file “{parameter “healthCheckFolder”}\physicalPathRemediation.ps1”
//PowerShell Script Execution
Thanks
Senthil Nathan M