Open sebfun opened 3 days ago
Hi @sebfun,
It is not a bug and you're import it incorrectly. You're seeing these errors because the folder does not have the same name as the PSD1. You should rename the folder from M365 to Monkey365. Once the name is changed you will be able to import the module. And all is explained here.
Please, see docs about how to import a PowerShell module. https://silverhack.github.io/monkey365/install-instructions/ https://learn.microsoft.com/en-us/powershell/scripting/developer/module/importing-a-powershell-module?view=powershell-7.3
What happened?
Can't execute import-module command. Receiving error ("unable to find a module file")
How to reproduce it
Steps to reproduce the behavior:
PS C:\WINDOWS\system32> Get-ChildItem -Recurse c:\audit\M365 | Unblock-File
OK no errorTrying to move to the right directory
PS C:\WINDOWS\system32> cd C:\audit\M365
OKRetrying import command with -Force
Import-Module : Le module « C:\audit\M365 » spécifié n'a pas été chargé, car aucun fichier de module valide n'a été trouvé dans un répertoire de module. Au caractère Ligne:1 : 1
Expected behavior
Well, I expect to successfully run the import module command
Screenshots or Logs
Not Applicable
From where are you running Monkey365?
Please, complete the following information:
$PsVersionTable
]:Additional context Nothing else