Skip to content

SDK docs: incorrect PowerShell.Create() example #2938

Description

Powershell.Create("get-process").Invoke();

should be

Powershell.Create().AddScript("get-process").Invoke();

at https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.powershell?view=powershellsdk-1.1.0

As an aside: Clicking Edit on the linked page results in a 404, pointing to nonexistent path underneath https://github.com/MicrosoftDocs/powershell-docs-sdk-dotnet - perhaps these links can be disabled while the SDK doc sources aren't yet maintained on GitHub.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions