Merge TFS 2064268: ConstrainedLanguage PowerShell should not block nested cmdlet invocation via runspace#2159
Conversation
…et invocation via runspace
|
Hi @PaulHigin, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
|
The AppVeyor CI failed and it seems related to your changes in SessionState.cs. Can you please fix it? |
Fixed ExecutionContext property name error.
|
Fixed ExecutionContext name error. Thanks. |
|
LGTM. Waiting for the CI failure to be resolved. |
|
Hi @PaulHigin, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
Runspace creation in trusted script running under ConstrainedLanugage mode was failing with an unneeded security check. The security check occurred during the creation of the Question built-in variable and is unneeded because it is being created/set in a trusted context.
Fix is to create the built-in question variable at the same location and in the same way that other built-in variables are created.