Found the Problem...
I had a similar problem
9/21/2012 11:28:01 AM EXEPATH=powershell.exe PARAMS=-command "$str = [System.Environment]::GetEnvironmentVariable(\"PSModulePath\", [System.EnvironmentVariableTarget]::Machine); $str = $str+\";c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules\"; c:\Windows\system32\setx.exe /M PSModulePath \"$str\"" LOGFILE=C:\Users\amccool.PCTS\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2012-09-21 11-27-26).log
Error: ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Error: Type "SETX /?" for usage.
My issue was the PSModulePath having an improper " in it
it was:
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules"
removing it corrected the issue
I had a similar problem
9/21/2012 11:28:01 AM EXEPATH=powershell.exe PARAMS=-command "$str = [System.Environment]::GetEnvironmentVariable(\"PSModulePath\", [System.EnvironmentVariableTarget]::Machine); $str = $str+\";c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules\"; c:\Windows\system32\setx.exe /M PSModulePath \"$str\"" LOGFILE=C:\Users\amccool.PCTS\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2012-09-21 11-27-26).log
Error: ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Error: Type "SETX /?" for usage.
My issue was the PSModulePath having an improper " in it
it was:
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules"
removing it corrected the issue