Skip to content

Invoke-DSCResource not loaded in Powershell 7 rc2 #11819

@bateskevin

Description

@bateskevin

Steps to reproduce

Invoke-DSCResource seems not to be loaded when opening Powershell 7 rc2. If you type it in for the first time it will autocomplete, but fail. Then the second time it will not autocomplete any longer.

Invoke-DSCResource -?

Expected behavior

Show Help

NAME
    Invoke-DscResource

SYNTAX
    Invoke-DscResource [-Name] <string> [[-ModuleName] <ModuleSpecification>] [-Method] {Get | Set | Test} [-Property]
    <hashtable> [<CommonParameters>]


ALIASES
    None


REMARKS
    Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
        -- To download and install Help files for the module that includes this cmdlet, use Update-Help.

Actual behavior

The CmdLet is does not get recognized.

Invoke-DscResource: The term 'Invoke-DscResource' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Environment

Name                           Value
----                           -----
PSVersion                      7.0.0-rc.2
PSEdition                      Core
GitCommitId                    7.0.0-rc.2
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a

    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