ThomasKur / IntuneDocumentation

Automatic Intune Documentation to simplify the life of admins and consultants.
GNU General Public License v3.0
339 stars 87 forks source link

IntuneDocumentation - module could not beloaded #28

Closed JoPi2108 closed 4 years ago

JoPi2108 commented 4 years ago

Hi, we tried to install the Automatic Intune Documentation script with these commands: Install-Module Microsoft.Graph.Intune Install-Module PSWord Install-Module IntuneDocumentation Invoke-IntuneDocumentation -FullDocumentationPath c:\temp\IntuneDoc.docx => Invoke-IntuneDocumentation : The 'Invoke-IntuneDocumentation' command was found in the module 'IntuneDocumentation' but the module could not be loaded. CategoryInfo : ObjectNotFoud (IntuneDocumentation: string) [], CommandNotFoundException FullyQualifiedErrorId: CouldNotAutoloadMatchingModule

Problem

I hope you can help? Br / John

timfoote commented 4 years ago

Hi John,

You need to import the modules before using them. But I think only the main one is required, so try this before running the Invoke-IntuneDocumentation command:

Import-Module IntuneDocumentation

Cheers

On Thu, May 7, 2020 at 9:20 PM JoPi2108 notifications@github.com wrote:

Hi, we tried to install the Automatic Intune Documentation script with these commands: Install-Module Microsoft.Graph.Intune Install-Module PSWord Install-Module IntuneDocumentation Invoke-IntuneDocumentation -FullDocumentationPath c:\temp\IntuneDoc.docx

=> Invoke-IntuneDocumentation : The 'Invoke-IntuneDocumentation' command was found in the module 'IntuneDocumentation' but the module could not be loaded. CategoryInfo : ObjectNotFoud (IntuneDocumentation: string) [], CommandNotFoundException FullyQualifiedErrorId: CouldNotAutoloadMatchingModule

[image: Problem] https://user-images.githubusercontent.com/64961680/81288111-45c6b080-9064-11ea-94fe-df71201077aa.png

I hope you can help? Br / John

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ThomasKur/IntuneDocumentation/issues/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGWPVTXNLQO6KC4BTCP6MLRQKKP7ANCNFSM4M3HRNHQ .

ThomasKur commented 4 years ago

Has the import solved your issue?

JoPi2108 commented 4 years ago

Hi Thomas, yes we did! It was something else; that by deafult we were not allowed to execute scripts ;) But we fixed that and the Intune doc is excellent. Thanks for your help! Br / John