Skip to content

The specified module was not loaded #967

@Gijsreyn

Description

@Gijsreyn

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

When running dsc resource list --adapter Microsoft.Windows/WMI, the module fails to be imported:

Import-Module : The specified module C:\Users\user\AppData\Local\dsc/wmiAdapter.psm1' was not loaded because ...

It looks like the wmiAdapter.psm1 wasn't copied in the published .zip file.

Steps to reproduce

See description

Expected behavior

The module can be imported.

Actual behavior

The module is not found.

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.1
PSEdition                      Core
GitCommitId                    7.5.1
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

dsc 3.2.0-preview.1

Visuals

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions