Importing a module throw error

Welcome Forums General PowerShell Q&A Importing a module throw error

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
1 year ago.

  • Author
    Posts
  • #83179

    Participant
    Points: 0
    Rank: Member

    Alert me
    |
    Edit
    |
    Delete
    |
    Change type
    Question
    You cannot vote on your own post
    0
    I want to use archiving cmdlet. when I try to import a module, it throws error.

    Import-Module -Name Microsoft.Powershell.Archive
    Import-Module : The specified module 'Microsoft.Powershell.Archive' was not loaded because no valid module file was found in any module directory.
    At line:1 char:1
    + Import-Module -Name Microsoft.Powershell.Archive
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (Microsoft.Powershell.Archive:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

    thanks

    Jason

  • #83180

    Participant
    Points: 155
    Helping Hand
    Rank: Participant

The topic ‘Importing a module throw error’ is closed to new replies.