Module dll error

Apr 3, 2015 at 12:25 PM
Hi,
copied file as suggested but direct commands are not working
PS D:\Users\xxx> Get-LocalGroup
Get-LocalGroup : The term 'Get-LocalGroup' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
  • Get-LocalGroup
  • ~~~~~~~~~~~~~~
    • CategoryInfo : ObjectNotFound: (Get-LocalGroup:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
If I try to import the module I receive
PS D:\Users\xxx> Import-Module LocalAccounts
Import-Module : The module to process 'LocalAccounts.dll', listed in field 'ModuleToProcess/RootModule' of module
manifest 'D:\Users\xxx\Documents\WindowsPowerShell\Modules\LocalAccounts\LocalAccounts.psd1' was not
processed because no valid module was found in any module directory.
At line:1 char:1
  • Import-Module LocalAccounts
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : ResourceUnavailable: (LocalAccounts:String) [Import-Module], PSInvalidOperationException
    • FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
What am I missing ?!?

Regards.

Red