Skip to content

Invoke-PSDocument help example 1 fails #270

@shivtorov

Description

@shivtorov

Description of the issue

Documentation bug.
Tried to execute Example 1 from https://github.com/microsoft/PSDocs/blob/main/docs/commands/PSDocs/en-US/Invoke-PSDocument.md

To Reproduce

Steps to reproduce the issue:

see screenshot

Expected behaviour

No errors reported.

Error output

image

Module in use and version:

  • Module: PSDocs
  • Version: 0.9.0

Captured output from $PSVersionTable:

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.0, 7.1.0, 7.2.0, 7.3.6}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional context

Module loaded as follows:

Save-Module PSDocs -Path D:\Temp\
Import-Module -Name D:\Temp\psdocs\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions