Skip to content

Cannot load Microsoft.PowerShell.LocalAccounts module on linux #1329

Closed

Description

Steps to reproduce

gcm *group
set-localgroup

Expected behavior

set-localgroup should work, or tell you it's not applicable to this platform

Actual behavior

Set-LocalGroup : The 'Set-LocalGroup' command was found in the module 'Microsoft.PowerShell.LocalAccounts', but the module
could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.LocalAccounts'.
At line:1 char:1
+ Set-LocalGroup
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Set-LocalGroup:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

PS > Import-Module Microsoft.PowerShell.LocalAccounts                                                       
Import-Module : The module to process 'Microsoft.Powershell.LocalAccounts', listed in field 'ModuleToProcess/RootModule'
of module manifest
'/opt/microsoft/powershell/Modules/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.psd1' was not
processed because no valid module was found in any module directory.
At line:1 char:1
+ Import-Module Microsoft.PowerShell.LocalAccounts
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (Microsoft.PowerShell.LocalAccounts:String) [Import-Module], PSInvalidO
   perationException
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.10032.0
PSEdition                      Linux
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   3.0.0.0
GitCommitId                    v0.6.0
CLRVersion
WSManStackVersion              1.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Activity

  1. added
    WG-Maintainers-Build
    WG-Cmdlets
    on Jul 9, 2016
  2. HemantMahawar commented on Jul 14, 2016

    @HemantMahawar
    Contributor

    For initial release, we should remove the localaccount modules from Linux/OS-X builds. And make them work later

  3. changed the title [-]*-LocalGroup show up on linux but fail[/-] [+]Cannot load Microsoft.PowerShell.LocalAccounts module on linux[/+] on Jul 14, 2016
  4. HemantMahawar commented on Jul 14, 2016

    @HemantMahawar
    Contributor

    Add another item to make it work post initial release

  5. vors commented on Jul 28, 2016

    @vors
    Collaborator

    Fixed per #1477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-LinuxResolution-FixedWG-CmdletsWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions