Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Powershell 7 is unable to use Virtualmachinemanager module #21

@Immakon

Description

@Immakon

Steps to reproduce

Get-SCVirtualMachine
Get-SCVirtualMachine: The type initializer for 'Microsoft.VirtualManager.Utils.TraceProviders.ImageLibrary' threw an exception.

Expected behavior

Output of SCVMM virtual machines.

Actual behavior

Get-SCVirtualMachine
Get-SCVirtualMachine: The type initializer for 'Microsoft.VirtualManager.Utils.TraceProviders.ImageLibrary' threw an exception.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Running this cmdlet in PS5.1 does work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions