Skip to content

Conversation

@1RedOne
Copy link
Contributor

@1RedOne 1RedOne commented Oct 2, 2018

Updating this documentation, per this issue in Github. MicrosoftDocs/PowerShell-Docs#2938

The overload for powerShell.Create() are either RunSpaceMode, or InitialSessionState. In order to accept a command, one must use the .AddScript method.

PR Summary

Took some digging to find this, but it looks like Docs.Microsoft.Com scrapes files like these to generate the code samples.

The intention is that this change:

PR Checklist

Updating this documentation, per this issue in Github.  MicrosoftDocs/PowerShell-Docs#2938 

The overload for powerShell.Create() are either RunSpaceMode, or InitialSessionState.  In order to accept a command, one must use the .AddScript method.
@iSazonov iSazonov requested a review from SteveL-MSFT October 3, 2018 11:56
@iSazonov iSazonov self-assigned this Oct 3, 2018
Copy link
Member

@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find! Thanks!

@iSazonov iSazonov merged commit 0789fb1 into PowerShell:master Oct 3, 2018
adityapatwardhan pushed a commit to adityapatwardhan/PowerShell that referenced this pull request Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants