Powershell Core at Linux

Meena S 6 Reputation points
2020-08-25T15:08:13.93+00:00

Unable to load modules in powershell core 7.0.3 at Linux Centos 7

Import-Module: Could not load type 'System.Management.Automation.PSSnapIn' from assembly 'System.Management.Automation, Version=7.0.3.0,......

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,522 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Leon Laude 85,786 Reputation points
    2020-08-26T07:43:20.217+00:00

    Hi,

    If you're trying to install PowerShell Core on Linux (CentOS 7) you can refer to the following documentations:

    https://video2.skills-academy.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7#centos-7

    https://github.com/powershell/powershell

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon


  2. Prashant Thomas 1 Reputation point
    2020-11-09T03:22:30.1+00:00

    I'm assuming you have already installed PowerShell but have difficulty importing a module.
    Have you checked out these examples
    https://video2.skills-academy.com/en-us/powershell/module/microsoft.powershell.core/import-module?view=powershell-7#examples

    Can you please post your error messages (in its entirety)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.