{"id":1955,"date":"2016-04-07T03:42:34","date_gmt":"2016-04-07T03:42:34","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=1955"},"modified":"2016-04-07T03:42:34","modified_gmt":"2016-04-07T03:42:34","slug":"the-specified-module-msonline-was-not-loaded-because-no-valid-module-file-was-found-in-any-module","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/random\/the-specified-module-msonline-was-not-loaded-because-no-valid-module-file-was-found-in-any-module","title":{"rendered":"The specified module &#8216;MSOnline&#8217; was not loaded because no valid module file was found in any module"},"content":{"rendered":"<p>After\u00a0installing the <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=286152\">Microsoft Online Services Sign-In Assistant for IT Professionals RTW<\/a> from the Microsoft Download Center. Then install the <a href=\"http:\/\/go.microsoft.com\/fwlink\/p\/?linkid=236297\">Azure Active Directory Module for Windows PowerShell (64-bit version)<\/a>,<\/p><p>Then running :\u00a0Windows Azure Active Directory Module for Windows PowerShell<\/p><p>I was greated with the following Error<\/p><p><em>Import-Module : The specified module &#8216;MSOnline&#8217; was not loaded because no valid module file was found in any module<\/em><br \/><em>directory.<\/em><br \/><em>At line:1 char:1<\/em><br \/><em>+ Import-Module MSOnline<\/em><br \/><em>+ ~~~~~~~~~~~~~~~~~~~~~~<\/em><br \/><em> + CategoryInfo : ResourceUnavailable: (MSOnline:String) [Import-Module], FileNotFoundException<\/em><br \/><em> + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand<\/em><\/p><p>Copy the folders called <code>MSOnline<\/code> and <code>MSOnline Extended<\/code> from the source<\/p><blockquote><p>C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Modules\\<\/p><\/blockquote><p>to the folder<\/p><blockquote><p>C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\Modules\\<\/p><\/blockquote><p>If this still doesn&#8217;t work use<\/p><p><strong>Import-Module C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Modules\\MSOnline\\MSOnline.psd1<\/strong><\/p><p>In a powershell Window, this will enable you to get\u00a0Connect-MsolService<\/p>","protected":false},"excerpt":{"rendered":"<p>After\u00a0installing the Microsoft Online Services Sign-In Assistant for IT Professionals RTW from the Microsoft Download Center. Then install the Azure Active Directory Module for Windows PowerShell (64-bit [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1413,1415,1416,1414],"class_list":["post-1955","post","type-post","status-publish","format-standard","hentry","category-random","tag-connect-msolservice","tag-modules","tag-msonline","tag-syswow64"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=1955"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1955\/revisions"}],"predecessor-version":[{"id":1956,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1955\/revisions\/1956"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=1955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=1955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=1955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}