CFEXECUTE seems to not execute PowerShell in ColdFusion 11
问题 Here is a sample: <cfset cmd="get-date -format g" /> <cfset args="-inputformat none -Command " & cmd /> <cfoutput> <cfexecute name="powershell.exe" variable="result" errorvariable="err" arguments="#args#" timeout="99" /> <p>Result: <cfif result neq "">#result#<cfelse>None</cfif></p> <p>Error: <cfif err neq "">#err#<cfelse>None</cfif></p> </cfoutput> On Windows 2008 R2 with ColdFusion 10, this will accurately put the PowerShell command's output into the result variable. After upgrading to