You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot load Microsoft.PowerShell.LocalAccounts module on linux #1329
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
HemantMahawar commentedon Jul 14, 2016
For initial release, we should remove the localaccount modules from Linux/OS-X builds. And make them work later
[-]*-LocalGroup show up on linux but fail[/-][+]Cannot load Microsoft.PowerShell.LocalAccounts module on linux[/+]HemantMahawar commentedon Jul 14, 2016
Add another item to make it work post initial release
vors commentedon Jul 28, 2016
Fixed per #1477